summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2025-03-10 21:15:36 +0300
committerPeter Zijlstra <peterz@infradead.org>2025-03-17 13:23:36 +0300
commitc53e14f1ea4a8f8ddd9b2cd850fcbc0d934b79f5 (patch)
treed115929cd988038f64bd3535167f7545c4327198 /tools/perf/scripts/python/gecko.py
parentc96fff391c095c11dc87dab35be72dee7d217cde (diff)
downloadlinux-c53e14f1ea4a8f8ddd9b2cd850fcbc0d934b79f5.tar.xz
perf: Extend per event callchain limit to branch stack
The commit 97c79a38cd45 ("perf core: Per event callchain limit") introduced a per-event term to allow finer tuning of the depth of callchains to save space. It should be applied to the branch stack as well. For example, autoFDO collections require maximum LBR entries. In the meantime, other system-wide LBR users may only be interested in the latest a few number of LBRs. A per-event LBR depth would save the perf output buffer. The patch simply drops the uninterested branches, but HW still collects the maximum branches. There may be a model-specific optimization that can reduce the HW depth for some cases to reduce the overhead further. But it isn't included in the patch set. Because it's not useful for all cases. For example, ARCH LBR can utilize the PEBS and XSAVE to collect LBRs. The depth should have less impact on the collecting overhead. The model-specific optimization may be implemented later separately. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20250310181536.3645382-1-kan.liang@linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions