]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3934ca913a8b4faec0efc25f635fc184295898d3
treec9eddcb2c995c15432af25402db356c90ac3d757
parent653a326c277b0f266528c44f9cdae14954fe4cab
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: d9282374a6ca ("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