diff options
author | Robert Richter <robert.richter@amd.com> | 2009-04-29 06:47:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-29 08:51:03 -0400 |
commit | 4aeb0b4239bb3b67ed402cb9cef3e000c892cadf (patch) | |
tree | 0a025a30fa5de3b40ab1ea156a3f86ee2d000839 /include/linux | |
parent | 527e26af3741a2168986d8b82653ffe173891324 (diff) |
perfcounters: rename struct hw_perf_counter_ops into struct pmu
This patch renames struct hw_perf_counter_ops into struct pmu. It
introduces a structure to describe a cpu specific pmu (performance
monitoring unit). It may contain ops and data. The new name of the
structure fits better, is shorter, and thus better to handle. Where it
was appropriate, names of function and variable have been changed too.
[ Impact: cleanup ]
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1241002046-8832-7-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/perf_counter.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index be10b3ffe320..c3db52dc876a 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -334,9 +334,9 @@ struct hw_perf_counter { | |||
334 | struct perf_counter; | 334 | struct perf_counter; |
335 | 335 | ||
336 | /** | 336 | /** |
337 | * struct hw_perf_counter_ops - performance counter hw ops | 337 | * struct pmu - generic performance monitoring unit |
338 | */ | 338 | */ |
339 | struct hw_perf_counter_ops { | 339 | struct pmu { |
340 | int (*enable) (struct perf_counter *counter); | 340 | int (*enable) (struct perf_counter *counter); |
341 | void (*disable) (struct perf_counter *counter); | 341 | void (*disable) (struct perf_counter *counter); |
342 | void (*read) (struct perf_counter *counter); | 342 | void (*read) (struct perf_counter *counter); |
@@ -381,7 +381,7 @@ struct perf_counter { | |||
381 | struct list_head sibling_list; | 381 | struct list_head sibling_list; |
382 | int nr_siblings; | 382 | int nr_siblings; |
383 | struct perf_counter *group_leader; | 383 | struct perf_counter *group_leader; |
384 | const struct hw_perf_counter_ops *hw_ops; | 384 | const struct pmu *pmu; |
385 | 385 | ||
386 | enum perf_counter_active_state state; | 386 | enum perf_counter_active_state state; |
387 | enum perf_counter_active_state prev_state; | 387 | enum perf_counter_active_state prev_state; |
@@ -519,8 +519,7 @@ struct perf_cpu_context { | |||
519 | */ | 519 | */ |
520 | extern int perf_max_counters; | 520 | extern int perf_max_counters; |
521 | 521 | ||
522 | extern const struct hw_perf_counter_ops * | 522 | extern const struct pmu *hw_perf_counter_init(struct perf_counter *counter); |
523 | hw_perf_counter_init(struct perf_counter *counter); | ||
524 | 523 | ||
525 | extern void perf_counter_task_sched_in(struct task_struct *task, int cpu); | 524 | extern void perf_counter_task_sched_in(struct task_struct *task, int cpu); |
526 | extern void perf_counter_task_sched_out(struct task_struct *task, int cpu); | 525 | extern void perf_counter_task_sched_out(struct task_struct *task, int cpu); |