Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@norbinsh
Created June 10, 2019 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norbinsh/db84150e00d273b57416ec68757d3673 to your computer and use it in GitHub Desktop.
Save norbinsh/db84150e00d273b57416ec68757d3673 to your computer and use it in GitHub Desktop.
ssimple_strace
strace: Process 11159 attached
select(0, NULL, NULL, NULL, {tv_sec=1, tv_usec=76529}) = 0 (Timeout)
openat(AT_FDCWD, "tmp.txt", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
ioctl(3, TCGETS, 0x7ffeda481580) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
ioctl(3, TCGETS, 0x7ffeda481560) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
lseek(3, 0, SEEK_CUR) = 0
write(3, "lolz", 4) = 4
close(3) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2572, tv_nsec=188083102}) = 0
select(0, NULL, NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2573, tv_nsec=189339985}) = 0
select(0, NULL, NULL, NULL, {tv_sec=2, tv_usec=0}) = 0 (Timeout)
openat(AT_FDCWD, "tmp.txt", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
ioctl(3, TCGETS, 0x7ffeda481580) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
ioctl(3, TCGETS, 0x7ffeda481560) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
lseek(3, 0, SEEK_CUR) = 0
write(3, "lolz", 4) = 4
close(3) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2575, tv_nsec=192143741}) = 0
select(0, NULL, NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2576, tv_nsec=194099312}) = 0
select(0, NULL, NULL, NULL, {tv_sec=2, tv_usec=0}) = 0 (Timeout)
openat(AT_FDCWD, "tmp.txt", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
ioctl(3, TCGETS, 0x7ffeda481580) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
ioctl(3, TCGETS, 0x7ffeda481560) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
lseek(3, 0, SEEK_CUR) = 0
write(3, "lolz", 4) = 4
close(3) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2578, tv_nsec=196965278}) = 0
select(0, NULL, NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2579, tv_nsec=198233199}) = 0
select(0, NULL, NULL, NULL, {tv_sec=2, tv_usec=0}) = 0 (Timeout)
openat(AT_FDCWD, "tmp.txt", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
ioctl(3, TCGETS, 0x7ffeda481580) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
ioctl(3, TCGETS, 0x7ffeda481560) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
lseek(3, 0, SEEK_CUR) = 0
write(3, "lolz", 4) = 4
close(3) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2581, tv_nsec=200980800}) = 0
select(0, NULL, NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2582, tv_nsec=202240497}) = 0
select(0, NULL, NULL, NULL, {tv_sec=2, tv_usec=0}) = 0 (Timeout)
openat(AT_FDCWD, "tmp.txt", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
ioctl(3, TCGETS, 0x7ffeda481580) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
ioctl(3, TCGETS, 0x7ffeda481560) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR) = 0
lseek(3, 0, SEEK_CUR) = 0
write(3, "lolz", 4) = 4
close(3) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=2584, tv_nsec=205112276}) = 0
select(0, NULL, NULL, NULL, {tv_sec=1, tv_usec=0}^Cstrace: Process 11159 detached
<detached ...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment