From: Milian Wolff <milian.wolff@kdab.com>
To: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>,
acme@kernel.org, Linux-kernel@vger.kernel.org,
linux-perf-users@vger.kernel.org,
Namhyung Kim <namhyung@kernel.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Yao Jin <yao.jin@linux.intel.com>
Subject: Re: [PATCH] perf: support running perf binaries with a dash in their name
Date: Mon, 11 Sep 2017 17:16:11 +0200 [thread overview]
Message-ID: <1605058.Qn1Snd44fD@milian-kdab2> (raw)
In-Reply-To: <20170911143312.GD5054@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]
On Monday, September 11, 2017 4:33:12 PM CEST Arnaldo Carvalho de Melo wrote:
> 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
>
> <SNIP>
>
> > > --- 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 <dsahern@gmail.com>
>
> We got those from git, agreed it should go, thanks for the Acked-by,
> always welcome!
Arnaldo, do you want me to fixup the commit, or can you handle it?
Thanks for the review guys
--
Milian Wolff | milian.wolff@kdab.com | Senior Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt Experts
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3826 bytes --]
next prev parent reply other threads:[~2017-09-11 15:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 11:14 [PATCH] perf: support running perf binaries with a dash in their name Milian Wolff
2017-09-11 14:08 ` David Ahern
2017-09-11 14:33 ` Arnaldo Carvalho de Melo
2017-09-11 15:16 ` Milian Wolff [this message]
2017-09-11 15:38 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1605058.Qn1Snd44fD@milian-kdab2 \
--to=milian.wolff@kdab.com \
--cc=Linux-kernel@vger.kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@kernel.org \
--cc=acme@redhat.com \
--cc=dsahern@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=yao.jin@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).