Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1209705
| From | Stephane Eranian <eranian@google.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v1 0/4] perf: improve script and record for iregs and brstack |
| Date | 2015-08-19 10:40 +0200 |
| Message-ID | <pZ74B-C4-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This short series of patches improves perf record and perf script support for interrupted machine state and branch stack. this makes it easier to postprocess the data and narrow down the volume and limit the overhead of capturing interrupt machine state registers. For some analysis, only a subset of the registers is useful. Changes: - Make --intr-regs accept register names to limit volume of data collected - Make perf script print interrupted machine register values with -F iregs - Make perf script print branch stack content with -F brstack $ perf record --intr-regs=\? available registers: AX BX CX DX SI DI BP SP IP FLAGS CS SS R8 R9 R10 R11 R12 R13 R14 R15 ... $ perf record --intr-regs=ax,bx,cx,dx,si .... $ perf script -F ip,iregs 40afc2 AX:0x6c5770 BX:0x1e CX:0x5f4d80a DX:0x101010101010101 SI:0x1 $ perf script -F ip,brstack .... Stephane Eranian (4): perf script: enable printing of interrupted machine state perf/x86: add list of register names perf record: add ability to name registers to record perf script: enable printing of branch stack tools/perf/Documentation/perf-record.txt | 6 ++- tools/perf/Documentation/perf-script.txt | 2 +- tools/perf/arch/x86/util/Build | 1 + tools/perf/arch/x86/util/perf_regs.c | 31 ++++++++++++++ tools/perf/builtin-record.c | 7 +++- tools/perf/builtin-script.c | 52 ++++++++++++++++++++++- tools/perf/perf.h | 2 +- tools/perf/util/Build | 1 + tools/perf/util/evsel.c | 2 +- tools/perf/util/parse-regs-options.c | 71 ++++++++++++++++++++++++++++++++ tools/perf/util/parse-regs-options.h | 5 +++ tools/perf/util/perf_regs.h | 7 ++++ 12 files changed, 180 insertions(+), 7 deletions(-) create mode 100644 tools/perf/arch/x86/util/perf_regs.c create mode 100644 tools/perf/util/parse-regs-options.c create mode 100644 tools/perf/util/parse-regs-options.h -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v1 0/4] perf: improve script and record for iregs and brstack Stephane Eranian <eranian@google.com> - 2015-08-19 10:40 +0200
[PATCH v1 1/4] perf script: enable printing of interrupted machine state Stephane Eranian <eranian@google.com> - 2015-08-19 10:40 +0200
[PATCH v1 3/4] perf record: add ability to name registers to record Stephane Eranian <eranian@google.com> - 2015-08-19 10:50 +0200
Re: [PATCH v1 3/4] perf record: add ability to name registers to record Jiri Olsa <jolsa@redhat.com> - 2015-08-20 13:20 +0200
Re: [PATCH v1 3/4] perf record: add ability to name registers to record Stephane Eranian <eranian@google.com> - 2015-08-20 22:10 +0200
[PATCH v1 2/4] perf/x86: add list of register names Stephane Eranian <eranian@google.com> - 2015-08-19 10:50 +0200
csiph-web