profile-manual: Added links for literall http:// strings.
(From yocto-docs rev: a30bc0c5e1c752ea3c6f73acd203e80a398d5368) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
34f0fc3728
commit
5cd5cb2b26
|
@ -123,18 +123,18 @@
|
|||
host of supported busybox applets in Yocto.
|
||||
<literallayout class='monospaced'>
|
||||
root@crownbay:~# rm linux-2.6.19.2.tar.bz2; \
|
||||
wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2
|
||||
wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>
|
||||
</literallayout>
|
||||
The quickest and easiest way to get some basic overall data about
|
||||
what's going on for a particular workload it to profile it using
|
||||
'perf stat'. 'perf stat' basically profiles using a few default
|
||||
counters and displays the summed counts at the end of the run:
|
||||
<literallayout class='monospaced'>
|
||||
root@crownbay:~# perf stat wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2
|
||||
root@crownbay:~# perf stat wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>
|
||||
Connecting to downloads.yoctoproject.org (140.211.169.59:80)
|
||||
linux-2.6.19.2.tar.b 100% |***************************************************| 41727k 0:00:00 ETA
|
||||
|
||||
Performance counter stats for 'wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2':
|
||||
Performance counter stats for 'wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>':
|
||||
|
||||
4597.223902 task-clock # 0.077 CPUs utilized
|
||||
23568 context-switches # 0.005 M/sec
|
||||
|
@ -161,11 +161,11 @@
|
|||
see a summary of all the events related to kernel memory
|
||||
allocation/freeing along with cache hits and misses:
|
||||
<literallayout class='monospaced'>
|
||||
root@crownbay:~# perf stat -e kmem:* -e cache-references -e cache-misses wget http:// downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2
|
||||
root@crownbay:~# perf stat -e kmem:* -e cache-references -e cache-misses wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>
|
||||
Connecting to downloads.yoctoproject.org (140.211.169.59:80)
|
||||
linux-2.6.19.2.tar.b 100% |***************************************************| 41727k 0:00:00 ETA
|
||||
|
||||
Performance counter stats for 'wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2':
|
||||
Performance counter stats for 'wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>':
|
||||
|
||||
5566 kmem:kmalloc
|
||||
125517 kmem:kmem_cache_alloc
|
||||
|
@ -205,7 +205,7 @@
|
|||
samples until the process exits and records them in a file named
|
||||
'perf.data' in the current working directory.
|
||||
<literallayout class='monospaced'>
|
||||
root@crownbay:~# perf record wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2
|
||||
root@crownbay:~# perf record wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>
|
||||
|
||||
Connecting to downloads.yoctoproject.org (140.211.169.59:80)
|
||||
linux-2.6.19.2.tar.b 100% |************************************************| 41727k 0:00:00 ETA
|
||||
|
@ -253,7 +253,7 @@
|
|||
of a sampled function, but the entire callchain to the sampled
|
||||
function as well:
|
||||
<literallayout class='monospaced'>
|
||||
root@crownbay:~# perf record -g wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2
|
||||
root@crownbay:~# perf record -g wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>
|
||||
Connecting to downloads.yoctoproject.org (140.211.169.59:80)
|
||||
linux-2.6.19.2.tar.b 100% |************************************************| 41727k 0:00:00 ETA
|
||||
[ perf record: Woken up 3 times to write data ]
|
||||
|
@ -619,8 +619,8 @@
|
|||
(identified by the string before the colon in the Tracepoint events)
|
||||
and do a 'perf stat' run using only those wildcarded subsystems:
|
||||
<literallayout class='monospaced'>
|
||||
root@crownbay:~# perf stat -e skb:* -e net:* -e napi:* -e sched:* -e workqueue:* -e irq:* -e syscalls:* wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2
|
||||
Performance counter stats for 'wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2':
|
||||
root@crownbay:~# perf stat -e skb:* -e net:* -e napi:* -e sched:* -e workqueue:* -e irq:* -e syscalls:* wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>
|
||||
Performance counter stats for 'wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>':
|
||||
|
||||
23323 skb:kfree_skb
|
||||
0 skb:consume_skb
|
||||
|
@ -679,7 +679,7 @@
|
|||
Let's pick one of these tracepoints and tell perf to do a profile
|
||||
using it as the sampling event:
|
||||
<literallayout class='monospaced'>
|
||||
root@crownbay:~# perf record -g -e sched:sched_wakeup wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2
|
||||
root@crownbay:~# perf record -g -e sched:sched_wakeup wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>
|
||||
</literallayout>
|
||||
</para>
|
||||
|
||||
|
@ -750,7 +750,7 @@
|
|||
<literallayout class='monospaced'>
|
||||
root@crownbay:~# perf record -g -e skb:* -e net:* -e napi:* -e sched:sched_switch -e sched:sched_wakeup -e irq:*
|
||||
-e syscalls:sys_enter_read -e syscalls:sys_exit_read -e syscalls:sys_enter_write -e syscalls:sys_exit_write
|
||||
wget http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2
|
||||
wget <ulink url='http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2'>http://downloads.yoctoproject.org/mirror/sources/linux-2.6.19.2.tar.bz2</ulink>
|
||||
</literallayout>
|
||||
We can look at the raw trace output using 'perf script' with no
|
||||
arguments:
|
||||
|
|
Loading…
Reference in New Issue