diff options
author | Peilin Ye <yepeilin@google.com> | 2025-03-03 05:37:19 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-03-15 11:48:26 -0700 |
commit | 2626ffe9f33f9e27aa0a60b2761c2d0760dbcca4 (patch) | |
tree | d41dfd097cc54a758419174db74e44c2be0106f1 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 66faaea94e1a8e8197d98de6e9d07591970837d6 (diff) |
bpf: Factor out check_atomic_rmw()
Currently, check_atomic() only handles atomic read-modify-write (RMW)
instructions. Since we are planning to introduce other types of atomic
instructions (i.e., atomic load/store), extract the existing RMW
handling logic into its own function named check_atomic_rmw().
Remove the @insn_idx parameter as it is not really necessary. Use
'env->insn_idx' instead, as in other places in verifier.c.
Signed-off-by: Peilin Ye <yepeilin@google.com>
Link: https://lore.kernel.org/r/6323ac8e73a10a1c8ee547c77ed68cf8eb6b90e1.1740978603.git.yepeilin@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions