Re: [GIT PULL 00/19] perf/core improvements and fixes
Em Mon, Aug 14, 2017 at 07:39:48PM +0200, Ingo Molnar escreveu: > * Arnaldo Carvalho de Melowrote: > > Infrastructure: > > - Add support for shell based tests in 'perf test', add a few that > > run 'perf probe', 'perf trace', using kprobes, uprobes to check > > the output of those tools and the effects on the system, checking, > > for instance, DWARF backtraces from uprobes (Arnaldo Carvalho de Melo) > > create mode 100644 tools/perf/tests/shell/lib/probe_vfs_getname.sh > > create mode 100755 tools/perf/tests/shell/probe_vfs_getname.sh > > create mode 100755 > > tools/perf/tests/shell/record+script_probe_vfs_getname.sh > > create mode 100755 tools/perf/tests/shell/trace+probe_libc_inet_pton.sh > > create mode 100755 tools/perf/tests/shell/trace+probe_vfs_getname.sh > > Pulled, thanks a lot Arnaldo! Thanks! I'm working with Kim Phillips to fix some issues he noticed while testing on his ARM systems where 'perf probe' is not available, my perf/core branch has several fixes to handle this that will be in my next pull request. - Arnaldo
Re: [GIT PULL 00/19] perf/core improvements and fixes
* Arnaldo Carvalho de Melowrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > > The following changes since commit 82119cbe8e1e32cc2a941393e59816e731681310: > > Merge tag 'perf-core-for-mingo-4.14-20170801' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core > (2017-08-10 17:07:02 +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-4.14-20170814 > > for you to fetch changes up to 8fc375d7d36c72b4c2d55f5c24be022a939295d4: > > perf test shell: Add uprobes + backtrace ping test (2017-08-11 16:18:49 > -0300) > > > perf/core improvements and fixes: > > Infrastructure: > > - Do not consider empty files as valid srclines (Milian Wolff) > > - Fix wrong size in perf_record_mmap for last kernel module, > which resulted in erroneous symbol resolution in at least s390x (Thomas > Richter) > > - Add missing newline to expr parser error messages (Andi Kleen) > > - Fix saved values rbtree lookup in 'perf stat' (Andi Kleen) > > - Add support for shell based tests in 'perf test', add a few that > run 'perf probe', 'perf trace', using kprobes, uprobes to check > the output of those tools and the effects on the system, checking, > for instance, DWARF backtraces from uprobes (Arnaldo Carvalho de Melo) > > Arch specific: > > - Add ppc64le to audit uname list in the python scripting support (Naveen N. > Rao) > > - Update POWER9 vendor events tables (Sukadev Bhattiprolu) > > - Fix module symbol adjustment for s390x (Thomas Richter) > > Signed-off-by: Arnaldo Carvalho de Melo > > > Andi Kleen (2): > perf stat: Fix saved values rbtree lookup > perf tools: Add missing newline to expr parser error messages > > Arnaldo Carvalho de Melo (10): > perf test: Make 'list' subcommand match main 'perf test' > numbering/matching > perf test: Add 'struct test *' to the test functions > perf test: Add infrastructure to run shell based tests > perf test: Make 'list' use same filtering code as main 'perf test' > perf test shell: Add 'probe_vfs_getname' shell test > perf test shell: Install shell tests > perf test shell: Move vfs_getname probe function to lib > perf test shell: Add test using probe:vfs_getname and verifying results > perf test shell: Add test using vfs_getname + 'perf trace' > perf test shell: Add uprobes + backtrace ping test > > Milian Wolff (2): > perf util: Take elf_name as const string in dso__demangle_sym > perf srcline: Do not consider empty files as valid srclines > > Naveen N. Rao (1): > perf scripting python: Add ppc64le to audit uname list > > Sukadev Bhattiprolu (2): > perf vendor events powerpc: remove suffix in mapfile > perf vendor events powerpc: Update POWER9 events > > Thomas Richter (2): > perf record: Fix wrong size in perf_record_mmap for last kernel module > perf report: Fix module symbol adjustment for s390x > > tools/perf/Makefile.perf |6 +- > tools/perf/arch/s390/util/sym-handling.c |7 + > tools/perf/arch/x86/include/arch-tests.h | 11 +- > tools/perf/arch/x86/tests/insn-x86.c |2 +- > tools/perf/arch/x86/tests/intel-cqm.c |2 +- > tools/perf/arch/x86/tests/perf-time-to-tsc.c |2 +- > tools/perf/arch/x86/tests/rdpmc.c |2 +- > tools/perf/pmu-events/arch/powerpc/mapfile.csv | 20 +- > .../perf/pmu-events/arch/powerpc/power9/cache.json | 191 +- > .../arch/powerpc/power9/floating-point.json| 42 +- > .../pmu-events/arch/powerpc/power9/frontend.json | 517 ++-- > .../pmu-events/arch/powerpc/power9/marked.json | 905 +++ > .../pmu-events/arch/powerpc/power9/memory.json | 178 +- > .../perf/pmu-events/arch/powerpc/power9/other.json | 2768 > > .../pmu-events/arch/powerpc/power9/pipeline.json | 779 +++--- > tools/perf/pmu-events/arch/powerpc/power9/pmc.json | 167 +- > .../arch/powerpc/power9/translation.json | 314 +-- > .../python/Perf-Trace-Util/lib/Perf/Trace/Util.py |1 + > tools/perf/tests/attr.c|2 +- > tools/perf/tests/backward-ring-buffer.c|2 +- > tools/perf/tests/bitmap.c |2 +- > tools/perf/tests/bp_signal.c |2 +- > tools/perf/tests/bp_signal_overflow.c |2 +- > tools/perf/tests/bpf.c |4 +- > tools/perf/tests/builtin-test.c| 184 +- > tools/perf/tests/clang.c |4 +- >
[GIT PULL 00/19] perf/core improvements and fixes
Hi Ingo, Please consider pulling, - Arnaldo Test results at the end of this message, as usual. The following changes since commit 82119cbe8e1e32cc2a941393e59816e731681310: Merge tag 'perf-core-for-mingo-4.14-20170801' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (2017-08-10 17:07:02 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.14-20170814 for you to fetch changes up to 8fc375d7d36c72b4c2d55f5c24be022a939295d4: perf test shell: Add uprobes + backtrace ping test (2017-08-11 16:18:49 -0300) perf/core improvements and fixes: Infrastructure: - Do not consider empty files as valid srclines (Milian Wolff) - Fix wrong size in perf_record_mmap for last kernel module, which resulted in erroneous symbol resolution in at least s390x (Thomas Richter) - Add missing newline to expr parser error messages (Andi Kleen) - Fix saved values rbtree lookup in 'perf stat' (Andi Kleen) - Add support for shell based tests in 'perf test', add a few that run 'perf probe', 'perf trace', using kprobes, uprobes to check the output of those tools and the effects on the system, checking, for instance, DWARF backtraces from uprobes (Arnaldo Carvalho de Melo) Arch specific: - Add ppc64le to audit uname list in the python scripting support (Naveen N. Rao) - Update POWER9 vendor events tables (Sukadev Bhattiprolu) - Fix module symbol adjustment for s390x (Thomas Richter) Signed-off-by: Arnaldo Carvalho de MeloAndi Kleen (2): perf stat: Fix saved values rbtree lookup perf tools: Add missing newline to expr parser error messages Arnaldo Carvalho de Melo (10): perf test: Make 'list' subcommand match main 'perf test' numbering/matching perf test: Add 'struct test *' to the test functions perf test: Add infrastructure to run shell based tests perf test: Make 'list' use same filtering code as main 'perf test' perf test shell: Add 'probe_vfs_getname' shell test perf test shell: Install shell tests perf test shell: Move vfs_getname probe function to lib perf test shell: Add test using probe:vfs_getname and verifying results perf test shell: Add test using vfs_getname + 'perf trace' perf test shell: Add uprobes + backtrace ping test Milian Wolff (2): perf util: Take elf_name as const string in dso__demangle_sym perf srcline: Do not consider empty files as valid srclines Naveen N. Rao (1): perf scripting python: Add ppc64le to audit uname list Sukadev Bhattiprolu (2): perf vendor events powerpc: remove suffix in mapfile perf vendor events powerpc: Update POWER9 events Thomas Richter (2): perf record: Fix wrong size in perf_record_mmap for last kernel module perf report: Fix module symbol adjustment for s390x tools/perf/Makefile.perf |6 +- tools/perf/arch/s390/util/sym-handling.c |7 + tools/perf/arch/x86/include/arch-tests.h | 11 +- tools/perf/arch/x86/tests/insn-x86.c |2 +- tools/perf/arch/x86/tests/intel-cqm.c |2 +- tools/perf/arch/x86/tests/perf-time-to-tsc.c |2 +- tools/perf/arch/x86/tests/rdpmc.c |2 +- tools/perf/pmu-events/arch/powerpc/mapfile.csv | 20 +- .../perf/pmu-events/arch/powerpc/power9/cache.json | 191 +- .../arch/powerpc/power9/floating-point.json| 42 +- .../pmu-events/arch/powerpc/power9/frontend.json | 517 ++-- .../pmu-events/arch/powerpc/power9/marked.json | 905 +++ .../pmu-events/arch/powerpc/power9/memory.json | 178 +- .../perf/pmu-events/arch/powerpc/power9/other.json | 2768 .../pmu-events/arch/powerpc/power9/pipeline.json | 779 +++--- tools/perf/pmu-events/arch/powerpc/power9/pmc.json | 167 +- .../arch/powerpc/power9/translation.json | 314 +-- .../python/Perf-Trace-Util/lib/Perf/Trace/Util.py |1 + tools/perf/tests/attr.c|2 +- tools/perf/tests/backward-ring-buffer.c|2 +- tools/perf/tests/bitmap.c |2 +- tools/perf/tests/bp_signal.c |2 +- tools/perf/tests/bp_signal_overflow.c |2 +- tools/perf/tests/bpf.c |4 +- tools/perf/tests/builtin-test.c| 184 +- tools/perf/tests/clang.c |4 +- tools/perf/tests/code-reading.c|2 +- tools/perf/tests/cpumap.c |4 +- tools/perf/tests/dso-data.c|6 +- tools/perf/tests/dwarf-unwind.c|2 +- tools/perf/tests/event-times.c |2 +-
Re: [GIT PULL 00/19] perf/core improvements and fixes
* Arnaldo Carvalho de Melowrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 84e5b549214f2160c12318aac549de85f600c79a: > > Merge tag 'perf-core-for-mingo-4.11-20170306' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core > (2017-03-07 08:14:14 +0100) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-4.12-20170314 > > for you to fetch changes up to 5f6bee34707973ea7879a7857fd63ddccc92fff3: > > kprobes: Convert kprobe_exceptions_notify to use NOKPROBE_SYMBOL > (2017-03-14 15:17:40 -0300) > > > perf/core improvements and fixes: > > New features: > > - Add PERF_RECORD_NAMESPACES so that the kernel can record information > required to associate samples to namespaces, helping in container > problem characterization. > > Now the 'perf record has a --namespace' option to ask for such info, > and when present, it can be used, initially, via a new sort order, > 'cgroup_id', allowing histogram entry bucketization by a (device, inode) > based cgroup identifier (Hari Bathini) > > - Add --next option to 'perf sched timehist', showing what is the next > thread to run (Brendan Gregg) > > Fixes: > > - Fix segfault with basic block 'cycles' sort dimension (Changbin Du) > > - Add c2c to command-list.txt, making it appear in the 'perf help' > output (Changbin Du) > > - Fix zeroing of 'abs_path' variable in the perf hists browser switch > file code (Changbin Du) > > - Hide tips messages when -q/--quiet is given to 'perf report' (Namhyung Kim) > > Infrastructure: > > - Use ref_reloc_sym + offset to setup kretprobes (Naveen Rao) > > - Ignore generated files pmu-events/{jevents,pmu-events.c} for git (Changbin > Du) > > Documentation: > > - Document +field style argument support for --field option (Changbin Du) > > - Clarify 'perf c2c --stats' help message (Namhyung Kim) > > Signed-off-by: Arnaldo Carvalho de Melo > > > Brendan Gregg (1): > perf sched timehist: Add --next option > > Changbin Du (5): > perf tools: Missing c2c command in command-list > perf tools: Ignore generated files pmu-events/{jevents,pmu-events.c} > for git > perf sort: Fix segfault with basic block 'cycles' sort dimension > perf report: Document +field style argument support for --field option > perf hists browser: Fix typo in function switch_data_file > > Hari Bathini (5): > perf: Add PERF_RECORD_NAMESPACES to include namespaces related info > perf tools: Add PERF_RECORD_NAMESPACES to include namespaces related > info > perf record: Synthesize namespace events for current processes > perf script: Add script print support for namespace events > perf tools: Add 'cgroup_id' sort order keyword > > Namhyung Kim (3): > perf report: Hide tip message when -q option is given > perf c2c: Clarify help message of --stats option > perf c2c: Fix display bug when using pipe > > Naveen N. Rao (5): > perf probe: Factor out the ftrace README scanning > perf kretprobes: Offset from reloc_sym if kernel supports it > perf powerpc: Choose local entry point with kretprobes > doc: trace/kprobes: add information about NOKPROBE_SYMBOL > kprobes: Convert kprobe_exceptions_notify to use NOKPROBE_SYMBOL > > Documentation/trace/kprobetrace.txt | 5 +- > include/linux/perf_event.h | 2 + > include/uapi/linux/perf_event.h | 32 +- > kernel/events/core.c| 139 ++ > kernel/fork.c | 2 + > kernel/kprobes.c| 5 +- > kernel/nsproxy.c| 3 + > tools/include/uapi/linux/perf_event.h | 32 +- > tools/perf/.gitignore | 2 + > tools/perf/Documentation/perf-record.txt| 3 + > tools/perf/Documentation/perf-report.txt| 7 +- > tools/perf/Documentation/perf-sched.txt | 4 + > tools/perf/Documentation/perf-script.txt| 3 + > tools/perf/arch/powerpc/util/sym-handling.c | 14 ++- > tools/perf/builtin-annotate.c | 1 + > tools/perf/builtin-c2c.c| 4 +- > tools/perf/builtin-diff.c | 1 + > tools/perf/builtin-inject.c | 13 +++ > tools/perf/builtin-kmem.c | 1 + > tools/perf/builtin-kvm.c| 2 + > tools/perf/builtin-lock.c | 1 + > tools/perf/builtin-mem.c| 1 + > tools/perf/builtin-record.c | 35 ++- > tools/perf/builtin-report.c
[GIT PULL 00/19] perf/core improvements and fixes
Hi Ingo, Please consider pulling, - Arnaldo Test results at the end of this message, as usual. The following changes since commit 84e5b549214f2160c12318aac549de85f600c79a: Merge tag 'perf-core-for-mingo-4.11-20170306' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (2017-03-07 08:14:14 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.12-20170314 for you to fetch changes up to 5f6bee34707973ea7879a7857fd63ddccc92fff3: kprobes: Convert kprobe_exceptions_notify to use NOKPROBE_SYMBOL (2017-03-14 15:17:40 -0300) perf/core improvements and fixes: New features: - Add PERF_RECORD_NAMESPACES so that the kernel can record information required to associate samples to namespaces, helping in container problem characterization. Now the 'perf record has a --namespace' option to ask for such info, and when present, it can be used, initially, via a new sort order, 'cgroup_id', allowing histogram entry bucketization by a (device, inode) based cgroup identifier (Hari Bathini) - Add --next option to 'perf sched timehist', showing what is the next thread to run (Brendan Gregg) Fixes: - Fix segfault with basic block 'cycles' sort dimension (Changbin Du) - Add c2c to command-list.txt, making it appear in the 'perf help' output (Changbin Du) - Fix zeroing of 'abs_path' variable in the perf hists browser switch file code (Changbin Du) - Hide tips messages when -q/--quiet is given to 'perf report' (Namhyung Kim) Infrastructure: - Use ref_reloc_sym + offset to setup kretprobes (Naveen Rao) - Ignore generated files pmu-events/{jevents,pmu-events.c} for git (Changbin Du) Documentation: - Document +field style argument support for --field option (Changbin Du) - Clarify 'perf c2c --stats' help message (Namhyung Kim) Signed-off-by: Arnaldo Carvalho de MeloBrendan Gregg (1): perf sched timehist: Add --next option Changbin Du (5): perf tools: Missing c2c command in command-list perf tools: Ignore generated files pmu-events/{jevents,pmu-events.c} for git perf sort: Fix segfault with basic block 'cycles' sort dimension perf report: Document +field style argument support for --field option perf hists browser: Fix typo in function switch_data_file Hari Bathini (5): perf: Add PERF_RECORD_NAMESPACES to include namespaces related info perf tools: Add PERF_RECORD_NAMESPACES to include namespaces related info perf record: Synthesize namespace events for current processes perf script: Add script print support for namespace events perf tools: Add 'cgroup_id' sort order keyword Namhyung Kim (3): perf report: Hide tip message when -q option is given perf c2c: Clarify help message of --stats option perf c2c: Fix display bug when using pipe Naveen N. Rao (5): perf probe: Factor out the ftrace README scanning perf kretprobes: Offset from reloc_sym if kernel supports it perf powerpc: Choose local entry point with kretprobes doc: trace/kprobes: add information about NOKPROBE_SYMBOL kprobes: Convert kprobe_exceptions_notify to use NOKPROBE_SYMBOL Documentation/trace/kprobetrace.txt | 5 +- include/linux/perf_event.h | 2 + include/uapi/linux/perf_event.h | 32 +- kernel/events/core.c| 139 ++ kernel/fork.c | 2 + kernel/kprobes.c| 5 +- kernel/nsproxy.c| 3 + tools/include/uapi/linux/perf_event.h | 32 +- tools/perf/.gitignore | 2 + tools/perf/Documentation/perf-record.txt| 3 + tools/perf/Documentation/perf-report.txt| 7 +- tools/perf/Documentation/perf-sched.txt | 4 + tools/perf/Documentation/perf-script.txt| 3 + tools/perf/arch/powerpc/util/sym-handling.c | 14 ++- tools/perf/builtin-annotate.c | 1 + tools/perf/builtin-c2c.c| 4 +- tools/perf/builtin-diff.c | 1 + tools/perf/builtin-inject.c | 13 +++ tools/perf/builtin-kmem.c | 1 + tools/perf/builtin-kvm.c| 2 + tools/perf/builtin-lock.c | 1 + tools/perf/builtin-mem.c| 1 + tools/perf/builtin-record.c | 35 ++- tools/perf/builtin-report.c | 4 +- tools/perf/builtin-sched.c | 26 - tools/perf/builtin-script.c | 41 tools/perf/builtin-trace.c | 3 +- tools/perf/command-list.txt | 1 + tools/perf/perf.h | 1 +