diff options
author | Peter Zijlstra <peterz@infradead.org> | 2015-03-05 16:10:19 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-23 05:58:04 -0400 |
commit | 50f16a8bf9d7a92c437ed1867d0f7e1dc6a9aca9 (patch) | |
tree | b3794dc4959e7dedbdddfb1e428c4fe67126e45b /include | |
parent | 4e16ed99416ef569a89782a7234f95007919fadd (diff) |
perf: Remove type specific target pointers
The only reason CQM had to use a hard-coded pmu type was so it could use
cqm_target in hw_perf_event.
Do away with the {tp,bp,cqm}_target pointers and provide a non type
specific one.
This allows us to do away with that silly pmu type as well.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Vince Weaver <vince@deater.net>
Cc: acme@kernel.org
Cc: acme@redhat.com
Cc: hpa@zytor.com
Cc: jolsa@redhat.com
Cc: kanaka.d.juvva@intel.com
Cc: matt.fleming@intel.com
Cc: tglx@linutronix.de
Cc: torvalds@linux-foundation.org
Cc: vikas.shivappa@linux.intel.com
Link: http://lkml.kernel.org/r/20150305211019.GU21418@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_event.h | 4 | ||||
-rw-r--r-- | include/uapi/linux/perf_event.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index dac4c2831d82..5aa49d7bfd07 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -119,7 +119,6 @@ struct hw_perf_event { | |||
119 | struct hrtimer hrtimer; | 119 | struct hrtimer hrtimer; |
120 | }; | 120 | }; |
121 | struct { /* tracepoint */ | 121 | struct { /* tracepoint */ |
122 | struct task_struct *tp_target; | ||
123 | /* for tp_event->class */ | 122 | /* for tp_event->class */ |
124 | struct list_head tp_list; | 123 | struct list_head tp_list; |
125 | }; | 124 | }; |
@@ -129,7 +128,6 @@ struct hw_perf_event { | |||
129 | struct list_head cqm_events_entry; | 128 | struct list_head cqm_events_entry; |
130 | struct list_head cqm_groups_entry; | 129 | struct list_head cqm_groups_entry; |
131 | struct list_head cqm_group_entry; | 130 | struct list_head cqm_group_entry; |
132 | struct task_struct *cqm_target; | ||
133 | }; | 131 | }; |
134 | #ifdef CONFIG_HAVE_HW_BREAKPOINT | 132 | #ifdef CONFIG_HAVE_HW_BREAKPOINT |
135 | struct { /* breakpoint */ | 133 | struct { /* breakpoint */ |
@@ -138,12 +136,12 @@ struct hw_perf_event { | |||
138 | * problem hw_breakpoint has with context | 136 | * problem hw_breakpoint has with context |
139 | * creation and event initalization. | 137 | * creation and event initalization. |
140 | */ | 138 | */ |
141 | struct task_struct *bp_target; | ||
142 | struct arch_hw_breakpoint info; | 139 | struct arch_hw_breakpoint info; |
143 | struct list_head bp_list; | 140 | struct list_head bp_list; |
144 | }; | 141 | }; |
145 | #endif | 142 | #endif |
146 | }; | 143 | }; |
144 | struct task_struct *target; | ||
147 | int state; | 145 | int state; |
148 | local64_t prev_count; | 146 | local64_t prev_count; |
149 | u64 sample_period; | 147 | u64 sample_period; |
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 3c8b45de57ec..1e3cd07cf76e 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h | |||
@@ -32,7 +32,6 @@ enum perf_type_id { | |||
32 | PERF_TYPE_HW_CACHE = 3, | 32 | PERF_TYPE_HW_CACHE = 3, |
33 | PERF_TYPE_RAW = 4, | 33 | PERF_TYPE_RAW = 4, |
34 | PERF_TYPE_BREAKPOINT = 5, | 34 | PERF_TYPE_BREAKPOINT = 5, |
35 | PERF_TYPE_INTEL_CQM = 6, | ||
36 | 35 | ||
37 | PERF_TYPE_MAX, /* non-ABI */ | 36 | PERF_TYPE_MAX, /* non-ABI */ |
38 | }; | 37 | }; |