diff options
| author | Kan Liang <kan.liang@linux.intel.com> | 2025-03-14 10:27:00 -0700 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2025-03-17 11:23:38 +0100 |
| commit | bd2da08d9363d191551d79e5b04121348e18af5a (patch) | |
| tree | 2acfa797c884f4f76671041f45aefcdaa600cba0 /include/linux | |
| parent | 1fbc6c8e5289c252867c33bf12d54c11c8cfeac4 (diff) | |
perf: Clean up pmu specific data
The pmu specific data is saved in task_struct now. Remove it from event
context structure.
Remove swap_task_ctx() as well.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250314172700.438923-7-kan.liang@linux.intel.com
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/perf_event.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 58f40c89d728..5b8e3aabac02 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -502,16 +502,6 @@ struct pmu { struct kmem_cache *task_ctx_cache; /* - * PMU specific parts of task perf event context (i.e. ctx->task_ctx_data) - * can be synchronized using this function. See Intel LBR callstack support - * implementation and Perf core context switch handling callbacks for usage - * examples. - */ - void (*swap_task_ctx) (struct perf_event_pmu_context *prev_epc, - struct perf_event_pmu_context *next_epc); - /* optional */ - - /* * Set up pmu-private data structures for an AUX area */ void *(*setup_aux) (struct perf_event *event, void **pages, @@ -933,7 +923,6 @@ struct perf_event_pmu_context { atomic_t refcount; /* event <-> epc */ struct rcu_head rcu_head; - void *task_ctx_data; /* pmu specific data */ /* * Set when one or more (plausibly active) event can't be scheduled * due to pmu overcommit or pmu constraints, except tolerant to @@ -981,7 +970,6 @@ struct perf_event_context { int nr_user; int is_active; - int nr_task_data; int nr_stat; int nr_freq; int rotate_disable; |
