dumpstack_64.c (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) dumpstack_64.c (44b979fa302cab91bdd2cc982823e5c13202cd4e)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
5 */
6#include <linux/sched/debug.h>
7#include <linux/kallsyms.h>
8#include <linux/kprobes.h>

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

27 [ ESTACK_VC ] = "#VC",
28 [ ESTACK_VC2 ] = "#VC2",
29};
30
31const char *stack_type_name(enum stack_type type)
32{
33 BUILD_BUG_ON(N_EXCEPTION_STACKS != 6);
34
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 1991, 1992 Linus Torvalds
4 * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
5 */
6#include <linux/sched/debug.h>
7#include <linux/kallsyms.h>
8#include <linux/kprobes.h>

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

27 [ ESTACK_VC ] = "#VC",
28 [ ESTACK_VC2 ] = "#VC2",
29};
30
31const char *stack_type_name(enum stack_type type)
32{
33 BUILD_BUG_ON(N_EXCEPTION_STACKS != 6);
34
35 if (type == STACK_TYPE_TASK)
36 return "TASK";
37
35 if (type == STACK_TYPE_IRQ)
36 return "IRQ";
37
38 if (type == STACK_TYPE_IRQ)
39 return "IRQ";
40
41 if (type == STACK_TYPE_SOFTIRQ)
42 return "SOFTIRQ";
43
38 if (type == STACK_TYPE_ENTRY) {
39 /*
40 * On 64-bit, we have a generic entry stack that we
41 * use for all the kernel entry points, including
42 * SYSENTER.
43 */
44 return "ENTRY_TRAMPOLINE";
45 }

--- 170 unchanged lines hidden ---
44 if (type == STACK_TYPE_ENTRY) {
45 /*
46 * On 64-bit, we have a generic entry stack that we
47 * use for all the kernel entry points, including
48 * SYSENTER.
49 */
50 return "ENTRY_TRAMPOLINE";
51 }

--- 170 unchanged lines hidden ---