summaryrefslogtreecommitdiffstats
path: root/tools/power
diff options
context:
space:
mode:
authorAdrian Hunter2018-12-21 13:06:19 +0100
committerArnaldo Carvalho de Melo2019-01-02 15:03:17 +0100
commit256d92bc93fd40411a02be5cdba74a7bf91e6e09 (patch)
tree92c8ed48b49b018b802461536265b8772339d6c7 /tools/power
parentperf thread-stack: Allocate an array of thread stacks (diff)
downloadkernel-qcow2-linux-256d92bc93fd40411a02be5cdba74a7bf91e6e09.tar.gz
kernel-qcow2-linux-256d92bc93fd40411a02be5cdba74a7bf91e6e09.tar.xz
kernel-qcow2-linux-256d92bc93fd40411a02be5cdba74a7bf91e6e09.zip
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 <adrian.hunter@intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20181221120620.9659-8-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/power')
0 files changed, 0 insertions, 0 deletions