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>
This commit is contained in:
Peter Zijlstra
2009-04-02 11:12:03 +02:00
committed by Ingo Molnar
parent 3df70fd623
commit 5872bdb88a
3 changed files with 12 additions and 3 deletions

View File

@@ -513,10 +513,10 @@ extern void perf_counter_mmap(unsigned long addr, unsigned long len,
extern void perf_counter_munmap(unsigned long addr, unsigned long len,
unsigned long pgoff, struct file *file);
#define MAX_STACK_DEPTH 255
#define MAX_STACK_DEPTH 254
struct perf_callchain_entry {
u64 nr;
u32 nr, hv, kernel, user;
u64 ip[MAX_STACK_DEPTH];
};