diff options
author | Brendan Jackman <[email protected]> | 2021-01-14 18:17:48 +0000 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-01-14 18:34:29 -0800 |
commit | 462910670e4ac91509829c5549bd0227668176fb (patch) | |
tree | 6d97a7890d74d3be0dd65e0f1822c3e57e8f4a25 /tools/perf/scripts/python/flamegraph.py | |
parent | 5ffa25502b5ab3d639829a2d1e316cff7f59a41e (diff) |
bpf: Pull out a macro for interpreting atomic ALU operations
Since the atomic operations that are added in subsequent commits are
all isomorphic with BPF_ADD, pull out a macro to avoid the
interpreter becoming dominated by lines of atomic-related code.
Note that this sacrificies interpreter performance (combining
STX_ATOMIC_W and STX_ATOMIC_DW into single switch case means that we
need an extra conditional branch to differentiate them) in favour of
compact and (relatively!) simple C code.
Signed-off-by: Brendan Jackman <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions