aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2020-03-18 10:16:43 -0700
committerDaniel Borkmann <[email protected]>2020-03-20 15:51:35 +0100
commit30255d317579e93ca3ecf7f4ab953094123e4a8c (patch)
tree1fbd68bd94c0fbd9b237b27e7d599245e44c3de7 /lib/test_overflow.c
parentca7e6e45d108f5712aec4407e6c757af59d43d0f (diff)
bpftool: Print as a string for char array
A char[] is currently printed as an integer array. This patch will print it as a string when 1) The array element type is an one byte int 2) The array element type has a BTF_INT_CHAR encoding or the array element type's name is "char" 3) All characters is between (0x1f, 0x7f) and it is terminated by a null character. Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Acked-by: Quentin Monnet <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions