perf tools: Add perf_config_scan()
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 5 Sep 2022 07:34:19 +0000 (10:34 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:21 +0000 (08:55 -0300)
commitc3ca8d44185cc2ac5ca75d2d38647979da5b0035
tree4e318e46268c6dbff55381cfc3ace3563929a239
parent016f2f9821bd5d056d454aefa603f8b4f7d0e0f0
perf tools: Add perf_config_scan()

To simplify getting a single config value, add a function to scan a config
variable.

Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220905073424.3971-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/config.c
tools/perf/util/config.h