Skip to content

Commit 00e4cb1

Browse files
committed
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo: * Don't install scripting files files when perl/python support is disabled. * Support ! in -e expressions in 'perf trace', to filter a list of syscalls. * Add --verbose and -o/--output options to 'perf trace'. * Introduce better formatting of syscall arguments in 'perf trace', including so far beautifiers for mmap, madvise, syscall return values. * Fixup jobserver setup in libtraceevent makefile. * Debug improvements from Adrian Hunter. * Try to increase the file descriptor limits on EMFILE, from Andi Kleen. * Remove unused force option in 'perf kvm', from David Ahern. * Make 'perf trace' command line arguments consistent with 'perf record', from David Ahern. * Fix correlation of samples coming after PERF_RECORD_EXIT event, from David Ahern. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
2 parents aee2bce + 456da53 commit 00e4cb1

11 files changed

Lines changed: 488 additions & 93 deletions

File tree

‎tools/lib/traceevent/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ifeq ($(BUILD_SRC),)
6060
ifneq ($(BUILD_OUTPUT),)
6161

6262
define build_output
63-
$(if $(VERBOSE:1=),@)$(MAKE) -C $(BUILD_OUTPUT) \
63+
$(if $(VERBOSE:1=),@)+$(MAKE) -C $(BUILD_OUTPUT) \
6464
BUILD_SRC=$(CURDIR) -f $(CURDIR)/Makefile $1
6565
endef
6666

‎tools/perf/Documentation/perf-trace.txt‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,45 @@ analysis phases.
2323
OPTIONS
2424
-------
2525

26+
-a::
2627
--all-cpus::
2728
System-wide collection from all CPUs.
2829

2930
-e::
3031
--expr::
3132
List of events to show, currently only syscall names.
33+
Prefixing with ! shows all syscalls but the ones specified. You may
34+
need to escape it.
35+
36+
-o::
37+
--output=::
38+
Output file name.
3239

3340
-p::
3441
--pid=::
3542
Record events on existing process ID (comma separated list).
3643

44+
-t::
3745
--tid=::
3846
Record events on existing thread ID (comma separated list).
3947

48+
-u::
4049
--uid=::
4150
Record events in threads owned by uid. Name or number.
4251

52+
-v::
53+
--verbose=::
54+
Verbosity level.
55+
56+
-i::
4357
--no-inherit::
4458
Child tasks do not inherit counters.
4559

60+
-m::
4661
--mmap-pages=::
4762
Number of mmap data pages. Must be a power of two.
4863

64+
-C::
4965
--cpu::
5066
Collect samples only on the list of CPUs provided. Multiple CPUs can be provided as a
5167
comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2.

‎tools/perf/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,17 +766,21 @@ check: $(OUTPUT)common-cmds.h
766766
install-bin: all
767767
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'
768768
$(INSTALL) $(OUTPUT)perf '$(DESTDIR_SQ)$(bindir_SQ)'
769+
$(INSTALL) $(OUTPUT)perf-archive -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
770+
ifndef NO_LIBPERL
769771
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace'
770772
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/bin'
771-
$(INSTALL) $(OUTPUT)perf-archive -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)'
772773
$(INSTALL) scripts/perl/Perf-Trace-Util/lib/Perf/Trace/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/Perf-Trace-Util/lib/Perf/Trace'
773774
$(INSTALL) scripts/perl/*.pl -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl'
774775
$(INSTALL) scripts/perl/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/perl/bin'
776+
endif
777+
ifndef NO_LIBPYTHON
775778
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'
776779
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin'
777780
$(INSTALL) scripts/python/Perf-Trace-Util/lib/Perf/Trace/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/Perf-Trace-Util/lib/Perf/Trace'
778781
$(INSTALL) scripts/python/*.py -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python'
779782
$(INSTALL) scripts/python/bin/* -t '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/scripts/python/bin'
783+
endif
780784
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d'
781785
$(INSTALL) bash_completion '$(DESTDIR_SQ)$(sysconfdir_SQ)/bash_completion.d/perf'
782786
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'

‎tools/perf/builtin-kvm.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,6 @@ kvm_events_record(struct perf_kvm_stat *kvm, int argc, const char **argv)
13051305
const char * const record_args[] = {
13061306
"record",
13071307
"-R",
1308-
"-f",
13091308
"-m", "1024",
13101309
"-c", "1",
13111310
};

0 commit comments

Comments
 (0)