perf tools: Add thread_map__(alloc|realloc) helpers
authorJiri Olsa <jolsa@kernel.org>
Sun, 14 Jun 2015 08:19:17 +0000 (10:19 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jun 2015 13:34:40 +0000 (10:34 -0300)
commit9d7e8c3a96e5a903a4e0951e08f7fa6957170bef
tree09f148c7d9c01b9619dc5dc9ac52279a899f93ef
parentb45f65e8fddc89ac6b46388908d3f6ac728be372
perf tools: Add thread_map__(alloc|realloc) helpers

In order to have 'struct thread_map' allocation on single place and can
change it easily in following patch.

Using alloc|realloc for static helpers, because thread_map__new is
already used in public interface.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1434269985-521-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/thread_map.c