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 39d8860b2684..165287fd2cc4 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -804,12 +804,18 @@ struct perf_event { | |||
804 | #endif /* CONFIG_PERF_EVENTS */ | 804 | #endif /* CONFIG_PERF_EVENTS */ |
805 | }; | 805 | }; |
806 | 806 | ||
807 | enum perf_event_context_type { | ||
808 | task_context, | ||
809 | cpu_context, | ||
810 | }; | ||
811 | |||
807 | /** | 812 | /** |
808 | * struct perf_event_context - event context structure | 813 | * struct perf_event_context - event context structure |
809 | * | 814 | * |
810 | * Used as a container for task events and CPU events as well: | 815 | * Used as a container for task events and CPU events as well: |
811 | */ | 816 | */ |
812 | struct perf_event_context { | 817 | struct perf_event_context { |
818 | enum perf_event_context_type type; | ||
813 | struct pmu *pmu; | 819 | struct pmu *pmu; |
814 | /* | 820 | /* |
815 | * Protect the states of the events in the list, | 821 | * Protect the states of the events in the list, |