mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 07:26:45 +07:00
0741f4d207
Add sysctl for kstack_depth_to_print. This lets users change the amount of raw stack data printed in dump_stack() without having to reboot. Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com> Signed-off-by: Andi Kleen <ak@suse.de>
21 lines
581 B
C
21 lines
581 B
C
#ifndef _ASM_STACKTRACE_H
|
|
#define _ASM_STACKTRACE_H 1
|
|
|
|
extern int kstack_depth_to_print;
|
|
|
|
/* Generic stack tracer with callbacks */
|
|
|
|
struct stacktrace_ops {
|
|
void (*warning)(void *data, char *msg);
|
|
/* msg must contain %s for the symbol */
|
|
void (*warning_symbol)(void *data, char *msg, unsigned long symbol);
|
|
void (*address)(void *data, unsigned long address);
|
|
/* On negative return stop dumping */
|
|
int (*stack)(void *data, char *name);
|
|
};
|
|
|
|
void dump_trace(struct task_struct *tsk, struct pt_regs *regs, unsigned long *stack,
|
|
struct stacktrace_ops *ops, void *data);
|
|
|
|
#endif
|