]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Refactor out kernel symbol argument sanity checking
authorJames Clark <james.clark@arm.com>
Mon, 18 Oct 2021 13:48:41 +0000 (14:48 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 7 Nov 2021 15:27:38 +0000 (12:27 -0300)
commitf77d35810a768b9d1a493a6e43d8ff6e5e4d80f8
tree716447c1a051e6cdaa055f2328df4b8721a95c9d
parente4e41b426340daf43b5b0f3358a21873b018b025
perf tools: Refactor out kernel symbol argument sanity checking

User supplied values for vmlinux and kallsyms are checked before
continuing. Refactor this into a function so that it can be used
elsewhere.

Reviewed-by: Denis Nikitin <denik@chromium.org>
Signed-off-by: James Clark <james.clark@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20211018134844.2627174-2-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c
tools/perf/util/symbol.c
tools/perf/util/symbol.h