diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_event.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index c7007a564440..270cd0173e61 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -271,6 +271,10 @@ struct pmu { | |||
271 | */ | 271 | */ |
272 | void (*sched_task) (struct perf_event_context *ctx, | 272 | void (*sched_task) (struct perf_event_context *ctx, |
273 | bool sched_in); | 273 | bool sched_in); |
274 | /* | ||
275 | * PMU specific data size | ||
276 | */ | ||
277 | size_t task_ctx_size; | ||
274 | 278 | ||
275 | }; | 279 | }; |
276 | 280 | ||
@@ -307,6 +311,7 @@ struct swevent_hlist { | |||
307 | #define PERF_ATTACH_CONTEXT 0x01 | 311 | #define PERF_ATTACH_CONTEXT 0x01 |
308 | #define PERF_ATTACH_GROUP 0x02 | 312 | #define PERF_ATTACH_GROUP 0x02 |
309 | #define PERF_ATTACH_TASK 0x04 | 313 | #define PERF_ATTACH_TASK 0x04 |
314 | #define PERF_ATTACH_TASK_DATA 0x08 | ||
310 | 315 | ||
311 | struct perf_cgroup; | 316 | struct perf_cgroup; |
312 | struct ring_buffer; | 317 | struct ring_buffer; |
@@ -511,6 +516,7 @@ struct perf_event_context { | |||
511 | u64 generation; | 516 | u64 generation; |
512 | int pin_count; | 517 | int pin_count; |
513 | int nr_cgroups; /* cgroup evts */ | 518 | int nr_cgroups; /* cgroup evts */ |
519 | void *task_ctx_data; /* pmu specific data */ | ||
514 | struct rcu_head rcu_head; | 520 | struct rcu_head rcu_head; |
515 | 521 | ||
516 | struct delayed_work orphans_remove; | 522 | struct delayed_work orphans_remove; |