linux-stable/tools/perf/arch/x86
Arnaldo Carvalho de Melo ce1d3bc273 perf evsel: Introduce evsel__name_is() method to check if the evsel name is equal to a given string
This makes the logic a bit clear by avoiding the !strcmp() pattern and
also a way to intercept the pointer if we need to do extra validation on
it or to do lazy setting of evsel->name via evsel__name(evsel).

Reviewed-by: "Liang, Kan" <kan.liang@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZEGLM8VehJbS0gP2@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-04-24 14:28:11 -03:00
..
annotate perf annotate: Add fusion logic for AMD microarchs 2021-09-15 17:54:52 -03:00
entry/syscalls tools headers UAPI: Sync files changed by new set_mempolicy_home_node syscall 2022-01-20 11:20:37 -03:00
include perf intel-pt: Add hybrid CPU compatibility test 2022-11-09 15:23:12 -03:00
tests perf map: Add accessor for start and end 2023-04-04 16:54:11 -03:00
util perf evsel: Introduce evsel__name_is() method to check if the evsel name is equal to a given string 2023-04-24 14:28:11 -03:00
Build perf tools: Rename build libperf to perf 2019-02-14 15:18:08 -03:00
Makefile perf tools: Clean 'generated' directory used for creating the syscall table on x86 2021-03-06 16:54:25 -03:00