mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
tracing: Add skip argument to trace_dump_stack()
Altough the trace_dump_stack() already skips three functions in the call to stack trace, which gets the stack trace to start at the caller of the function, the caller may want to skip some more too (as it may have helper functions). Add a skip argument to the trace_dump_stack() that lets the caller skip back tracing functions that it doesn't care about. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
3cd715de26
commit
c142be8ebe
2 changed files with 10 additions and 5 deletions
|
@ -597,7 +597,7 @@ extern int __trace_puts(unsigned long ip, const char *str, int size);
|
|||
__trace_puts(_THIS_IP_, str, strlen(str)); \
|
||||
})
|
||||
|
||||
extern void trace_dump_stack(void);
|
||||
extern void trace_dump_stack(int skip);
|
||||
|
||||
/*
|
||||
* The double __builtin_constant_p is because gcc will give us an error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue