perf evsel: Separate missing feature disabling from evsel__open_cpu
authorRiccardo Mancini <rickyman7@gmail.com>
Sat, 21 Aug 2021 09:19:23 +0000 (11:19 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 31 Aug 2021 19:34:03 +0000 (16:34 -0300)
commit588f4ac7639941d12fa669c30e64e0d68fb96b08
tree84e99af42dcf7623ddc7da0dd341691eb1f172b2
parent46def08f5db0d84275bd0a3ba4a279a2197aa3a6
perf evsel: Separate missing feature disabling from evsel__open_cpu

This is a preparatory patch for the patches in the workqueue series with
the goal to separate in evlist__open_cpu() the actual opening, which
could be performed in parallel, from the existing fallback mechanisms,
which should be handled sequentially.

This patch separates the disabling of missing features from
evlist__open_cpu() into a new function evsel__disable_missing_features(().

Signed-off-by: Riccardo Mancini <rickyman7@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/48138bd2932646dde315505da733c2ca635ad2ee.1629490974.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c