perf machine: Optimize a bit the machine__findnew_thread() methods
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Sep 2017 19:16:34 +0000 (16:16 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Sep 2017 12:40:19 +0000 (09:40 -0300)
commit75e45e432052c7b1a5da866cff88192db8be1445
tree73a3a70398c297668307c1ff8b664f2333f7d024
parent91e467bc568f15da2eac688e131010601e889184
perf machine: Optimize a bit the machine__findnew_thread() methods

In some cases we already have calculated the hash bucket, so reuse it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Lukasz Odzioba <lukasz.odzioba@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-800zehjsyy03er4s4jf0e99v@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c