diff options
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
| -rw-r--r-- | include/asm-generic/vmlinux.lds.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 80744606bad1..eba835a2c2cd 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -45,6 +45,22 @@ | |||
| 45 | #define MCOUNT_REC() | 45 | #define MCOUNT_REC() |
| 46 | #endif | 46 | #endif |
| 47 | 47 | ||
| 48 | #ifdef CONFIG_TRACE_BRANCH_PROFILING | ||
| 49 | #define LIKELY_PROFILE() VMLINUX_SYMBOL(__start_annotated_branch_profile) = .; \ | ||
| 50 | *(_ftrace_annotated_branch) \ | ||
| 51 | VMLINUX_SYMBOL(__stop_annotated_branch_profile) = .; | ||
| 52 | #else | ||
| 53 | #define LIKELY_PROFILE() | ||
| 54 | #endif | ||
| 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 | |||
| 48 | /* .data section */ | 64 | /* .data section */ |
| 49 | #define DATA_DATA \ | 65 | #define DATA_DATA \ |
| 50 | *(.data) \ | 66 | *(.data) \ |
| @@ -60,9 +76,12 @@ | |||
| 60 | VMLINUX_SYMBOL(__start___markers) = .; \ | 76 | VMLINUX_SYMBOL(__start___markers) = .; \ |
| 61 | *(__markers) \ | 77 | *(__markers) \ |
| 62 | VMLINUX_SYMBOL(__stop___markers) = .; \ | 78 | VMLINUX_SYMBOL(__stop___markers) = .; \ |
| 79 | . = ALIGN(32); \ | ||
| 63 | VMLINUX_SYMBOL(__start___tracepoints) = .; \ | 80 | VMLINUX_SYMBOL(__start___tracepoints) = .; \ |
| 64 | *(__tracepoints) \ | 81 | *(__tracepoints) \ |
| 65 | VMLINUX_SYMBOL(__stop___tracepoints) = .; | 82 | VMLINUX_SYMBOL(__stop___tracepoints) = .; \ |
| 83 | LIKELY_PROFILE() \ | ||
| 84 | BRANCH_PROFILE() | ||
| 66 | 85 | ||
| 67 | #define RO_DATA(align) \ | 86 | #define RO_DATA(align) \ |
| 68 | . = ALIGN((align)); \ | 87 | . = ALIGN((align)); \ |
