diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-10 15:02:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-10 20:39:02 -0400 |
commit | df1a132bf3d3508f863336c80a27806a2ac947e0 (patch) | |
tree | 2aa26b9c5d0528e816a80bd3b58c9b2442670d5c /include/linux/perf_counter.h | |
parent | ea1900e571d40a3ce60c835c2f21e1fd8c5cb663 (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.h | 10 |
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); |
606 | extern void perf_counter_update_userpage(struct perf_counter *counter); | 606 | extern void perf_counter_update_userpage(struct perf_counter *counter); |
607 | 607 | ||
608 | extern int perf_counter_overflow(struct perf_counter *counter, | 608 | struct perf_sample_data { |
609 | int nmi, struct pt_regs *regs, u64 addr); | 609 | struct pt_regs *regs; |
610 | u64 addr; | ||
611 | }; | ||
612 | |||
613 | extern 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 | */ |