bianbu-linux-6.6/tools/perf/arch/x86/util
James Clark 6593f019c2 perf tools: Add util function for overriding user set config values
There is some duplicated code to only override config values if they
haven't already been set by the user so make a util function for this.

Signed-off-by: James Clark <james.clark@arm.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Denis Nikitin <denik@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Yang Shi <shy828301@gmail.com>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230424134748.228137-3-james.clark@arm.com
[ Moved evsel__set_config_if_unset() to util/pmu.c to avoid dragging stuff into the python binding ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-04-24 14:41:51 -03:00
..
archinsn.c tools/perf: Convert to insn_decode() 2021-03-15 12:41:26 +01:00
auxtrace.c perf pmu: Earlier PMU auxtrace initialization 2023-03-13 15:12:19 -03:00
Build perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
cpuid.h perf tsc: Add arch TSC frequency information 2022-07-25 12:28:00 -03:00
dwarf-regs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
event.c perf map: Add accessors for ->pgoff and ->reloc 2023-04-06 22:12:40 -03:00
evlist.c perf parse-events: Sort and group parsed events 2023-03-13 17:42:26 -03:00
evsel.c perf evsel: Add arch_evsel__hw_name() 2022-07-29 13:41:19 -03:00
evsel.h perf record: Support sample-read topdown metric group for hybrid platforms 2022-06-03 21:30:10 +02:00
header.c perf tsc: Add arch TSC frequency information 2022-07-25 12:28:00 -03:00
intel-bts.c perf tools: Do not pass NULL to parse_events() 2022-08-10 14:30:09 -03:00
intel-pt.c perf tools: Add util function for overriding user set config values 2023-04-24 14:41:51 -03:00
iostat.c perf x86 iostat: Use zfree() to reduce chances of use after free 2023-04-12 09:59:19 -03:00
kvm-stat.c 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
machine.c tools: Fix off-by 1 relative directory includes 2020-03-06 08:36:46 -03:00
mem-events.c perf mem/c2c: Add load store event mappings for AMD 2022-10-06 16:30:06 -03:00
perf_regs.c perf regs x86: Fix arch__intr_reg_mask() for the hybrid platform 2022-05-21 14:45:19 -03:00
pmu.c perf pmu: Use relative path in setup_pmu_alias_list() 2023-04-04 13:23:59 -03:00
topdown.c perf stat: Implement --topdown using json metrics 2023-02-19 08:07:24 -03:00
topdown.h perf stat: Add TopdownL1 metric as a default if present 2023-02-19 08:07:19 -03:00
tsc.c perf arch x86: Add missing stdlib.h to get free() prototype 2022-10-27 16:37:26 -03:00
unwind-libdw.c perf tools: Move 'struct perf_sample' to a separate header file to disentangle headers 2022-10-31 11:06:41 -03:00
unwind-libunwind.c perf unwind: Fix libunwind build failure on i386 systems 2019-09-26 21:59:38 +02:00