Thread (13 messages) 13 messages, 3 authors, 2020-03-17

Re: [PATCH bpf-next 0/4] bpftool: Add struct_ops support

From: Quentin Monnet <hidden>
Date: 2020-03-16 11:54:45
Also in: bpf

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help