From patchwork Wed Apr 24 01:38:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 162763 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp87934jan; Tue, 23 Apr 2019 18:38:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeSG+i7YZ0MRY8FbSld33u+05AZy2xKYBK3jxfFpEKJoIc1oX/Nz/3P4MFSyfRHFxPCqiK X-Received: by 2002:a17:902:8488:: with SMTP id c8mr8195325plo.192.1556069904099; Tue, 23 Apr 2019 18:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556069904; cv=none; d=google.com; s=arc-20160816; b=KVfmtr+0otTdkhSN2nXr86QsvznS1ANpIJU5GlX97BGI/3iSOKD+Jg9adak26F7h42 WaE6KZ9BHCpSL/qZt5eOH167N0EnhQiHh90JQbmvDrZLPJZj2a52s0u1HEFVjMfUz+wV 4nZazg81OY6F188anR+2nUWLODfUfp684MN+dq0naXXcVA6jT84pU0Z6ehm+kqwSi0ZR fEchVVVAWUtBLnNiQnERjwtJ7vNhqHv8VqqBd7HJrjhOsWR6me936jfovOdJP4NX7z+N LY3SZcUKR/d1NGRIHaOg47WSiUcv4jjdz8AgI5vsUuZy1a5zYinCai9Ua07GaVco1h9c 5i+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=p22V+aJrhB0BxAVxy1DNMt2mcsIprbVVrqZ7FZEVJfw=; b=d/dpY/pAWJe3GhIyRMBBFH0BGqhzXAUIyiGUrBPmvRJkxSNPI1kAzhAB6TKy2HoIZy n05H9GC7Yo9XF3qEAVDAOevTq6RH2YitLFgrCE+xrK2lGUYKYIk8kts6M9G8iqOU/s6s LbrxqXY8vVfXR4mncxVO85jy6GTf8GmHRtsLksrDX5J0AI5BIt4Zyn+tib+YfJQ8xEyJ uEi619Fi/gx5MSw0pulcu8Wu4aVOJrt7Ykx86Ww+kSA8qcqkyyoeYiSoGpc6WiZrMJ9Z DcMu1fia1LwCCMQuVFjgg4ihtHPNY21s5u1GFFPx0rG5KvuXtyBGY2LIvsJCRuisnv27 hEIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UcrdN+cI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si15512426pgq.23.2019.04.23.18.38.23; Tue, 23 Apr 2019 18:38:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UcrdN+cI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729311AbfDXBiW (ORCPT + 30 others); Tue, 23 Apr 2019 21:38:22 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:39255 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbfDXBiW (ORCPT ); Tue, 23 Apr 2019 21:38:22 -0400 Received: by mail-yw1-f67.google.com with SMTP id x204so3011764ywg.6 for ; Tue, 23 Apr 2019 18:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=p22V+aJrhB0BxAVxy1DNMt2mcsIprbVVrqZ7FZEVJfw=; b=UcrdN+cIfQ+KuZ6LMFPrOJ5opq8ueu/k5BHI/qUB8Ca9/91aclVv2fgiCkEdCbYwKa SBgmV+uhqRAUXDxsh+PNOoZuDejtL8sGc3kz1+zbF+IlRrcUrMy0PufuAOJ1Tro5Ssk/ MSXZy/v3ltlF8PnvqKgtIMEq/hIb2ysxqYdySyN8fn5tSROeSl9lr1Il63nVYdhGnuo+ O5hcHxFrh9nW6OyAklab515s1EBiv0dzfcWjT7sJ3VJmX+LDZZlnti/Dr+lCUMAl6PtM 54y3cT1xvhf/ttL/xGwLXnsy1mZFTOX6loCn650pZddqyLA7Wg0s7y665z5NYyELXQmD oWpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=p22V+aJrhB0BxAVxy1DNMt2mcsIprbVVrqZ7FZEVJfw=; b=TV9cUS/+CYSijNAA9y6gBi9fVgkbVOdNTvJkwZbTiReyQwlUuWA7SmRqAHSXsxI86y eC10LXUrSUm5mF3/b0QCcwHZGy/TQSTjBE/jS22rcv3xkUKzjbCmzC9R4IfdSq0XaCCw 5FfhlGGYTHp0RobbFjpJXggHzLCRIdSFaP4igWxTN9gS8uu65WW1h46FP01mKySNQ1c/ j4z1TCWLdzkhNHzzhxc4ImgQcV9qQbdxxGWC2asM875IZ9lhE9CxMVVkjRn+tR9qxAZm lmXRLoiGYh6JsGKXDsaT2rNfkxIEVfDl4xyME0qvOPprZvqGkOgUlymNYwObzftVNqI2 putw== X-Gm-Message-State: APjAAAWp48tgfWk7AU95hWmV7fFARHDS9yXN8tPHkFVW2Yl3+cbE6gdX bQHx5VSwAD64AFLdMylfKE6R2utKc36tIA== X-Received: by 2002:a81:7a01:: with SMTP id v1mr25301676ywc.25.1556069901239; Tue, 23 Apr 2019 18:38:21 -0700 (PDT) Received: from localhost.localdomain (li931-65.members.linode.com. [45.56.113.65]) by smtp.gmail.com with ESMTPSA id b131sm6629608ywb.103.2019.04.23.18.38.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 18:38:20 -0700 (PDT) From: Leo Yan To: "Steven Rostedt (VMware)" , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH] tools lib traceevent: Change tag string for error Date: Wed, 24 Apr 2019 09:38:02 +0800 Message-Id: <20190424013802.27569-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The traceevnt lib is used by perf tool, when execute 'perf test -v 6' it outputs error log on ARM64 platform: running test 33 '*:*'trace-cmd: No such file or directory [...] trace-cmd: Invalid argument The trace event parsing code originally came from trace-cmd so it keeps the tag string "trace-cmd" for errors, this easily introduces the impression that perf tool launches trace-cmd command for trace event parsing, but in fact the related parsing is accomplished by traceevent lib. This patch changes the tag string to "libtraceevent" so can avoid confusion and let users to be more easily to connect the error with traceevent lib. Signed-off-by: Leo Yan --- tools/lib/traceevent/parse-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Steven Rostedt (VMware) diff --git a/tools/lib/traceevent/parse-utils.c b/tools/lib/traceevent/parse-utils.c index 77e4ec6402dd..e99867111387 100644 --- a/tools/lib/traceevent/parse-utils.c +++ b/tools/lib/traceevent/parse-utils.c @@ -14,7 +14,7 @@ void __vwarning(const char *fmt, va_list ap) { if (errno) - perror("trace-cmd"); + perror("libtraceevent"); errno = 0; fprintf(stderr, " ");