diff options
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 80744606bad1..e10beb5335c9 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -45,6 +45,17 @@ | |||
45 | #define MCOUNT_REC() | 45 | #define MCOUNT_REC() |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | #ifdef CONFIG_TRACE_UNLIKELY_PROFILE | ||
49 | #define LIKELY_PROFILE() VMLINUX_SYMBOL(__start_likely_profile) = .; \ | ||
50 | *(_ftrace_likely) \ | ||
51 | VMLINUX_SYMBOL(__stop_likely_profile) = .; \ | ||
52 | VMLINUX_SYMBOL(__start_unlikely_profile) = .; \ | ||
53 | *(_ftrace_unlikely) \ | ||
54 | VMLINUX_SYMBOL(__stop_unlikely_profile) = .; | ||
55 | #else | ||
56 | #define LIKELY_PROFILE() | ||
57 | #endif | ||
58 | |||
48 | /* .data section */ | 59 | /* .data section */ |
49 | #define DATA_DATA \ | 60 | #define DATA_DATA \ |
50 | *(.data) \ | 61 | *(.data) \ |
@@ -62,7 +73,8 @@ | |||
62 | VMLINUX_SYMBOL(__stop___markers) = .; \ | 73 | VMLINUX_SYMBOL(__stop___markers) = .; \ |
63 | VMLINUX_SYMBOL(__start___tracepoints) = .; \ | 74 | VMLINUX_SYMBOL(__start___tracepoints) = .; \ |
64 | *(__tracepoints) \ | 75 | *(__tracepoints) \ |
65 | VMLINUX_SYMBOL(__stop___tracepoints) = .; | 76 | VMLINUX_SYMBOL(__stop___tracepoints) = .; \ |
77 | LIKELY_PROFILE() | ||
66 | 78 | ||
67 | #define RO_DATA(align) \ | 79 | #define RO_DATA(align) \ |
68 | . = ALIGN((align)); \ | 80 | . = ALIGN((align)); \ |