From: Adrian Hunter <adrian.hunter@intel.com>
To: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: linux-kernel@vger.kernel.org, David Ahern <dsahern@gmail.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
Jiri Olsa <jolsa@redhat.com>, Mike Galbraith <efault@gmx.de>,
Namhyung Kim <namhyung@gmail.com>,
Paul Mackerras <paulus@samba.org>,
Peter Zijlstra <peterz@infradead.org>,
Stephane Eranian <eranian@google.com>,
Ingo Molnar <mingo@kernel.org>
Subject: [PATCH V3 0/10] perf tools: add support for reading object code
Date: Fri, 2 Aug 2013 13:10:42 +0300 [thread overview]
Message-ID: <1375438252-24776-1-git-send-email-adrian.hunter@intel.com> (raw)
Hi
Here are some patches that add support for reading object code from vmlinux,
kernel modules and /proc/kcore.
Changes in V3:
perf tools: adjust the vmlinux symtab matches kallsyms test again
New patch
perf tools: add test for reading object code
Fix error path by removing unnecessary perf_evlist__disable()
Fix error path by setting evlist to NULL after deletion
Fix sampling frequency by changing from 40000 to 4000
Increase the number of operations performed by the "workload"
to compensate for the lower sampling frequency
Changes in V2:
Re-based on Arnaldo's tree's perf/core branch
perf tools: add test for reading object code
Use strchr in read_objdump_line()
Remove unused return value of read_objdump_line()
Fix double space before "cycles:u"
Add missing perf_evlist__delete(evlist) in do_test_code_reading()
perf tools: load kernel maps before using
Correct spelling of "initialization" in commit message
perf tools: add support for reading from /proc/kcore
Do not test kallsyms filename for host buildid because
/proc/kallsyms is always used if the dso buildid matches
the host
perf tools: add kcore to the object code reading test
Remove redundant "else if (!have_kcore && try_kcore)" clause
Adrian Hunter (10):
perf tools: add test for reading object code
perf tools: load kernel maps before using
perf tools: make it possible to read object code from vmlinux
perf tools: adjust the vmlinux symtab matches kallsyms test
perf tools: avoid SyS kernel syscall aliases
perf tools: make it possible to read object code from kernel modules
perf tools: add support for reading from /proc/kcore
perf tools: adjust the vmlinux symtab matches kallsyms test again
perf tools: add kcore to the object code reading test
perf tools: allow annotation using /proc/kcore
tools/perf/Makefile | 1 +
tools/perf/builtin-inject.c | 2 +-
tools/perf/builtin-script.c | 4 +-
tools/perf/builtin-top.c | 3 +-
tools/perf/tests/builtin-test.c | 4 +
tools/perf/tests/code-reading.c | 564 ++++++++++++++++++++++++++++++++++++
tools/perf/tests/tests.h | 1 +
tools/perf/tests/vmlinux-kallsyms.c | 36 ++-
tools/perf/util/annotate.c | 13 +-
tools/perf/util/build-id.c | 2 +-
tools/perf/util/dso.c | 10 +-
tools/perf/util/dso.h | 17 ++
tools/perf/util/event.c | 18 +-
tools/perf/util/machine.c | 20 +-
tools/perf/util/map.c | 67 ++---
tools/perf/util/map.h | 13 +
tools/perf/util/symbol-elf.c | 166 ++++++++++-
tools/perf/util/symbol-minimal.c | 7 +
tools/perf/util/symbol.c | 273 +++++++++++++++--
tools/perf/util/symbol.h | 5 +
tools/perf/util/thread.h | 2 +-
tools/perf/util/unwind.c | 4 +-
22 files changed, 1131 insertions(+), 101 deletions(-)
create mode 100644 tools/perf/tests/code-reading.c
Regards
Adrian
next reply other threads:[~2013-08-02 10:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 10:10 Adrian Hunter [this message]
2013-08-02 10:10 ` [PATCH V3 01/10] perf tools: add test for reading object code Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 02/10] perf tools: load kernel maps before using Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 03/10] perf tools: make it possible to read object code from vmlinux Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 04/10] perf tools: adjust the vmlinux symtab matches kallsyms test Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 05/10] perf tools: avoid SyS kernel syscall aliases Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 06/10] perf tools: make it possible to read object code from kernel modules Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 07/10] perf tools: add support for reading from /proc/kcore Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 08/10] perf tools: adjust the vmlinux symtab matches kallsyms test again Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 09/10] perf tools: add kcore to the object code reading test Adrian Hunter
2013-08-02 10:10 ` [PATCH V3 10/10] perf tools: allow annotation using /proc/kcore Adrian Hunter
2013-08-05 19:59 ` Arnaldo Carvalho de Melo
2013-08-06 10:11 ` Adrian Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1375438252-24776-1-git-send-email-adrian.hunter@intel.com \
--to=adrian.hunter@intel.com \
--cc=acme@ghostprotocols.net \
--cc=dsahern@gmail.com \
--cc=efault@gmx.de \
--cc=eranian@google.com \
--cc=fweisbec@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@gmail.com \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox