OSDN Git Service

bpftool: Respect the -d option in struct_ops cmd
authorMartin KaFai Lau <kafai@fb.com>
Fri, 24 Apr 2020 18:29:11 +0000 (11:29 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 25 Apr 2020 00:40:54 +0000 (17:40 -0700)
commit32e4c6f4bc00366ede053ab6bb8109ec0fae0e54
treec9eddcb2c995c15432af25402db356c90ac3d757
parent1d8a0af5ee1ad219a9ebd9b43559b165bcb3ff40
bpftool: Respect the -d option in struct_ops cmd

In the prog cmd, the "-d" option turns on the verifier log.
This is missed in the "struct_ops" cmd and this patch fixes it.

Fixes: 65c93628599d ("bpftool: Add struct_ops support")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20200424182911.1259355-1-kafai@fb.com
tools/bpf/bpftool/struct_ops.c