diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-09-17 13:28:48 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-09-17 14:48:48 +0400 |
commit | b04243ef7006cda301819f54ee7ce0a3632489e3 (patch) | |
tree | e8e83c53d40dce08ad5bfc37ec1e58b3a5aa7adc /include/linux/perf_event.h | |
parent | d14b12d7adbf214f33eb59f800b5c3d5ed9268e8 (diff) | |
download | linux-b04243ef7006cda301819f54ee7ce0a3632489e3.tar.xz |
perf: Complete software pmu grouping
Aside from allowing software events into a !software group,
allow adding !software events to pure software groups.
Once we've moved the software group and attached the first
!software event, the group will no longer be a pure software
group and hence no longer be eligible for movement, at which
point the straight ctx comparison is correct again.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20100917093009.410784731@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-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 39d8860b2684..165287fd2cc4 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -804,12 +804,18 @@ struct perf_event { #endif /* CONFIG_PERF_EVENTS */ }; +enum perf_event_context_type { + task_context, + cpu_context, +}; + /** * struct perf_event_context - event context structure * * Used as a container for task events and CPU events as well: */ struct perf_event_context { + enum perf_event_context_type type; struct pmu *pmu; /* * Protect the states of the events in the list, |