History

perf: Remove leftover useless options to record trace events from scripts

-f, -c 1, -R are now useless for trace events recording, moreover -M is useless and event hurts. Remove them from the documentation examples and from record scripts.

Frederic Weisbecker committed 16 years ago

Commit e5a5f1f1 parent bc4b47313 files · +17 −21Browse files

Unified · Split

13 files
  1. tools/perf/Documentation/perf-trace-perl.txt +2 −4
  2. tools/perf/Documentation/perf-trace-python.txt +4 −6
  3. tools/perf/scripts/perl/bin/check-perf-trace-record +1 −1
  4. tools/perf/scripts/perl/bin/failed-syscalls-record +1 −1
  5. tools/perf/scripts/perl/bin/rw-by-file-record +1 −1
  6. tools/perf/scripts/perl/bin/rw-by-pid-record +1 −1
  7. tools/perf/scripts/perl/bin/rwtop-record +1 −1
  8. tools/perf/scripts/perl/bin/wakeup-latency-record +1 −1
  9. tools/perf/scripts/perl/bin/workqueue-stats-record +1 −1
  10. tools/perf/scripts/python/bin/failed-syscalls-by-pid-record +1 −1
  11. tools/perf/scripts/python/bin/sctop-record +1 −1
  12. tools/perf/scripts/python/bin/syscall-counts-by-pid-record +1 −1
  13. tools/perf/scripts/python/bin/syscall-counts-record +1 −1
tools/perf/Documentation/perf-trace-perl.txt+2−4
@@ -49,12 +49,10 @@ available as calls back into the perf executable (see below). · 48 unmodified lines
49As an example, the following perf record command can be used to record49As an example, the following perf record command can be used to record
50all sched_wakeup events in the system:50all sched_wakeup events in the system:
51 51
52 # perf record -c 1 -f -a -M -R -e sched:sched_wakeup52 # perf record -a -e sched:sched_wakeup
53 53
54Traces meant to be processed using a script should be recorded with54Traces meant to be processed using a script should be recorded with
55the above options: -c 1 says to sample every event, -a to enable55the above option: -a to enable system-wide collection.
56system-wide collection, -M to multiplex the output, and -R to collect
57raw samples.
58 56
59The format file for the sched_wakep event defines the following fields57The format file for the sched_wakep event defines the following fields
60(see /sys/kernel/debug/tracing/events/sched/sched_wakeup/format):58(see /sys/kernel/debug/tracing/events/sched/sched_wakeup/format):
tools/perf/Documentation/perf-trace-python.txt+4−6
@@ -93,7 +93,7 @@ don't care how it exited, so we'll use 'perf record' to record only · 92 unmodified lines
93the sys_enter events:93the sys_enter events:
94 94
95----95----
96# perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter96# perf record -a -e raw_syscalls:sys_enter
97 97
98^C[ perf record: Woken up 1 times to write data ]98^C[ perf record: Woken up 1 times to write data ]
99[ perf record: Captured and wrote 56.545 MB perf.data (~2470503 samples) ]99[ perf record: Captured and wrote 56.545 MB perf.data (~2470503 samples) ]
@@ -359,7 +359,7 @@ your script: · 259 unmodified lines
359# cat kernel-source/tools/perf/scripts/python/bin/syscall-counts-record359# cat kernel-source/tools/perf/scripts/python/bin/syscall-counts-record
360 360
361#!/bin/bash361#!/bin/bash
362perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter362perf record -a -e raw_syscalls:sys_enter
363----363----
364 364
365The 'report' script is also a shell script with the same base name as365The 'report' script is also a shell script with the same base name as
@@ -449,12 +449,10 @@ available as calls back into the perf executable (see below). · 83 unmodified lines
449As an example, the following perf record command can be used to record449As an example, the following perf record command can be used to record
450all sched_wakeup events in the system:450all sched_wakeup events in the system:
451 451
452 # perf record -c 1 -f -a -M -R -e sched:sched_wakeup452 # perf record -a -e sched:sched_wakeup
453 453
454Traces meant to be processed using a script should be recorded with454Traces meant to be processed using a script should be recorded with
455the above options: -c 1 says to sample every event, -a to enable455the above option: -a to enable system-wide collection.
456system-wide collection, -M to multiplex the output, and -R to collect
457raw samples.
458 456
459The format file for the sched_wakep event defines the following fields457The format file for the sched_wakep event defines the following fields
460(see /sys/kernel/debug/tracing/events/sched/sched_wakeup/format):458(see /sys/kernel/debug/tracing/events/sched/sched_wakeup/format):
tools/perf/scripts/perl/bin/check-perf-trace-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree2perf record -a -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree
tools/perf/scripts/perl/bin/failed-syscalls-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e raw_syscalls:sys_exit $@2perf record -a -e raw_syscalls:sys_exit $@
tools/perf/scripts/perl/bin/rw-by-file-record+1−1
@@ -1,3 +1,3 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e syscalls:sys_enter_read -e syscalls:sys_enter_write $@2perf record -a -e syscalls:sys_enter_read -e syscalls:sys_enter_write $@
3 3
tools/perf/scripts/perl/bin/rw-by-pid-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write $@2perf record -a -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write $@
tools/perf/scripts/perl/bin/rwtop-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write $@2perf record -a -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write $@
tools/perf/scripts/perl/bin/wakeup-latency-record+1−1
@@ -1,5 +1,5 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e sched:sched_switch -e sched:sched_wakeup $@2perf record -a -e sched:sched_switch -e sched:sched_wakeup $@
3 3
4 4
5 5
tools/perf/scripts/perl/bin/workqueue-stats-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e workqueue:workqueue_creation -e workqueue:workqueue_destruction -e workqueue:workqueue_execution -e workqueue:workqueue_insertion $@2perf record -a -e workqueue:workqueue_creation -e workqueue:workqueue_destruction -e workqueue:workqueue_execution -e workqueue:workqueue_insertion $@
tools/perf/scripts/python/bin/failed-syscalls-by-pid-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e raw_syscalls:sys_exit $@2perf record -a -e raw_syscalls:sys_exit $@
tools/perf/scripts/python/bin/sctop-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter $@2perf record -a -e raw_syscalls:sys_enter $@
tools/perf/scripts/python/bin/syscall-counts-by-pid-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter $@2perf record -a -e raw_syscalls:sys_enter $@
tools/perf/scripts/python/bin/syscall-counts-record+1−1
@@ -1,2 +1,2 @@
1#!/bin/bash1#!/bin/bash
2perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter $@2perf record -a -e raw_syscalls:sys_enter $@