2020-03-15 17:55 UTC-0700 ~ Martin KaFai Lau [off-list ref]
This set adds "struct_ops" support to bpftool.
The first two patches improve the btf_dumper in bpftool.
Patch 1: print the enum's name (if it is found) instead of the
enum's value.
Patch 2: print a char[] as a string if all characters are printable.
"struct_ops" stores the prog_id in a func ptr.
Instead of printing a prog_id,
patch 3 adds an option to btf_dumper to allow a func ptr's value
to be printed with the full func_proto info and the prog_name.
Patch 4 implements the "struct_ops" bpftool command.
Hi Martin, I have a few very small nits on patch 4 -- please see related
message -- but other than this your series looks good to me.
Acked-by: Quentin Monnet <redacted>
(I did not test it, though.)
Thanks,
Quentin