aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-04-06 05:45:04 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-07 04:48:56 -0400
commitf6c7d5fe58b4846ee0cb4b98b6042489705eced4 (patch)
treeb37bda884e0740489269da5ddc3401ffa61f076e /include/linux/perf_counter.h
parentb6276f353bf490add62dcf7db0ebd75baa3e1a37 (diff)
perf_counter: theres more to overflow than writing events
Prepare for more generic overflow handling. The new perf_counter_overflow() method will handle the generic bits of the counter overflow, and can return a !0 return value, in which case the counter should be (soft) disabled, so that it won't count until it's properly disabled. XXX: do powerpc and swcounter Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> LKML-Reference: <20090406094517.812109629@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 977fb15a53f3..ca2d4df29e0c 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -491,8 +491,8 @@ extern int hw_perf_group_sched_in(struct perf_counter *group_leader,
491 struct perf_counter_context *ctx, int cpu); 491 struct perf_counter_context *ctx, int cpu);
492extern void perf_counter_update_userpage(struct perf_counter *counter); 492extern void perf_counter_update_userpage(struct perf_counter *counter);
493 493
494extern void perf_counter_output(struct perf_counter *counter, 494extern int perf_counter_overflow(struct perf_counter *counter,
495 int nmi, struct pt_regs *regs); 495 int nmi, struct pt_regs *regs);
496/* 496/*
497 * Return 1 for a software counter, 0 for a hardware counter 497 * Return 1 for a software counter, 0 for a hardware counter
498 */ 498 */