diff options
| author | Yu Chien Peter Lin <[email protected]> | 2023-11-30 20:42:02 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-12-06 17:30:01 +0530 |
| commit | a48f2cfd94d3be641b2b17eb3fa9090bed2d6cb8 (patch) | |
| tree | 99422c4201161509f27b01fbf9b9a59ad4cfbb12 /platform/generic/include | |
| parent | 090fa99d7cf519a8b7d2685ae9f84a2fbe46b083 (diff) | |
sbi: sbi_pmu: Add hw_counter_filter_mode() to pmu device
Add support for custom PMU extensions to set inhibit bits
on custom CSRs by introducing the PMU device callback
hw_counter_filter_mode(). This allows the perf tool to
restrict event counting under a specified privileged
mode by appending a modifier, e.g. perf record -e event:k
to count events only happening in kernel mode.
Signed-off-by: Yu Chien Peter Lin <[email protected]>
Reviewed-by: Leo Yu-Chi Liang <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/generic/include')
0 files changed, 0 insertions, 0 deletions
