diff options
Diffstat (limited to 'include/asm-generic')
| -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 8bccb49981e5..eba835a2c2cd 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -53,6 +53,14 @@ | |||
| 53 | #define LIKELY_PROFILE() | 53 | #define LIKELY_PROFILE() |
| 54 | #endif | 54 | #endif |
| 55 | 55 | ||
| 56 | #ifdef CONFIG_PROFILE_ALL_BRANCHES | ||
| 57 | #define BRANCH_PROFILE() VMLINUX_SYMBOL(__start_branch_profile) = .; \ | ||
| 58 | *(_ftrace_branch) \ | ||
| 59 | VMLINUX_SYMBOL(__stop_branch_profile) = .; | ||
| 60 | #else | ||
| 61 | #define BRANCH_PROFILE() | ||
| 62 | #endif | ||
| 63 | |||
| 56 | /* .data section */ | 64 | /* .data section */ |
| 57 | #define DATA_DATA \ | 65 | #define DATA_DATA \ |
| 58 | *(.data) \ | 66 | *(.data) \ |
| @@ -72,7 +80,8 @@ | |||
| 72 | VMLINUX_SYMBOL(__start___tracepoints) = .; \ | 80 | VMLINUX_SYMBOL(__start___tracepoints) = .; \ |
| 73 | *(__tracepoints) \ | 81 | *(__tracepoints) \ |
| 74 | VMLINUX_SYMBOL(__stop___tracepoints) = .; \ | 82 | VMLINUX_SYMBOL(__stop___tracepoints) = .; \ |
| 75 | LIKELY_PROFILE() | 83 | LIKELY_PROFILE() \ |
| 84 | BRANCH_PROFILE() | ||
| 76 | 85 | ||
| 77 | #define RO_DATA(align) \ | 86 | #define RO_DATA(align) \ |
| 78 | . = ALIGN((align)); \ | 87 | . = ALIGN((align)); \ |
