perf tools: Refactor code to move call path handling out of thread-stack
authorChris Phlipot <cphlipot0@gmail.com>
Thu, 28 Apr 2016 08:19:07 +0000 (01:19 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 May 2016 16:00:43 +0000 (13:00 -0300)
commit451db12617bc6ff1bb8ed456ed4f257594134255
treec15426a9f15c17bad7f1d43700eb059e5e946fcd
parent9919a65ec532799544dfdfd6df6f994b74c12b42
perf tools: Refactor code to move call path handling out of thread-stack

Move the call path handling code out of thread-stack.c and
thread-stack.h to allow other components that are not part of
thread-stack to create call paths.

Summary:

- Create call-path.c and call-path.h and add them to the build.

- Move all call path related code out of thread-stack.c and thread-stack.h
  and into call-path.c and call-path.h.

- A small subset of structures and functions are now visible through
  call-path.h, which is required for thread-stack.c to continue to
  compile.

This change is a prerequisite for subsequent patches in this change set
and by itself contains no user-visible changes.

Signed-off-by: Chris Phlipot <cphlipot0@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1461831551-12213-3-git-send-email-cphlipot0@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/Build
tools/perf/util/call-path.c [new file with mode: 0644]
tools/perf/util/call-path.h [new file with mode: 0644]
tools/perf/util/db-export.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/thread-stack.c
tools/perf/util/thread-stack.h