diff options
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 2c9c87d8a0c1..7546822a1d74 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #define _LINUX_PERF_EVENT_H | 15 | #define _LINUX_PERF_EVENT_H |
16 | 16 | ||
17 | #include <uapi/linux/perf_event.h> | 17 | #include <uapi/linux/perf_event.h> |
18 | #include <uapi/linux/bpf_perf_event.h> | ||
18 | 19 | ||
19 | /* | 20 | /* |
20 | * Kernel-internal data types and definitions: | 21 | * Kernel-internal data types and definitions: |
@@ -787,7 +788,7 @@ struct perf_output_handle { | |||
787 | }; | 788 | }; |
788 | 789 | ||
789 | struct bpf_perf_event_data_kern { | 790 | struct bpf_perf_event_data_kern { |
790 | struct pt_regs *regs; | 791 | bpf_user_pt_regs_t *regs; |
791 | struct perf_sample_data *data; | 792 | struct perf_sample_data *data; |
792 | struct perf_event *event; | 793 | struct perf_event *event; |
793 | }; | 794 | }; |
@@ -1177,6 +1178,9 @@ extern void perf_bp_event(struct perf_event *event, void *data); | |||
1177 | (user_mode(regs) ? PERF_RECORD_MISC_USER : PERF_RECORD_MISC_KERNEL) | 1178 | (user_mode(regs) ? PERF_RECORD_MISC_USER : PERF_RECORD_MISC_KERNEL) |
1178 | # define perf_instruction_pointer(regs) instruction_pointer(regs) | 1179 | # define perf_instruction_pointer(regs) instruction_pointer(regs) |
1179 | #endif | 1180 | #endif |
1181 | #ifndef perf_arch_bpf_user_pt_regs | ||
1182 | # define perf_arch_bpf_user_pt_regs(regs) regs | ||
1183 | #endif | ||
1180 | 1184 | ||
1181 | static inline bool has_branch_stack(struct perf_event *event) | 1185 | static inline bool has_branch_stack(struct perf_event *event) |
1182 | { | 1186 | { |