linux/tools/perf/arch
Arnaldo Carvalho de Melo 93d5731dcb perf tools: Allocate thread map_groups's dynamically
Moving towards sharing map groups within a process threads.

Because of this we need the map groups to be dynamically allocated. No
other functional change is intended in here.

Based on a patch by Jiri Olsa, but this time _just_ making the
conversion from statically allocating thread->mg to turning it into a
pointer and instead of initializing it at thread's constructor,
introduce a constructor/destructor for the map_groups class and
call at thread creation time.

Later we will introduce the get/put methods when we move to sharing
those map_groups, when the get/put refcounting semantics will be needed.

Signed-off-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1397490723-1992-3-git-send-email-jolsa@redhat.com
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
2014-04-28 13:43:20 +02:00
..
arm perf callchain: Rename unwind__arch_reg_id into libunwind__arch_reg_id 2014-02-18 09:34:48 -03:00
powerpc perf tools: Fix build on non-glibc systems due to libio.h absence 2013-03-15 13:05:13 -03:00
s390 perf tools: Fix build on non-glibc systems due to libio.h absence 2013-03-15 13:05:13 -03:00
sh perf tools: Fix build on non-glibc systems due to libio.h absence 2013-03-15 13:05:13 -03:00
sparc perf tools: Fix build on non-glibc systems due to libio.h absence 2013-03-15 13:05:13 -03:00
x86 perf tools: Allocate thread map_groups's dynamically 2014-04-28 13:43:20 +02:00
common.c perf tools: Introduce zfree 2013-12-27 15:17:00 -03:00
common.h perf tools: Try to find cross-built objdump path 2012-10-24 14:20:11 -02:00