perf c2c: Use mem_info refcnt logic
authorJiri Olsa <jolsa@kernel.org>
Wed, 7 Mar 2018 15:50:07 +0000 (16:50 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Mar 2018 14:30:45 +0000 (11:30 -0300)
commit5cedb413a63d452356aa634e0d4ffcc24f7dbcb5
tree6ea4da7e5704bc00ab26f0c8aa48937392aee061
parent9f87498f1cb72958c6f8725eb93d2f7ef81fa11e
perf c2c: Use mem_info refcnt logic

Switch to refcnt logic instead of duplicating mem_info objects. No
functional change, just saving some memory.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180307155020.32613-7-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-c2c.c