diff options
| author | Marco Elver <[email protected]> | 2024-11-04 15:43:06 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2024-11-05 11:55:35 +0000 |
| commit | 8ab40fc2b9086b915e46890bb9252dc7692f1da0 (patch) | |
| tree | 8e682c5a7b473c8f54e5b313c5c237db0f875957 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | time/sched_clock: Swap update_clock_read_data() latch writes (diff) | |
| download | kernel-8ab40fc2b9086b915e46890bb9252dc7692f1da0.tar.gz kernel-8ab40fc2b9086b915e46890bb9252dc7692f1da0.zip | |
time/sched_clock: Broaden sched_clock()'s instrumentation coverage
Most of sched_clock()'s implementation is ineligible for instrumentation
due to relying on sched_clock_noinstr().
Split the implementation off into an __always_inline function
__sched_clock(), which is then used by the noinstr and instrumentable
version, to allow more of sched_clock() to be covered by various
instrumentation.
This will allow instrumentation with the various sanitizers (KASAN,
KCSAN, KMSAN, UBSAN). For KCSAN, we know that raw seqcount_latch usage
without annotations will result in false positive reports: tell it that
all of __sched_clock() is "atomic" for the latch reader; later changes
in this series will take care of the writers.
Co-developed-by: "Peter Zijlstra (Intel)" <[email protected]>
Signed-off-by: "Peter Zijlstra (Intel)" <[email protected]>
Signed-off-by: Marco Elver <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
