Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1262043
| From | Wang Nan <wangnan0@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/4] perf tools: Mute libbpf when '-v' not set |
| Date | 2015-11-04 03:30 +0100 |
| Message-ID | <qqVZM-2HI-11@gated-at.bofh.it> (permalink) |
| References | <qqVZM-2HI-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
According to [1], libbpf should be muted. This patch reset info and
warning message level to ensure libbpf doesn't output anything even
if error happened.
[1] http://lkml.kernel.org/r/20151020151255.GF5119@kernel.org
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
---
tools/perf/util/bpf-loader.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c
index ba6f752..0c5d174 100644
--- a/tools/perf/util/bpf-loader.c
+++ b/tools/perf/util/bpf-loader.c
@@ -26,8 +26,8 @@ static int libbpf_##name(const char *fmt, ...) \
return ret; \
}
-DEFINE_PRINT_FN(warning, 0)
-DEFINE_PRINT_FN(info, 0)
+DEFINE_PRINT_FN(warning, 1)
+DEFINE_PRINT_FN(info, 1)
DEFINE_PRINT_FN(debug, 1)
struct bpf_prog_priv {
--
1.8.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/4] perf bpf: Improve error code delivering and output Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
[PATCH v2 1/4] perf test: Keep test result clean if '-v' not set Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
[PATCH v2 2/4] perf tools: Mute libbpf when '-v' not set Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
[PATCH v2 4/4] perf tools: Improve BPF related error messages output Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
[PATCH v2 3/4] bpf tools: Improve libbpf error reporting Wang Nan <wangnan0@huawei.com> - 2015-11-04 03:30 +0100
Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-04 23:10 +0100
Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting "Wangnan (F)" <wangnan0@huawei.com> - 2015-11-05 02:50 +0100
Re: [PATCH v2 3/4] bpf tools: Improve libbpf error reporting "Wangnan (F)" <wangnan0@huawei.com> - 2015-11-05 03:10 +0100
csiph-web