bpf: btf: refactor btf_int_bits_seq_show()
authorYonghong Song <yhs@fb.com>
Sun, 16 Dec 2018 06:13:50 +0000 (22:13 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 18 Dec 2018 00:11:59 +0000 (01:11 +0100)
commitf97be3ab044cf6dd342fed7668c977ba07a7cd95
tree4252cca3d649643fe45ca6a587789ee187c7e4a6
parent6c4fc209fcf9d27efbaa48368773e4d2bfbd59aa
bpf: btf: refactor btf_int_bits_seq_show()

Refactor function btf_int_bits_seq_show() by creating
function btf_bitfield_seq_show() which has no dependence
on btf and btf_type. The function btf_bitfield_seq_show()
will be in later patch to directly dump bitfield member values.

Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/btf.c