Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936171Ab3DJD1Y (ORCPT ); Tue, 9 Apr 2013 23:27:24 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:28074 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934274Ab3DJD1T (ORCPT ); Tue, 9 Apr 2013 23:27:19 -0400 From: "zhangwei(Jovi)" To: , , , CC: "zhangwei(Jovi)" Subject: [PATCH v3 12/12] libtraceevent: add libtraceevent prefix in warning message Date: Wed, 10 Apr 2013 11:26:33 +0800 Message-ID: <1365564393-10972-13-git-send-email-jovi.zhangwei@huawei.com> X-Mailer: git-send-email 1.8.1.msysgit.1 In-Reply-To: <1365564393-10972-1-git-send-email-jovi.zhangwei@huawei.com> References: <1365564393-10972-1-git-send-email-jovi.zhangwei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.66.58.241] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1449 Lines: 45 From: "zhangwei(Jovi)" Now using perf tracepoint, perf output some warning message which hard to understand what's wrong in perf. [root@jovi perf]# ./perf stat -e timer:* ls Warning: unknown op '{' Warning: unknown op '{' ... Actually these warning message is caused by libtraceevent format parsing code. So add libtraceevent prefix to identify this more clearly. (we should remove all those warning message when running perf stat in future, it's not necessary to parse event format when running perf stat) Signed-off-by: zhangwei(Jovi) --- tools/lib/traceevent/event-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 82b0606..a3971d2 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c @@ -47,7 +47,7 @@ static int show_warning = 1; #define do_warning(fmt, ...) \ do { \ if (show_warning) \ - warning(fmt, ##__VA_ARGS__); \ + warning("libtraceevent: "fmt, ##__VA_ARGS__); \ } while (0) static void init_input_buf(const char *buf, unsigned long long size) -- 1.7.9.7 -- 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/