summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJames Chapman <jchapman@katalix.com>2024-07-29 16:38:12 +0100
committerDavid S. Miller <davem@davemloft.net>2024-07-31 09:25:13 +0100
commit0aa45570c3241e3bdba1a8b5b30d200c819b5b15 (patch)
treedb23f65675c903124d1b935c7766b751b3c164e9 /tools/perf/scripts/python/stackcollapse.py
parent89b768ec2dfefaeba5212de14fc71368e12d06ba (diff)
l2tp: add idr consistency check in session_register
l2tp_session_register uses an idr_alloc then idr_replace pattern to insert sessions into the session IDR. To catch invalid locking, add a WARN_ON_ONCE if the IDR entry is modified by another thread between alloc and replace steps. Also add comments to make expectations clear. Signed-off-by: James Chapman <jchapman@katalix.com> Signed-off-by: Tom Parkin <tparkin@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions