diff options
| author | Andi Kleen <ak@linux.intel.com> | 2013-08-02 20:41:09 -0400 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-08-07 16:35:28 -0400 |
| commit | 5c6974f49832a55edc9ca744323778947c104ca0 (patch) | |
| tree | c9a914dd790e30f2ea348c07a4bfc9a5a504946a /tools | |
| parent | 8fdd84c44fd09d783caa4fb81d2d680b0cf07eeb (diff) | |
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 <ak@linux.intel.com>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1375490473-1503-2-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/util/evlist.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index da2dd92d5b27..c7d111f74553 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, | |||
| 837 | fcntl(go_pipe[0], F_SETFD, FD_CLOEXEC); | 837 | fcntl(go_pipe[0], F_SETFD, FD_CLOEXEC); |
| 838 | 838 | ||
| 839 | /* | 839 | /* |
| 840 | * Do a dummy execvp to get the PLT entry resolved, | ||
| 841 | * so we avoid the resolver overhead on the real | ||
| 842 | * execvp call. | ||
| 843 | */ | ||
| 844 | execvp("", (char **)argv); | ||
| 845 | |||
| 846 | /* | ||
| 847 | * Tell the parent we're ready to go | 840 | * Tell the parent we're ready to go |
| 848 | */ | 841 | */ |
| 849 | close(child_ready_pipe[1]); | 842 | close(child_ready_pipe[1]); |
