diff options
author | Jiri Slaby <[email protected]> | 2019-10-30 08:25:45 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2019-11-04 21:19:25 +0100 |
commit | b0c51f158455e31d5024100cf3580fcd88214b0e (patch) | |
tree | 91ad1228a374988275c24f2c3f31063a1faa6610 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a99d8080aaf358d5d23581244e5da23b35e340b9 (diff) |
stacktrace: Don't skip first entry on noncurrent tasks
When doing cat /proc/<PID>/stack, the output is missing the first entry.
When the current code walks the stack starting in stack_trace_save_tsk,
it skips all scheduler functions (that's OK) plus one more function. But
this one function should be skipped only for the 'current' task as it is
stack_trace_save_tsk proper.
The original code (before the common infrastructure) skipped one
function only for the 'current' task -- see save_stack_trace_tsk before
3599fe12a125. So do so also in the new infrastructure now.
Fixes: 214d8ca6ee85 ("stacktrace: Provide common infrastructure")
Signed-off-by: Jiri Slaby <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Michal Suchanek <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions