]> git.baikalelectronics.ru Git - kernel.git/commit
perf session: Add comment for perf_session__register_idle_thread()
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 21 Dec 2018 12:06:20 +0000 (14:06 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 2 Jan 2019 14:05:06 +0000 (11:05 -0300)
commit74b1140b77c94f70aab6f7e067e4c6475bcf81ed
tree0dac9718cbb0de36b66b45f9d1d7a8d2b01c32ad
parent7e27e9a000dd253a8a0fe9ca6a8e5f718a4f5c34
perf session: Add comment for perf_session__register_idle_thread()

Add a comment to perf_session__register_idle_thread() to bring attention to
a pitfall with the idle task thread structure. The pitfall is that there
should really be a 'struct thread' for the idle task of each cpu, but there
is only one that can have pid == tid == 0.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20181221120620.9659-9-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c