aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_counter.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-04-06 05:45:00 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-07 04:48:54 -0400
commit9c03d88e328d5f28f13191622c2ea1349c36b799 (patch)
tree3c9c9757f9cada69ac32a04dba7e18be99d224dc /kernel/perf_counter.c
parenta2e87d06ddbe6e6fdb8d6d2e5e985efe4efb07dd (diff)
perf_counter: add more context information
Change the callchain context entries to u16, so as to gain some space. 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.457320003@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r--kernel/perf_counter.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index 2a5d4f525567..727624db5078 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -1657,9 +1657,7 @@ void perf_counter_do_pending(void)
1657 * Callchain support -- arch specific 1657 * Callchain support -- arch specific
1658 */ 1658 */
1659 1659
1660struct perf_callchain_entry * 1660__weak struct perf_callchain_entry *perf_callchain(struct pt_regs *regs)
1661__attribute__((weak))
1662perf_callchain(struct pt_regs *regs)
1663{ 1661{
1664 return NULL; 1662 return NULL;
1665} 1663}
@@ -1819,7 +1817,7 @@ void perf_counter_output(struct perf_counter *counter,
1819 callchain = perf_callchain(regs); 1817 callchain = perf_callchain(regs);
1820 1818
1821 if (callchain) { 1819 if (callchain) {
1822 callchain_size = (2 + callchain->nr) * sizeof(u64); 1820 callchain_size = (1 + callchain->nr) * sizeof(u64);
1823 1821
1824 header.type |= __PERF_EVENT_CALLCHAIN; 1822 header.type |= __PERF_EVENT_CALLCHAIN;
1825 header.size += callchain_size; 1823 header.size += callchain_size;