From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaldo Carvalho de Melo Subject: Re: [PATCH] perf: support running perf binaries with a dash in their name Date: Mon, 11 Sep 2017 11:33:12 -0300 Message-ID: <20170911143312.GD5054@redhat.com> References: <20170911111422.31903-1-milian.wolff@kdab.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: David Ahern Cc: Milian Wolff , acme@kernel.org, Linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Namhyung Kim , Peter Zijlstra , Yao Jin List-Id: linux-perf-users.vger.kernel.org Em Mon, Sep 11, 2017 at 07:08:18AM -0700, David Ahern escreveu: > On 9/11/17 4:14 AM, Milian Wolff wrote: > > Previously the part behind "perf-" was interpreted as an internal > > perf command. If the suffix could not be handled, the execution > > --- a/tools/perf/perf.c > > - fprintf(stderr, "cannot handle %s internally", cmd); > > - goto out; > > + // if the command is handled, the above function does not return > > + // undo changes and fall through in such a case > Those should be /* */ not // > > > + cmd -= 5; > > + argv[0] = cmd; > > } > > if (strstarts(cmd, "trace")) { > > #ifdef HAVE_LIBAUDIT_SUPPORT > other than that LGTM and long over due. > Acked-by: David Ahern We got those from git, agreed it should go, thanks for the Acked-by, always welcome! - Arnaldo