diff options
author | Xu Yang <xu.yang_2@nxp.com> | 2024-05-29 11:03:53 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-07-01 17:42:59 +0300 |
commit | 27e4a6523edd2aaf78abd72556d30629a38490b2 (patch) | |
tree | 30394a59807997179d99c3f2d1ddea76188a3b55 /scripts/gdb/linux/tasks.py | |
parent | 4773dd10fda0e12a08a231d2fb773646817da343 (diff) | |
download | linux-27e4a6523edd2aaf78abd72556d30629a38490b2.tar.xz |
perf: imx_perf: let the driver manage the counter usage rather the user
In current design, the user of perf app needs to input counter ID to count
events. However, this is not user-friendly since the user needs to lookup
the map table to find the counter. Instead of letting the user to input
the counter, let this driver to manage the counters in this patch.
This will be implemented by:
1. allocate counter 0 for cycle event.
2. find unused counter from 1-10 for reference events.
3. allocate specific counter for counter-specific events.
In this patch, counter attr will be kept for back-compatible but all the
value passed down by counter=<n> will be ignored. To mark counter-specific
events, counter ID will be encoded into perf_pmu_events_attr.id.
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20240529080358.703784-3-xu.yang_2@nxp.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions