diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_event.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 5fc494f4a094..fbbf5e598368 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -746,6 +746,11 @@ struct pmu { | |||
746 | * if no implementation is provided it will default to: event->hw.idx + 1. | 746 | * if no implementation is provided it will default to: event->hw.idx + 1. |
747 | */ | 747 | */ |
748 | int (*event_idx) (struct perf_event *event); /*optional */ | 748 | int (*event_idx) (struct perf_event *event); /*optional */ |
749 | |||
750 | /* | ||
751 | * flush branch stack on context-switches (needed in cpu-wide mode) | ||
752 | */ | ||
753 | void (*flush_branch_stack) (void); | ||
749 | }; | 754 | }; |
750 | 755 | ||
751 | /** | 756 | /** |
@@ -979,7 +984,8 @@ struct perf_event_context { | |||
979 | u64 parent_gen; | 984 | u64 parent_gen; |
980 | u64 generation; | 985 | u64 generation; |
981 | int pin_count; | 986 | int pin_count; |
982 | int nr_cgroups; /* cgroup events present */ | 987 | int nr_cgroups; /* cgroup evts */ |
988 | int nr_branch_stack; /* branch_stack evt */ | ||
983 | struct rcu_head rcu_head; | 989 | struct rcu_head rcu_head; |
984 | }; | 990 | }; |
985 | 991 | ||
@@ -1044,6 +1050,7 @@ perf_event_create_kernel_counter(struct perf_event_attr *attr, | |||
1044 | extern u64 perf_event_read_value(struct perf_event *event, | 1050 | extern u64 perf_event_read_value(struct perf_event *event, |
1045 | u64 *enabled, u64 *running); | 1051 | u64 *enabled, u64 *running); |
1046 | 1052 | ||
1053 | |||
1047 | struct perf_sample_data { | 1054 | struct perf_sample_data { |
1048 | u64 type; | 1055 | u64 type; |
1049 | 1056 | ||