diff options
| author | Waiman Long <[email protected]> | 2020-02-06 10:24:03 -0500 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2020-02-11 13:10:48 +0100 |
| commit | b3b9c187dc2544923a601733a85352b9ddaba9b3 (patch) | |
| tree | 2c2b41e70bfd9d19ad847a43c3a501c8a99aa9b9 /tools/perf/scripts/python/sctop.py | |
| parent | 0a679e13ea30f85a1aef0669ee0c5a9fd7860b34 (diff) | |
locking/lockdep: Decrement IRQ context counters when removing lock chain
There are currently three counters to track the IRQ context of a lock
chain - nr_hardirq_chains, nr_softirq_chains and nr_process_chains.
They are incremented when a new lock chain is added, but they are
not decremented when a lock chain is removed. That causes some of the
statistic counts reported by /proc/lockdep_stats to be incorrect.
IRQ
Fix that by decrementing the right counter when a lock chain is removed.
Since inc_chains() no longer accesses hardirq_context and softirq_context
directly, it is moved out from the CONFIG_TRACE_IRQFLAGS conditional
compilation block.
Fixes: a0b0fd53e1e6 ("locking/lockdep: Free lock classes that are no longer in use")
Signed-off-by: Waiman Long <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions