From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753495AbcHPSRH (ORCPT ); Tue, 16 Aug 2016 14:17:07 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38686 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753413AbcHPSRD (ORCPT ); Tue, 16 Aug 2016 14:17:03 -0400 Date: Tue, 16 Aug 2016 11:14:57 -0700 From: tip-bot for He Kuang Message-ID: Cc: linux-kernel@vger.kernel.org, hekuang@huawei.com, acme@redhat.com, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, alexander.shishkin@linux.intel.com, wangnan0@huawei.com, hpa@zytor.com Reply-To: mingo@kernel.org, tglx@linutronix.de, hekuang@huawei.com, linux-kernel@vger.kernel.org, acme@redhat.com, wangnan0@huawei.com, hpa@zytor.com, peterz@infradead.org, alexander.shishkin@linux.intel.com In-Reply-To: <1470309943-153909-1-git-send-email-hekuang@huawei.com> References: <1470309943-153909-1-git-send-email-hekuang@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf script: Show proper message when failed list scripts Git-Commit-ID: 88ded4d8d94a550624e1827478e13fecf97a7b0a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 88ded4d8d94a550624e1827478e13fecf97a7b0a Gitweb: http://git.kernel.org/tip/88ded4d8d94a550624e1827478e13fecf97a7b0a Author: He Kuang AuthorDate: Thu, 4 Aug 2016 11:25:42 +0000 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 15 Aug 2016 13:17:10 -0300 perf script: Show proper message when failed list scripts Perf shows the usage message when perf scripts folder failed to open, which misleads users to let them think the command is being mistyped. This patch shows a proper message and guides users to check the PERF_EXEC_PATH environment variable in that case. Before: $ perf script --list Usage: perf script [] or: perf script [] record