bpf: Support 'X' in bpf_seq_printf() helper
authorYonghong Song <yhs@fb.com>
Tue, 23 Jun 2020 23:08:07 +0000 (16:08 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Jun 2020 01:37:58 +0000 (18:37 -0700)
commitc06b0229579806f5b5e14af64cf9c5dc771445b3
treeeadac4c9a80ace4d56b40d116fdf6ef2fc4d7ad4
parent52d87d5f6418ba1b8b449ed5eea1532664896851
bpf: Support 'X' in bpf_seq_printf() helper

'X' tells kernel to print hex with upper case letters.
/proc/net/tcp{4,6} seq_file show() used this, and
supports it in bpf_seq_printf() helper too.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200623230807.3988014-1-yhs@fb.com
kernel/trace/bpf_trace.c