]> Git Repo - linux.git/commit
perf machine: Factor out machine__idle_thread()
authorAdrian Hunter <[email protected]>
Thu, 18 Feb 2021 09:57:56 +0000 (11:57 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 18 Feb 2021 19:14:33 +0000 (16:14 -0300)
commit3035cb6cbd2d62a764fa451ed9534eafdd0b446c
tree4b7fc4f6d8eee83223cd9214909d6bab7d422459
parentfcda5ff711d9ddb7a92fff38b2cc153be8123c0e
perf machine: Factor out machine__idle_thread()

Factor out machine__idle_thread() so it can be re-used for guest machines.

A thread is needed to find executable code, even for the guest kernel. To
avoid possible future pid number conflicts, the idle thread can be used.

Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Andi Kleen <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/session.c
This page took 0.052716 seconds and 4 git commands to generate.