1 LTTng system call tracing
3 1) lttng-syscall-extractor
5 You need to build a kernel with CONFIG_FTRACE_SYSCALLS=y for extraction. Apply
6 the linker patch to get your kernel to keep the system call metadata after boot.
7 Then build and load the LTTng syscall extractor module. The module will fail to
8 load (this is expected). See the dmesg output for system call metadata.
10 2) Generate system call TRACE_EVENT().
12 Take the dmesg metadata and feed it to lttng-syscalls-generate-headers.sh, e.g.,
13 from the instrumentation/syscalls directory:
15 sh lttng-syscalls-generate-headers.sh 3.0.4 x86-64-syscalls-3.0.4
17 After these are created, we just need to follow the new system call additions,
18 no need to regenerate the whole thing, since system calls are only appended to.