diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-04-02 05:12:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:30:46 -0400 |
commit | 5872bdb88a35fae7d224bd6b21e5f377e854ccfc (patch) | |
tree | 915ff65a7bcdaa05d0a76c007d1068b25d476cc4 /include/linux/perf_counter.h | |
parent | 3df70fd623bb109e0079e697c0276d220a4b7908 (diff) |
perf_counter: add more context information
Put in counts to tell which ips belong to what context.
-----
| | hv
| --
nr | | kernel
| --
| | user
-----
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Orig-LKML-Reference: <20090402091319.493101305@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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 5428ba120d78..90cce0c74a03 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -513,10 +513,10 @@ extern void perf_counter_mmap(unsigned long addr, unsigned long len, | |||
513 | extern void perf_counter_munmap(unsigned long addr, unsigned long len, | 513 | extern void perf_counter_munmap(unsigned long addr, unsigned long len, |
514 | unsigned long pgoff, struct file *file); | 514 | unsigned long pgoff, struct file *file); |
515 | 515 | ||
516 | #define MAX_STACK_DEPTH 255 | 516 | #define MAX_STACK_DEPTH 254 |
517 | 517 | ||
518 | struct perf_callchain_entry { | 518 | struct perf_callchain_entry { |
519 | u64 nr; | 519 | u32 nr, hv, kernel, user; |
520 | u64 ip[MAX_STACK_DEPTH]; | 520 | u64 ip[MAX_STACK_DEPTH]; |
521 | }; | 521 | }; |
522 | 522 | ||