Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753240AbbKCKtz (ORCPT ); Tue, 3 Nov 2015 05:49:55 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:19269 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753007AbbKCKtx (ORCPT ); Tue, 3 Nov 2015 05:49:53 -0500 Message-ID: <5638912E.7080503@huawei.com> Date: Tue, 3 Nov 2015 18:49:18 +0800 From: "Wangnan (F)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: CC: , , , Arnaldo Carvalho de Melo Subject: Re: [PATCH 2/5] perf tools: Mute libbpf when '-v' not set References: <1446547486-229499-1-git-send-email-wangnan0@huawei.com> <1446547486-229499-3-git-send-email-wangnan0@huawei.com> In-Reply-To: <1446547486-229499-3-git-send-email-wangnan0@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090205.56389143.006B,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: 8eb23bc739985ba0b515b31a032e6dc0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 Lines: 39 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 > Cc: Arnaldo Carvalho de Melo > --- > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/