Sample trace of the ls command
open ("/usr/lib/ld.so", 0, 04000000021) = 3
read (3, "".., 32) = 32
mmap (0, 40960, 0x5, 0x80000002, 3, 0) = 0xef7f0000
mmap (0xef7f8000, 8192, 0x7, 0x80000012, 3, 32768) = 0xef7f8000
open ("/dev/zero", 0, 07) = 4
getrlimit (3, 0xeffff8e0) = 0
mmap (0xef800000, 8192, 0x3, 0x80000012, 4, 0) = 0xef800000
close (3) = 0
getuid () = 10017
getgid () = 10
open ("/etc/ld.so.cache", 0, 05000000021) = 3
fstat (3, 0xeffff780) = 0
mmap (0, 4096, 0x1, 0x80000001, 3, 0) = 0xef7e8000
close (3) = 0
open ("/usr/lib/libc.so.1.9.3", 0, 045674) = 3
read (3, "".., 32) = 32
mmap (0, 477928, 0x5, 0x80000002, 3, 0) = 0xef76c000
mmap (0xef7dc000, 16384, 0x7, 0x80000012, 3, 458752) = 0xef7dc000
mmap (0xef7e0000, 2792, 0x7, 0x80000012, 4, 0) = 0xef7e0000
close (3) = 0
open ("/usr/lib/libdl.so.1.0", 0, 045714) = 3
read (3, "".., 32) = 32
mmap (0, 16396, 0x5, 0x80000002, 3, 0) = 0xef760000
mmap (0xef762000, 8192, 0x7, 0x80000012, 3, 8192) = 0xef762000
close (3) = 0
close (4) = 0
getuid () = 10017
gettimeofday (0xeffffa18, 0) = 0
ioctl (1, 0x40125401, 0xeffffa0c) = -1 ENOTTY (Inappropriate ioctl for device)
getpagesize () = 4096
brk (0x9210) = 0
brk (0xa210) = 0
lstat (".", 0xeffff9e0) = 0
open (".", 04, 0) = 3
fstat (3, 0xeffff910) = 0
brk (0xd210) = 0
fcntl (3, 02, 0x1) = 0
getdents (3, 0x9268, 8192) = 212
getdents (3, 0x9268, 8192) = 0
close (3) = 0
ioctl (1, 0x40125401, 0xefffee1c) = -1 ENOTTY (Inappropriate ioctl for device)
fstat (1, 0xefffee90) = 0
close (0) = 0
write (1, "1man.html\n1sample.html\n2commands".., 87) = 87
close (1) = 0
close (2) = 0
exit (0) = ?