diff options
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
| -rw-r--r-- | include/asm-generic/vmlinux.lds.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 0e0f39be6c8b..d3bc3c86df6a 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -77,6 +77,14 @@ | |||
| 77 | #define TRACE_PRINTKS() | 77 | #define TRACE_PRINTKS() |
| 78 | #endif | 78 | #endif |
| 79 | 79 | ||
| 80 | #ifdef CONFIG_FTRACE_SYSCALLS | ||
| 81 | #define TRACE_SYSCALLS() VMLINUX_SYMBOL(__start_syscalls_metadata) = .; \ | ||
| 82 | *(__syscalls_metadata) \ | ||
| 83 | VMLINUX_SYMBOL(__stop_syscalls_metadata) = .; | ||
| 84 | #else | ||
| 85 | #define TRACE_SYSCALLS() | ||
| 86 | #endif | ||
| 87 | |||
| 80 | /* .data section */ | 88 | /* .data section */ |
| 81 | #define DATA_DATA \ | 89 | #define DATA_DATA \ |
| 82 | *(.data) \ | 90 | *(.data) \ |
| @@ -99,7 +107,8 @@ | |||
| 99 | LIKELY_PROFILE() \ | 107 | LIKELY_PROFILE() \ |
| 100 | BRANCH_PROFILE() \ | 108 | BRANCH_PROFILE() \ |
| 101 | TRACE_PRINTKS() \ | 109 | TRACE_PRINTKS() \ |
| 102 | FTRACE_EVENTS() | 110 | FTRACE_EVENTS() \ |
| 111 | TRACE_SYSCALLS() | ||
| 103 | 112 | ||
| 104 | #define RO_DATA(align) \ | 113 | #define RO_DATA(align) \ |
| 105 | . = ALIGN((align)); \ | 114 | . = ALIGN((align)); \ |
