diff options
| author | Boqun Feng <[email protected]> | 2025-02-24 04:29:31 +0000 |
|---|---|---|
| committer | Boqun Feng <[email protected]> | 2025-03-05 02:46:47 +0000 |
| commit | a56ca5619f9ccce701789e2d231419ed50c0f033 (patch) | |
| tree | 9f3c5ea4135da7580c21e9532a1cbe65d588c5ab /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | rcutorture: Update rcutorture_one_extend_check() for lazy preemption (diff) | |
| download | kernel-a56ca5619f9ccce701789e2d231419ed50c0f033.tar.gz kernel-a56ca5619f9ccce701789e2d231419ed50c0f033.zip | |
rcutorture: Update ->extendables check for lazy preemption
The rcutorture_one_extend_check() function's second last check assumes
that "preempt_count() & PREEMPT_MASK" is non-zero only if
RCUTORTURE_RDR_PREEMPT or RCUTORTURE_RDR_SCHED bit is set.
This works for preemptible RCU and for non-preemptible RCU running in
a non-preemptible kernel. But it fails for non-preemptible RCU running
in a preemptible kernel because then rcu_read_lock() is just
preempt_disable(), which increases preempt count.
This commit therefore adjusts this check to take into account the case
fo non-preemptible RCU running in a preemptible kernel.
Reviewed-by: Paul E. McKenney <[email protected]>
Signed-off-by: Boqun Feng <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
