Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dmitry V. Levin b307a94e09 tests: check tracing of looping threads 1 year ago
..
.gitignore tests: check tracing of looping threads 9 months ago
Makefile tests: check tracing of looping threads 9 months ago
README.md test: rename README to README.md 2 years ago
childthread.c Whitespace cleanups. no code changes. 8 years ago
clone.c Fix a few spacing style issues 2 years ago
leaderkill.c Whitespace cleanups. no code changes. 8 years ago
mmap_offset_decode.c Fix function prototypes with unspecified arguments 2 years ago
mtd.c Fix function prototypes with unspecified arguments 2 years ago
procpollable.c Improve code readability by avoiding assignments inside if() 8 years ago
seccomp.c Fix a few spacing style issues 2 years ago
sfd.c test/sfd.c: add missing includes 4 years ago
sig.c Fix function prototypes with unspecified arguments 2 years ago
sigkill_rain.c test: include headers for used funcs 6 years ago
skodic.c Fix preprocessor indentation 11 months ago
threaded_execve.c Fix preprocessor indentation 11 months ago
ubi.c Fix function prototypes with unspecified arguments 2 years ago
wait_must_be_interruptible.c Fix function prototypes with unspecified arguments 2 years ago
x32_lseek.c Use <asm/unistd.h> instead of <sys/syscall.h> 3 years ago
x32_mmap.c Use <asm/unistd.h> instead of <sys/syscall.h> 3 years ago

README.md

This directory contains some corner case demo files. Most of them are quite old and probably will be of little interest to the casual reader. For automated tests, see ../tests directory.

To run a demo:

  • Run make
  • Run resulting executable(s) under strace
  • Check strace output and/or program’s output and exitcode

To add a new demo:

  • Add its .c source to this dir
  • Add it to “all” and “clean” targets in Makefile
  • Add it to .gitignore file

Please spend some time making your demo understandable. For example, it may print an explanation how it should be used (which strace options to use, and what to look for in strace output).

If possible, make it so that your demo detects error/bug it is intended to demonstrate, and prints error message and exits with 1 if the bug is detected, instead of relying on user to peruse strace output.