perf annotate: Factor out get/free_srcline()
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 11 Sep 2013 05:09:28 +0000 (14:09 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Oct 2013 18:59:39 +0000 (15:59 -0300)
commitf048d548f803b57ee1dbf66702f398ba69657450
treece21648b7d6886588dbcee3a045d96d9972321b7
parent909b143162de7af310d2a9351220030260ebe728
perf annotate: Factor out get/free_srcline()

Currently external addr2line tool is used for srcline sort key and
annotate with srcline info.  Separate the common code to prepare
upcoming enhancements.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1378876173-13363-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf
tools/perf/util/annotate.c
tools/perf/util/hist.c
tools/perf/util/sort.c
tools/perf/util/srcline.c [new file with mode: 0644]
tools/perf/util/util.h