perf script: No need to lookup thread twice
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 1 Apr 2015 16:26:45 +0000 (13:26 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 2 Apr 2015 16:18:21 +0000 (13:18 -0300)
commit79628f2cfe0f488b23e5dc99a4a9a599032fa653
tree963194208e0556db62f52c25d0dac90e2c219674
parente1abf2cc8d5d80b41c4419368ec743ccadbb131e
perf script: No need to lookup thread twice

We get the thread when we call perf_event__preprocess_sample(), no need
to do it before that.

Acked-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1427906210-10519-2-git-send-email-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c