| 1 | Linux: link syscalls metadata as data (for LTTng syscall extraction) |
| 2 | |
| 3 | * NOT for mainline * |
| 4 | |
| 5 | Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 6 | |
| 7 | diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h |
| 8 | index e00f41aa8ec4..13f51fa7c3f3 100644 |
| 9 | --- a/include/asm-generic/vmlinux.lds.h |
| 10 | +++ b/include/asm-generic/vmlinux.lds.h |
| 11 | @@ -318,6 +318,7 @@ |
| 12 | __end_once = .; \ |
| 13 | STRUCT_ALIGN(); \ |
| 14 | *(__tracepoints) \ |
| 15 | + TRACE_SYSCALLS() \ |
| 16 | /* implement dynamic printk debug */ \ |
| 17 | . = ALIGN(8); \ |
| 18 | __start___verbose = .; \ |
| 19 | @@ -650,7 +651,6 @@ |
| 20 | MCOUNT_REC() \ |
| 21 | *(.init.rodata .init.rodata.*) \ |
| 22 | FTRACE_EVENTS() \ |
| 23 | - TRACE_SYSCALLS() \ |
| 24 | KPROBE_BLACKLIST() \ |
| 25 | ERROR_INJECT_WHITELIST() \ |
| 26 | MEM_DISCARD(init.rodata) \ |