diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-11 02:47:41 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-11 02:47:41 -0500 |
| commit | 2fc10246766fce0b560f015e1c0b6ff29fb4ced0 (patch) | |
| tree | 0510322a0d3a8171afb1e06a7ce809f023578825 /include/linux/perf_event.h | |
| parent | 05eec0c931a63d8709009e3ac6a083072666fa0f (diff) | |
| parent | 50c4c4e268a2d7a3e58ebb698ac74da0de40ae36 (diff) | |
Merge 4.15-rc3 into char-misc-next
We want the fixes and changes in here for testing.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 | { |
