-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.
Unified · Split
| @@ -49,12 +49,10 @@ available as calls back into the perf executable (see below). · 48 unmodified lines | ||
| 49 | 49 | As an example, the following perf record command can be used to record |
| 50 | 50 | all sched_wakeup events in the system: |
| 51 | 51 | |
| 52 | − # perf record -c 1 -f -a -M -R -e sched:sched_wakeup | |
| 52 | + # perf record -a -e sched:sched_wakeup | |
| 53 | 53 | |
| 54 | 54 | Traces meant to be processed using a script should be recorded with |
| 55 | −the above options: -c 1 says to sample every event, -a to enable | |
| 56 | −system-wide collection, -M to multiplex the output, and -R to collect | |
| 57 | −raw samples. | |
| 55 | +the above option: -a to enable system-wide collection. | |
| 58 | 56 | |
| 59 | 57 | The format file for the sched_wakep event defines the following fields |
| 60 | 58 | (see /sys/kernel/debug/tracing/events/sched/sched_wakeup/format): |
| @@ -93,7 +93,7 @@ don't care how it exited, so we'll use 'perf record' to record only · 92 unmodified lines | ||
| 93 | 93 | the sys_enter events: |
| 94 | 94 | |
| 95 | 95 | ---- |
| 96 | −# perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter | |
| 96 | +# perf record -a -e raw_syscalls:sys_enter | |
| 97 | 97 | |
| 98 | 98 | ^C[ perf record: Woken up 1 times to write data ] |
| 99 | 99 | [ perf record: Captured and wrote 56.545 MB perf.data (~2470503 samples) ] |
| @@ -359,7 +359,7 @@ your script: · 259 unmodified lines | ||
| 359 | 359 | # cat kernel-source/tools/perf/scripts/python/bin/syscall-counts-record |
| 360 | 360 | |
| 361 | 361 | #!/bin/bash |
| 362 | −perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter | |
| 362 | +perf record -a -e raw_syscalls:sys_enter | |
| 363 | 363 | ---- |
| 364 | 364 | |
| 365 | 365 | The '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 | ||
| 449 | 449 | As an example, the following perf record command can be used to record |
| 450 | 450 | all sched_wakeup events in the system: |
| 451 | 451 | |
| 452 | − # perf record -c 1 -f -a -M -R -e sched:sched_wakeup | |
| 452 | + # perf record -a -e sched:sched_wakeup | |
| 453 | 453 | |
| 454 | 454 | Traces meant to be processed using a script should be recorded with |
| 455 | −the above options: -c 1 says to sample every event, -a to enable | |
| 456 | −system-wide collection, -M to multiplex the output, and -R to collect | |
| 457 | −raw samples. | |
| 455 | +the above option: -a to enable system-wide collection. | |
| 458 | 456 | |
| 459 | 457 | The format file for the sched_wakep event defines the following fields |
| 460 | 458 | (see /sys/kernel/debug/tracing/events/sched/sched_wakeup/format): |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree | |
| 2 | +perf record -a -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree | |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e raw_syscalls:sys_exit $@ | |
| 2 | +perf record -a -e raw_syscalls:sys_exit $@ | |
| @@ -1,3 +1,3 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e syscalls:sys_enter_read -e syscalls:sys_enter_write $@ | |
| 2 | +perf record -a -e syscalls:sys_enter_read -e syscalls:sys_enter_write $@ | |
| 3 | 3 | |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf 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 $@ | |
| 2 | +perf record -a -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write $@ | |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf 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 $@ | |
| 2 | +perf record -a -e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write $@ | |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e sched:sched_switch -e sched:sched_wakeup $@ | |
| 2 | +perf record -a -e sched:sched_switch -e sched:sched_wakeup $@ | |
| 3 | 3 | |
| 4 | 4 | |
| 5 | 5 | |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e workqueue:workqueue_creation -e workqueue:workqueue_destruction -e workqueue:workqueue_execution -e workqueue:workqueue_insertion $@ | |
| 2 | +perf record -a -e workqueue:workqueue_creation -e workqueue:workqueue_destruction -e workqueue:workqueue_execution -e workqueue:workqueue_insertion $@ | |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e raw_syscalls:sys_exit $@ | |
| 2 | +perf record -a -e raw_syscalls:sys_exit $@ | |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter $@ | |
| 2 | +perf record -a -e raw_syscalls:sys_enter $@ | |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter $@ | |
| 2 | +perf record -a -e raw_syscalls:sys_enter $@ | |
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | −perf record -c 1 -f -a -M -R -e raw_syscalls:sys_enter $@ | |
| 2 | +perf record -a -e raw_syscalls:sys_enter $@ | |