X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fsyscalls%2FREADME;fp=instrumentation%2Fsyscalls%2FREADME;h=a2a66fa038ae48ce0d43f82a1d1c8701aa06c289;hb=a40f1fcc2c3c0b76de074a09d0a3578a35549730;hp=1e9bec49c5e3a207fb5597030f6657e147d97069;hpb=dccb4f4aca9a8504618934dde7df13570ec06ee8;p=lttng-modules.git diff --git a/instrumentation/syscalls/README b/instrumentation/syscalls/README index 1e9bec49..a2a66fa0 100644 --- a/instrumentation/syscalls/README +++ b/instrumentation/syscalls/README @@ -10,9 +10,25 @@ is expected). See the dmesg output for system call metadata. 2) Generate system call TRACE_EVENT(). -Take the dmesg metadata and feed it to lttng-syscalls-generate-headers.sh, e.g., -from the instrumentation/syscalls directory. See the script header for -usage example. It should be run for both the integers and pointers types. +Take the dmesg metadata and feed it to lttng-syscalls-generate-headers.sh +(do not include the ending SUCCESS line), e.g., from the +instrumentation/syscalls directory. See the script header for usage example. +It should be run for both the integers and pointers types. After these are created, we just need to follow the new system call additions, no need to regenerate the whole thing, since system calls are only appended to. + +3) Override headers + +You need to provide override headers (even if they don't contain +overrides) for each architecture. Those are meant to contain manual +overrides for specific system calls for cases where the script do not +generate the correct typing for specific system calls. + +4) Integrating the new architecture, updating architecture header + +Edit instrumentation/syscalls/headers/syscalls_integers.h and +syscalls_pointers.h. Add the new architecture +(e.g. CONFIG_X86_64) to the newly-generated headers +(e.g. changing the current x86-64-syscalls-3.10.0-rc7_.h into +x86-64-syscalls-3.13.7_.h), then rebuild lttng-modules.