diff options
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index ddbb6a901f65..f32578634d9d 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -1132,11 +1132,14 @@ struct perf_sample_data { | |||
1132 | struct perf_branch_stack *br_stack; | 1132 | struct perf_branch_stack *br_stack; |
1133 | }; | 1133 | }; |
1134 | 1134 | ||
1135 | static inline void perf_sample_data_init(struct perf_sample_data *data, u64 addr) | 1135 | static inline void perf_sample_data_init(struct perf_sample_data *data, |
1136 | u64 addr, u64 period) | ||
1136 | { | 1137 | { |
1138 | /* remaining struct members initialized in perf_prepare_sample() */ | ||
1137 | data->addr = addr; | 1139 | data->addr = addr; |
1138 | data->raw = NULL; | 1140 | data->raw = NULL; |
1139 | data->br_stack = NULL; | 1141 | data->br_stack = NULL; |
1142 | data->period = period; | ||
1140 | } | 1143 | } |
1141 | 1144 | ||
1142 | extern void perf_output_sample(struct perf_output_handle *handle, | 1145 | extern void perf_output_sample(struct perf_output_handle *handle, |