diff options
author | 2024-10-15 09:11:04 -0700 | |
---|---|---|
committer | 2024-11-12 15:43:21 +0100 | |
commit | 05829be27fe6f64e0675dc3be3a12d43b52492e1 (patch) | |
tree | 6826b594fda28cf369a03b3c4b3a72ea676b8991 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | srcu: Improve srcu_read_lock{,_nmisafe}() comments (diff) | |
download | wireguard-linux-05829be27fe6f64e0675dc3be3a12d43b52492e1.tar.xz wireguard-linux-05829be27fe6f64e0675dc3be3a12d43b52492e1.zip |
srcu: Create CPP macros for normal and NMI-safe SRCU readers
This commit creates SRCU_READ_FLAVOR_NORMAL and SRCU_READ_FLAVOR_NMI
C-preprocessor macros for srcu_read_lock() and srcu_read_lock_nmisafe(),
respectively. These replace the old true/false values that were
previously passed to srcu_check_read_flavor(). In addition, the
srcu_check_read_flavor() function itself requires a bit of rework to
handle bitmasks instead of true/false values.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: <bpf@vger.kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions