diff options
author | 2024-02-06 21:05:44 -0800 | |
---|---|---|
committer | 2024-04-10 06:13:57 +0200 | |
commit | 0259bf63f71e2accfeca4a4e346ede8edcc86aab (patch) | |
tree | 9af8bdbc67f072d870c7df0de5df98d654f3696b /scripts/gdb/linux/utils.py | |
parent | perf/x86/amd: Don't reject non-sampling events with configured LBR (diff) | |
download | linux-rng-0259bf63f71e2accfeca4a4e346ede8edcc86aab.tar.xz linux-rng-0259bf63f71e2accfeca4a4e346ede8edcc86aab.zip |
perf/core: Optimize perf_adjust_freq_unthr_context()
It was unnecessarily disabling and enabling PMUs for each event. It
should be done at PMU level. Add pmu_ctx->nr_freq counter to check it
at each PMU. As PMU context has separate active lists for pinned group
and flexible group, factor out a new function to do the job.
Another minor optimization is that it can skip PMUs w/ CAP_NO_INTERRUPT
even if it needs to unthrottle sampling events.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Mingwei Zhang <mizhang@google.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20240207050545.2727923-1-namhyung@kernel.org
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions