Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1389846
| From | Chris Phlipot <cphlipot0@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/6] perf script: export sampled callchains to database |
| Date | 2016-04-28 10:20 +0200 |
| Message-ID | <rsPl0-8pu-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patch set contains a set of changes to allow the export of sampled
callchains, and to associate them with samples, via the Python db export
API and export-to-postgresql.py script.
Call path information is currently only available in the database when
call/return info is available, but not when doing normal sampling. These
changes make this information available for normal sampling runs as well.
Patches 2-6 are required to make this information available in the
database.
Patch 1 is needed to fix an existing issue where callchains are
processed incorrectly which can cause the other patches to export
incorrect call paths for a small percentage of samples
(depending on the workload).
Chris Phlipot (6):
perf tools: fix incorrect ordering of callchain entries
perf tools: refractor code to move call path handling out of
thread-stack
perf script: enable db export to output sampled callchains
perf script: add call path id to exported sample in db export
perf script: expose usage of the callchain db export via the python
api
perf script: update export-to-postgresql to support callchain export
tools/perf/scripts/python/export-to-postgresql.py | 47 ++++---
tools/perf/util/Build | 1 +
tools/perf/util/call-path.c | 122 ++++++++++++++++++
tools/perf/util/call-path.h | 77 ++++++++++++
tools/perf/util/db-export.c | 89 +++++++++++++
tools/perf/util/db-export.h | 3 +
tools/perf/util/machine.c | 56 ++++++---
.../util/scripting-engines/trace-event-python.c | 36 +++++-
tools/perf/util/thread-stack.c | 139 +--------------------
tools/perf/util/thread-stack.h | 31 ++---
10 files changed, 408 insertions(+), 193 deletions(-)
create mode 100644 tools/perf/util/call-path.c
create mode 100644 tools/perf/util/call-path.h
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/6] perf script: export sampled callchains to database Chris Phlipot <cphlipot0@gmail.com> - 2016-04-28 10:20 +0200
[PATCH 2/6] perf tools: refractor code to move call path handling out of thread-stack Chris Phlipot <cphlipot0@gmail.com> - 2016-04-28 10:20 +0200
Re: [PATCH 2/6] perf tools: refractor code to move call path handling out of thread-stack Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-06 14:20 +0200
[tip:perf/core] perf tools: Refactor code to move call path handling out of thread-stack tip-bot for Chris Phlipot <tipbot@zytor.com> - 2016-05-07 07:00 +0200
[PATCH 4/6] perf script: add call path id to exported sample in db export Chris Phlipot <cphlipot0@gmail.com> - 2016-04-28 10:30 +0200
Re: [PATCH 4/6] perf script: add call path id to exported sample in db export Adrian Hunter <adrian.hunter@intel.com> - 2016-05-06 13:40 +0200
Re: [PATCH 4/6] perf script: add call path id to exported sample in db export Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-06 14:30 +0200
[tip:perf/core] perf script: Add call path id to exported sample in db export tip-bot for Chris Phlipot <tipbot@zytor.com> - 2016-05-07 07:00 +0200
[PATCH 3/6] perf script: enable db export to output sampled callchains Chris Phlipot <cphlipot0@gmail.com> - 2016-04-28 10:30 +0200
Re: [PATCH 3/6] perf script: enable db export to output sampled callchains Adrian Hunter <adrian.hunter@intel.com> - 2016-05-06 13:40 +0200
Re: [PATCH 3/6] perf script: enable db export to output sampled callchains Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-06 15:10 +0200
Re: [PATCH 3/6] perf script: enable db export to output sampled callchains Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-06 17:40 +0200
[tip:perf/core] perf script: Enable db export to output sampled callchains tip-bot for Chris Phlipot <tipbot@zytor.com> - 2016-05-07 07:00 +0200
[PATCH 5/6] perf script: expose usage of the callchain db export via the python api Chris Phlipot <cphlipot0@gmail.com> - 2016-04-28 10:30 +0200
Re: [PATCH 5/6] perf script: expose usage of the callchain db export via the python api Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-06 14:30 +0200
[tip:perf/core] perf script: Expose usage of the callchain db export via the python api tip-bot for Chris Phlipot <tipbot@zytor.com> - 2016-05-07 07:00 +0200
[PATCH 6/6] perf script: update export-to-postgresql to support callchain export Chris Phlipot <cphlipot0@gmail.com> - 2016-04-28 10:30 +0200
Re: [PATCH 6/6] perf script: update export-to-postgresql to support callchain export Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-06 14:30 +0200
Re: [PATCH 6/6] perf script: update export-to-postgresql to support callchain export Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-06 14:30 +0200
[tip:perf/core] perf script: Update export-to-postgresql to support callchain export tip-bot for Chris Phlipot <tipbot@zytor.com> - 2016-05-07 07:00 +0200
[PATCH 1/6] perf tools: fix incorrect ordering of callchain entries Chris Phlipot <cphlipot0@gmail.com> - 2016-04-28 10:30 +0200
Re: [PATCH 1/6] perf tools: fix incorrect ordering of callchain entries Jiri Olsa <jolsa@redhat.com> - 2016-04-28 10:50 +0200
Re: [PATCH 1/6] perf tools: fix incorrect ordering of callchain entries Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-06 14:20 +0200
[tip:perf/core] perf callchain: Fix incorrect ordering of entries tip-bot for Chris Phlipot <tipbot@zytor.com> - 2016-05-07 07:00 +0200
Re: [PATCH 0/6] perf script: export sampled callchains to database Adrian Hunter <adrian.hunter@intel.com> - 2016-05-06 13:40 +0200
csiph-web