diff options
author | Atish Patra <atishp@rivosinc.com> | 2025-03-04 01:53:06 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2025-03-06 07:27:07 +0300 |
commit | bbb622488749478955485765ddff9d56be4a7e4b (patch) | |
tree | 53926d41eca8eeb681089533f350d3a88632d3e0 /tools/perf/scripts/python/gecko.py | |
parent | 7eb172143d5508b4da468ed59ee857c6e5e01da6 (diff) | |
download | linux-bbb622488749478955485765ddff9d56be4a7e4b.tar.xz |
RISC-V: KVM: Disable the kernel perf counter during configure
The perf event should be marked disabled during the creation as
it is not ready to be scheduled until there is SBI PMU start call
or config matching is called with auto start. Otherwise, event add/start
gets called during perf_event_create_kernel_counter function.
It will be enabled and scheduled to run via perf_event_enable during
either the above mentioned scenario.
Fixes: 0cb74b65d2e5 ("RISC-V: KVM: Implement perf support without sampling")
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20250303-kvm_pmu_improve-v2-1-41d177e45929@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions