[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5638912E.7080503@huawei.com>
Date: Tue, 3 Nov 2015 18:49:18 +0800
From: "Wangnan (F)" <wangnan0@...wei.com>
To: <acme@...nel.org>
CC: <lizefan@...wei.com>, <pi3orama@....com>,
<linux-kernel@...r.kernel.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: Re: [PATCH 2/5] perf tools: Mute libbpf when '-v' not set
On 2015/11/3 18:44, Wang Nan wrote:
> 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
Sorry...
> Signed-off-by: Wang Nan <wangnan0@...wei.com>
> Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
> ---
> 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 {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists