world leader in high performance signal processing
Trace: » strace

strace

What is strace

strace is a tool to trace system calls and signals.It intercepts and records the system calls which are called by a pro-cess and the signals which are received by a process. The name of each system call.

Man pages

Using strace in blackfin uclinux

  • Build strace into image
Miscellaneous Applications  ---> 
   [*] strace 
  • A sample
root:~> strace ls
nsyscalls0=348
begin vfork
begin execv in child
in trace
ioctl(3419354, 0x8000, 0)               = 0
ioctl(3419354, 0x8000, 0)               = 0
getuid()                                = 0
getgid()                                = 0
setgid(3420866)                         = 0
setuid(3421314)                         = 0
ioctl(3419354, 0x8000, 0)               = 0
ioctl(3419354, 0x8000, 0)               = 0
mmap(0x342f7c, 32768, PROT_NONE, MAP_FILE, 2916352, 0x342f7c) = 0
mmap(0x342f7c, 32768, PROT_NONE, MAP_FILE, 2916352, 0x342f7c) = 0
mmap(0x342f7c, 32768, PROT_NONE, MAP_FILE, 2916352, 0x342f7c) = 0
lstat("\uffff..2.C\uffffc...\uffff", {st_mode=S_IFCHR|S_ISUID|S_ISGID|S_ISVTX|0653, st_rdev=makedev(177, 112), ...}) = 0
mmap(0x342f7c, 32768, PROT_NONE, MAP_FILE, 2916352, 0x342f7c) = 0
mmap(0x342f7c, 32768, PROT_NONE, MAP_FILE, 2916352, 0x342f7c) = 0
mmap(0x342f7c, 32768, PROT_NONE, MAP_FILE, 2916352, 0x342f7c) = 0
stat("s..2.C\uffffc...\uffff", {st_mode=S_IFCHR|S_ISUID|S_ISGID|S_ISVTX|0653, st_rdev=makedev(177, 112), ...}) = 0
open("...2.C\uffffc...\uffff", O_RDONLY|O_NOFOLLOW) = 0
... ...