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>
This commit is contained in:
Sergey Matyukevich 2022-08-30 18:53:06 +03:00 • committed by Palmer Dabbelt
commit 096b52fd2b
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889