aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-10 15:02:22 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-10 20:39:02 -0400
commitdf1a132bf3d3508f863336c80a27806a2ac947e0 (patch)
tree2aa26b9c5d0528e816a80bd3b58c9b2442670d5c /include/linux/perf_counter.h
parentea1900e571d40a3ce60c835c2f21e1fd8c5cb663 (diff)
perf_counter: Introduce struct for sample data
For easy extension of the sample data, put it in a structure. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 282d8cc48980..d8c0eb480f9a 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -605,8 +605,14 @@ extern int hw_perf_group_sched_in(struct perf_counter *group_leader,
605 struct perf_counter_context *ctx, int cpu); 605 struct perf_counter_context *ctx, int cpu);
606extern void perf_counter_update_userpage(struct perf_counter *counter); 606extern void perf_counter_update_userpage(struct perf_counter *counter);
607 607
608extern int perf_counter_overflow(struct perf_counter *counter, 608struct perf_sample_data {
609 int nmi, struct pt_regs *regs, u64 addr); 609 struct pt_regs *regs;
610 u64 addr;
611};
612
613extern int perf_counter_overflow(struct perf_counter *counter, int nmi,
614 struct perf_sample_data *data);
615
610/* 616/*
611 * Return 1 for a software counter, 0 for a hardware counter 617 * Return 1 for a software counter, 0 for a hardware counter
612 */ 618 */