perf cpumap: Factor out functions to get core_id and socket_id
authorKan Liang <kan.liang@intel.com>
Tue, 1 Sep 2015 13:58:11 +0000 (09:58 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 2 Sep 2015 19:30:47 +0000 (16:30 -0300)
commit193b6bd339ccb30c861a307a915d4532f443e0fb
tree4eb3ed51a61f229f8c09ceaf150df99b0fdf7d37
parent76055940c1afc8d445992fb0278b80cf205bbf97
perf cpumap: Factor out functions to get core_id and socket_id

This patch moves the code which reads core_id and socket_id into
separate functions.

Signed-off-by: Kan Liang <kan.liang@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1441115893-22006-1-git-send-email-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cpumap.c
tools/perf/util/cpumap.h