callchain.c (cfbcf468454ab4b20f0b4b62da51920b99fdb19e) | callchain.c (3b1fff08038bd0792b1aa1e9703b2dd0512a3fd0) |
---|---|
1/* 2 * Performance events callchain code, extracted from core.c: 3 * 4 * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> 5 * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar 6 * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra 7 * Copyright � 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> 8 * --- 182 unchanged lines hidden (view full) --- 191 if (rctx == -1) 192 return NULL; 193 194 if (!entry) 195 goto exit_put; 196 197 ctx.entry = entry; 198 ctx.max_stack = max_stack; | 1/* 2 * Performance events callchain code, extracted from core.c: 3 * 4 * Copyright (C) 2008 Thomas Gleixner <tglx@linutronix.de> 5 * Copyright (C) 2008-2011 Red Hat, Inc., Ingo Molnar 6 * Copyright (C) 2008-2011 Red Hat, Inc., Peter Zijlstra 7 * Copyright � 2009 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> 8 * --- 182 unchanged lines hidden (view full) --- 191 if (rctx == -1) 192 return NULL; 193 194 if (!entry) 195 goto exit_put; 196 197 ctx.entry = entry; 198 ctx.max_stack = max_stack; |
199 ctx.nr = entry->nr = init_nr; |
|
199 | 200 |
200 entry->nr = init_nr; 201 | |
202 if (kernel && !user_mode(regs)) { 203 if (add_mark) 204 perf_callchain_store(&ctx, PERF_CONTEXT_KERNEL); 205 perf_callchain_kernel(&ctx, regs); 206 } 207 208 if (user) { 209 if (!user_mode(regs)) { --- 44 unchanged lines hidden --- | 201 if (kernel && !user_mode(regs)) { 202 if (add_mark) 203 perf_callchain_store(&ctx, PERF_CONTEXT_KERNEL); 204 perf_callchain_kernel(&ctx, regs); 205 } 206 207 if (user) { 208 if (!user_mode(regs)) { --- 44 unchanged lines hidden --- |