From patchwork Fri May 3 00:25:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 163282 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp20179ill; Thu, 2 May 2019 17:26:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2ZRP0usUUfBylrLeUJq1KsGZOcS803ujRsnf9wtxXvoQAKUL2D81UWcT++U0tutKMng63 X-Received: by 2002:a65:5009:: with SMTP id f9mr6919895pgo.390.1556843161488; Thu, 02 May 2019 17:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556843161; cv=none; d=google.com; s=arc-20160816; b=R3Qt9vLo3GGOmJ9mLgvWZkiI7DZueWzo/k4NPJzZvdLe/sTDQExP+NABkIq39dCxUw ELRgA0F2NAyARQ6uwJpdQD7Sv97XwLEQzkcoBjVsCep2sTDuQlqVZW7vRcDR+Yu9Kf/f u3RZEjY49Erg7HrOxGqN/IdCT7udfNaX7UIeWq6ryOhpbKBz74bkQ5X4RLOOHHcUBCO3 ILAdEj20X+aXy2u3ck0PPO+SfrlqSKrY8/VYgAWcH1P85pMGBFCstFmNBc1RvCR3fcwx Zbd8fbP1j48ugFcDHLxiuE61daaQ7YfxUmEW9WYppTLYTKBi81n2+KNqsWDey2JV53hW KuIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7EdvDPp+Y1HP5kIqSdLZYUCNMbrsL+lZcFvWhAF09BY=; b=owzOMatFxKYUuDP5VnSM5ZBfFovwml9KotxepYouqrQhfI20GIZhIC1VjWEQsEzyZ9 Z889ObVo+L7GxCWCf+XFfVqdqZebdCLwi1VSCmiJX59miOz4L4Wg0Zy0cc1Dm2Cc7int CELOSgLWOaH0TYc4gTGmJGwXighYRNCVT5i+zPVk+gcwnscB6itSuRnvUEfilbpuqLDK xInRc4BcUVyphbosd5mTsrV320cAcC/pqzP+VctHN43Gj8bFoP3jhDeiCm895v7MbPsr skbuhSUlfNVKH0VdzyJ4jyxeTYYPPoV7BRzW7A4Yze+2wOUhWoTMZzTb0YBdDw7Pq0d+ u/bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F58Gc31W; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si557164pgj.114.2019.05.02.17.26.01; Thu, 02 May 2019 17:26:01 -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=@kernel.org header.s=default header.b=F58Gc31W; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726519AbfECA0A (ORCPT + 30 others); Thu, 2 May 2019 20:26:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:43912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbfECAZ6 (ORCPT ); Thu, 2 May 2019 20:25:58 -0400 Received: from quaco.ghostprotocols.net (adsl-173-228-226-134.prtc.net [173.228.226.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 227532087F; Fri, 3 May 2019 00:25:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556843157; bh=b9eEv8tb5ZmIOQ5hHJc/agdjrTf1d6CDQxXFTHvdeEA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F58Gc31W2vzq9TLvIuE6mODrjbkuFmfb1/mbpI3p8s6Os6yxI4LjnCvoQZxRs/vHp fs7o6BDzVAG3gRzUCbJhIBYRp4N5c+MOAquXds5GNe+R1xPnJYIqbJO+Vk5Bl2+pUW 2XejJ+tEXbfp8lCyPdkhRwQx37EM5FIRVon6ESYc= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Leo Yan , Steven Rostedt , Arnaldo Carvalho de Melo Subject: [PATCH 04/11] tools lib traceevent: Change tag string for error Date: Thu, 2 May 2019 20:25:26 -0400 Message-Id: <20190503002533.29359-5-acme@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190503002533.29359-1-acme@kernel.org> References: <20190503002533.29359-1-acme@kernel.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan The traceevent lib is used by the perf tool, and when executing perf test -v 6 it outputs error log on the 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 the perf tool launches trace-cmd command for trace event parsing, but in fact the related parsing is accomplished by the traceevent lib. This patch changes the tag string to "libtraceevent" so that we can avoid confusion and let users to more easily connect the error with traceevent lib. Signed-off-by: Leo Yan Acked-by: Steven Rostedt (VMware) Link: http://lkml.kernel.org/r/20190424013802.27569-1-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/lib/traceevent/parse-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 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, " ");