perf callchain: Add generic report parse callchain callback function
authorDon Zickus <dzickus@redhat.com>
Mon, 7 Apr 2014 18:55:24 +0000 (14:55 -0400)
committerJiri Olsa <jolsa@redhat.com>
Tue, 22 Apr 2014 15:39:24 +0000 (17:39 +0200)
commitcff6bb46d477383092f46682a0d12e323e4b84d2
tree88b5217cdee5126642e6f3db587fab1b1050ba65
parent4b6279579c84cca7f162cfbcb98f66418f3062f3
perf callchain: Add generic report parse callchain callback function

This takes the parse_callchain_opt function and copies it into the
callchain.c file.  Now the c2c tool can use it too without duplicating.

Update perf-report to use the new routine too.

Signed-off-by: Don Zickus <dzickus@redhat.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1396896924-129847-5-git-send-email-dzickus@redhat.com
[ Adding missing braces to multiline if condition ]
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
tools/perf/builtin-report.c
tools/perf/util/callchain.c
tools/perf/util/callchain.h