perf: RISC-V: throttle perf events
authorSergey Matyukevich <sergey.matyukevich@syntacore.com>
Tue, 30 Aug 2022 15:53:06 +0000 (18:53 +0300)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 8 Sep 2022 20:34:58 +0000 (13:34 -0700)
commit096b52fd2bb4996fd68d22b3b7ad21a1296db9d3
treed0628c73848c5c1f5d279baab349358985f4a0cc
parent1537bf26e212ffcf007d0590958025f6bfdd4ac8
perf: RISC-V: throttle perf events

Call perf_sample_event_took() to report time spent in overflow
interrupts. Perf core uses these measurements to throttle
perf events properly.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich@syntacore.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20220830155306.301714-4-geomatsi@gmail.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/perf/riscv_pmu_sbi.c