perf tools: Add processor socket info to hist_entry and addr_location
authorKan Liang <kan.liang@intel.com>
Fri, 4 Sep 2015 14:45:42 +0000 (10:45 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Sep 2015 15:50:29 +0000 (12:50 -0300)
commit0c4c4debb0adda4c18c158d95031dc2b9f637869
treec3af5193a912f747892d29d168f6ace84816d60d
parent4cde998d205894705b534878122631142a3eefe4
perf tools: Add processor socket info to hist_entry and addr_location

This information will come from perf.data files of from the current
system, cached when needed, such as when the 'socket' sort order gets
introduced.

Signed-off-by: Kan Liang <kan.liang@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1441377946-44429-1-git-send-email-kan.liang@intel.com
[ Don't blindly use env->cpu[al.cpu].socket_id & use machine->env, fixes by Jiri & Arnaldo ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c
tools/perf/util/hist.c
tools/perf/util/sort.h
tools/perf/util/symbol.h