perf tools: Allow system-wide events to keep their own threads
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 24 May 2022 07:54:36 +0000 (10:54 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 May 2022 15:36:57 +0000 (12:36 -0300)
commita41e24f6c3ffdd001f976f9bd76634f2163715f5
tree6bec53064b34d0a28b9b393b71b5410922268ebc
parent298613b8e3f68a1aef2370cd6a9dad462b6c0457
perf tools: Allow system-wide events to keep their own threads

System-wide events do not have threads, so do not propagate threads to
them.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20220524075436.29144-16-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/evlist.c