aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-02-06 21:05:44 -0800
committerIngo Molnar <[email protected]>2024-04-10 06:13:57 +0200
commit0259bf63f71e2accfeca4a4e346ede8edcc86aab (patch)
tree9af8bdbc67f072d870c7df0de5df98d654f3696b /tools/perf/scripts/python/export-to-postgresql.py
parent9794563d4d053b1b46a0cc91901f0a11d8678c19 (diff)
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Tested-by: Mingwei Zhang <[email protected]> Reviewed-by: Ian Rogers <[email protected]> Reviewed-by: Kan Liang <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions