From: Andi Kleen Date: Sat, 3 Aug 2013 00:41:09 +0000 (-0700) Subject: perf evlist: Remove obsolete dummy execve X-Git-Tag: upstream/snapshot3+hdmi~4458^3~18^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c6974f49832a55edc9ca744323778947c104ca0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git perf evlist: Remove obsolete dummy execve Minor cleanup. The dummy execve to pre-resolve the PLT is obsolete since "enable_on_execve" was added. The counters are only running after the execve anyways. So just remove it. Signed-off-by: Andi Kleen Reviewed-by: Jiri Olsa Cc: Jiri Olsa Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1375490473-1503-2-git-send-email-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index da2dd92..c7d111f 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -837,13 +837,6 @@ int perf_evlist__prepare_workload(struct perf_evlist *evlist, fcntl(go_pipe[0], F_SETFD, FD_CLOEXEC); /* - * Do a dummy execvp to get the PLT entry resolved, - * so we avoid the resolver overhead on the real - * execvp call. - */ - execvp("", (char **)argv); - - /* * Tell the parent we're ready to go */ close(child_ready_pipe[1]);