Thread (5 messages) 5 messages, 3 authors, 2017-09-11

Re: [PATCH] perf: support running perf binaries with a dash in their name

From: Arnaldo Carvalho de Melo <hidden>
Date: 2017-09-11 14:33:17
Also in: lkml

Em Mon, Sep 11, 2017 at 07:08:18AM -0700, David Ahern escreveu:
On 9/11/17 4:14 AM, Milian Wolff wrote:
quoted
Previously the part behind "perf-" was interpreted as an internal
perf command. If the suffix could not be handled, the execution
<SNIP>
quoted
--- 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 //
quoted
+		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 <redacted>
We got those from git, agreed it should go, thanks for the Acked-by,
always welcome!

- Arnaldo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help