Messages in this thread Patch in this message | | | Date | Tue, 8 Oct 2013 03:40:30 -0700 | From | tip-bot for Namhyung Kim <> | Subject | [tip:perf/urgent] perf stat: Set child_pid after perf_evlist__prepare_workload() |
| |
Commit-ID: d20a47e70b57a77f4d1b0dba98a668e14c2f9bf9 Gitweb: http://git.kernel.org/tip/d20a47e70b57a77f4d1b0dba98a668e14c2f9bf9 Author: Namhyung Kim <namhyung.kim@lge.com> AuthorDate: Mon, 30 Sep 2013 18:01:11 +0900 Committer: Arnaldo Carvalho de Melo <acme@redhat.com> CommitDate: Fri, 4 Oct 2013 15:16:05 -0300
perf stat: Set child_pid after perf_evlist__prepare_workload()
The commit acf2892270dc ("perf stat: Use perf_evlist__prepare/ start_workload()") converted to use the function but forgot to update child_pid. Fix it.
Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1380531671-28076-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> --- tools/perf/builtin-stat.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index f686d5f..5098f14 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -457,6 +457,7 @@ static int __run_perf_stat(int argc, const char **argv) perror("failed to prepare workload"); return -1; } + child_pid = evsel_list->workload.pid; } if (group)
| |