diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-08-13 04:13:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-13 04:13:22 -0400 |
commit | 28402971d869e26271b25301011f667d3a5640c3 (patch) | |
tree | 39fe9451f609c3ad47382595c61db855ee5dc49d /include | |
parent | 8f7a0dc51674ad0dd06155291b0aed60d655943c (diff) |
perf_counter: Provide hw_perf_counter_setup_online() APIs
Provide weak aliases for hw_perf_counter_setup_online(). This is
used by the BTS patches (for v2.6.32), but it interacts with
fixes so propagate this upstream. (it has no effect as of yet)
Also export perf_counter_output() to architecture code.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_counter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index a9d823a93fe8..2b36afe6ae0f 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -694,6 +694,8 @@ struct perf_sample_data { | |||
694 | 694 | ||
695 | extern int perf_counter_overflow(struct perf_counter *counter, int nmi, | 695 | extern int perf_counter_overflow(struct perf_counter *counter, int nmi, |
696 | struct perf_sample_data *data); | 696 | struct perf_sample_data *data); |
697 | extern void perf_counter_output(struct perf_counter *counter, int nmi, | ||
698 | struct perf_sample_data *data); | ||
697 | 699 | ||
698 | /* | 700 | /* |
699 | * Return 1 for a software counter, 0 for a hardware counter | 701 | * Return 1 for a software counter, 0 for a hardware counter |