aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-12-02 09:57:05 -0800
committerAlexei Starovoitov <[email protected]>2023-12-02 11:36:51 -0800
commit81eff2e36481c5cf4a2ac906ae56c3fbd3e6f305 (patch)
treee236cae5c30d8c1f05346f4eb167109a433a1db6 /tools/testing/selftests/bpf/progs/test_autoload.c
parent5c19e1d05e9e71b42d8e779f41959254239709da (diff)
bpf: simplify tnum output if a fully known constant
Emit tnum representation as just a constant if all bits are known. Use decimal-vs-hex logic to determine exact format of emitted constant value, just like it's done for register range values. For that move tnum_strn() to kernel/bpf/log.c to reuse decimal-vs-hex determination logic and constants. Acked-by: Shung-Hsi Yu <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions