diff options
author | Adrian Hunter <[email protected]> | 2018-12-21 14:06:19 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-01-02 11:03:17 -0300 |
commit | 256d92bc93fd40411a02be5cdba74a7bf91e6e09 (patch) | |
tree | 92c8ed48b49b018b802461536265b8772339d6c7 /tools/perf/scripts/python/sctop.py | |
parent | 139f42f3b3b495e61bb2cfef40e1dd5e845e3052 (diff) |
perf thread-stack: Fix thread stack processing for the idle task
perf creates a single 'struct thread' to represent the idle task. That
is because threads are identified by PID and TID, and the idle task
always has PID == TID == 0.
However, there are actually separate idle tasks for each CPU. That
creates a problem for thread stack processing which assumes that each
thread has a single stack, not one stack per CPU.
Fix that by passing through the CPU number, and in the case of the idle
"thread", pick the thread stack from an array based on the CPU number.
Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions