Skip to content

Commit 0f236b6

Browse files
committed
veristat: Report program type guess results to sdterr
JIRA: https://issues.redhat.com/browse/RHEL-78202 commit 346e4ca Author: Eduard Zingerman <eddyz87@gmail.com> Date: Fri Feb 28 16:01:47 2025 -0800 veristat: Report program type guess results to sdterr In order not to pollute CSV output, e.g.: $ ./veristat -o csv exceptions_ext.bpf.o > test.csv Using guessed program type 'sched_cls' for exceptions_ext.bpf.o/extension... Using guessed program type 'sched_cls' for exceptions_ext.bpf.o/throwing_extension... Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Mykyta Yatsenko <mykyta.yatsenko5@gmail.com> Link: https://lore.kernel.org/bpf/20250301000147.1583999-4-eddyz87@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Gregory Bell <grbell@redhat.com>
1 parent e58a9eb commit 0f236b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/bpf/veristat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,13 +1234,13 @@ static void fixup_obj(struct bpf_object *obj, struct bpf_program *prog, const ch
12341234
bpf_program__set_expected_attach_type(prog, attach_type);
12351235

12361236
if (!env.quiet) {
1237-
printf("Using guessed program type '%s' for %s/%s...\n",
1237+
fprintf(stderr, "Using guessed program type '%s' for %s/%s...\n",
12381238
libbpf_bpf_prog_type_str(prog_type),
12391239
filename, prog_name);
12401240
}
12411241
} else {
12421242
if (!env.quiet) {
1243-
printf("Failed to guess program type for freplace program with context type name '%s' for %s/%s. Consider using canonical type names to help veristat...\n",
1243+
fprintf(stderr, "Failed to guess program type for freplace program with context type name '%s' for %s/%s. Consider using canonical type names to help veristat...\n",
12441244
ctx_name, filename, prog_name);
12451245
}
12461246
}

0 commit comments

Comments
 (0)