stacktrace.c (597473720f4dc69749542bfcfed4a927a43d935e) stacktrace.c (09f8a6db20e6ed8eab1b2b23d09d2458f6e15062)
1/*
2 * Kernel and userspace stack tracing.
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 2001 - 2013 Tensilica Inc.

--- 30 unchanged lines hidden (view full) ---

39 return;
40
41 frame.pc = pc;
42 frame.sp = a1;
43
44 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data))
45 return;
46
1/*
2 * Kernel and userspace stack tracing.
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 2001 - 2013 Tensilica Inc.

--- 30 unchanged lines hidden (view full) ---

39 return;
40
41 frame.pc = pc;
42 frame.sp = a1;
43
44 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data))
45 return;
46
47 if (IS_ENABLED(CONFIG_USER_ABI_CALL0_ONLY) ||
48 (IS_ENABLED(CONFIG_USER_ABI_CALL0_PROBE) &&
49 !(regs->ps & PS_WOE_MASK)))
50 return;
51
47 /* Two steps:
48 *
49 * 1. Look through the register window for the
50 * previous PCs in the call trace.
51 *
52 * 2. Look on the stack.
53 */
54

--- 216 unchanged lines hidden ---
52 /* Two steps:
53 *
54 * 1. Look through the register window for the
55 * previous PCs in the call trace.
56 *
57 * 2. Look on the stack.
58 */
59

--- 216 unchanged lines hidden ---