summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2020-03-18 20:16:43 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-03-20 17:51:35 +0300
commit30255d317579e93ca3ecf7f4ab953094123e4a8c (patch)
tree1fbd68bd94c0fbd9b237b27e7d599245e44c3de7 /tools/perf/scripts/python
parentca7e6e45d108f5712aec4407e6c757af59d43d0f (diff)
downloadlinux-30255d317579e93ca3ecf7f4ab953094123e4a8c.tar.xz
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 <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andriin@fb.com> Acked-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/bpf/20200318171643.129021-1-kafai@fb.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions