OSDN Git Service

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)
commita3df50abeb7372fd0f1973f885fb8d634ac4e739
tree716447c1a051e6cdaa055f2328df4b8721a95c9d
parent1a86f4ba5cf1c19b55a12be8e5e9235a23921f8d
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