diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2012-10-02 09:38:52 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-10-05 07:59:06 -0400 |
commit | 3f1f33206c16c7b3839d71372bc2ac3f305aa802 (patch) | |
tree | 683e2af07cb49e9a333f982e72088929027881c1 /include | |
parent | 2e132b12f78d88672711ae1d87624951de1089ca (diff) |
perf: Clarify perf_cpu_context::active_pmu usage by renaming it to ::unique_pmu
Stephane thought the perf_cpu_context::active_pmu name confusing and
suggested using 'unique_pmu' instead.
This pointer is a pointer to a 'random' pmu sharing the cpuctx
instance, therefore limiting a for_each_pmu loop to those where
cpuctx->unique_pmu matches the pmu we get a loop over unique cpuctx
instances.
Suggested-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-kxyjqpfj2fn9gt7kwu5ag9ks@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 599afc4bb67e..b4166cdfa7a2 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -1110,7 +1110,7 @@ struct perf_cpu_context { | |||
1110 | int exclusive; | 1110 | int exclusive; |
1111 | struct list_head rotation_list; | 1111 | struct list_head rotation_list; |
1112 | int jiffies_interval; | 1112 | int jiffies_interval; |
1113 | struct pmu *active_pmu; | 1113 | struct pmu *unique_pmu; |
1114 | struct perf_cgroup *cgrp; | 1114 | struct perf_cgroup *cgrp; |
1115 | }; | 1115 | }; |
1116 | 1116 | ||