2009-03-13 10:20:49 +08:00
|
|
|
#
|
2009-04-20 21:00:56 +08:00
|
|
|
# List of known perf commands.
|
2009-03-13 10:20:49 +08:00
|
|
|
# command name category [deprecated] [common]
|
|
|
|
#
|
2009-06-06 21:19:13 +08:00
|
|
|
perf-annotate mainporcelain common
|
2010-01-19 01:59:19 +08:00
|
|
|
perf-archive mainporcelain common
|
2009-11-10 19:50:55 +08:00
|
|
|
perf-bench mainporcelain common
|
2010-01-21 01:28:45 +08:00
|
|
|
perf-buildid-cache mainporcelain common
|
2009-11-17 02:32:45 +08:00
|
|
|
perf-buildid-list mainporcelain common
|
2009-12-15 06:09:31 +08:00
|
|
|
perf-diff mainporcelain common
|
2010-05-04 21:48:22 +08:00
|
|
|
perf-inject mainporcelain common
|
2009-06-06 21:19:13 +08:00
|
|
|
perf-list mainporcelain common
|
2009-09-11 18:12:54 +08:00
|
|
|
perf-sched mainporcelain common
|
2009-03-13 10:20:49 +08:00
|
|
|
perf-record mainporcelain common
|
|
|
|
perf-report mainporcelain common
|
|
|
|
perf-stat mainporcelain common
|
2009-09-19 19:36:04 +08:00
|
|
|
perf-timechart mainporcelain common
|
2009-03-13 10:20:49 +08:00
|
|
|
perf-top mainporcelain common
|
2010-12-01 16:18:12 +08:00
|
|
|
perf-script mainporcelain common
|
2009-10-17 08:08:27 +08:00
|
|
|
perf-probe mainporcelain common
|
2009-11-24 13:27:11 +08:00
|
|
|
perf-kmem mainporcelain common
|
2010-02-04 15:08:15 +08:00
|
|
|
perf-lock mainporcelain common
|
2010-04-19 13:32:50 +08:00
|
|
|
perf-kvm mainporcelain common
|
perf test: Initial regression testing command
First an example with the first internal test:
[acme@doppio linux-2.6-tip]$ perf test
1: vmlinux symtab matches kallsyms: Ok
So it run just one test, that is "vmlinux symtab matches kallsyms", and it was
successful.
If we run it in verbose mode, we'll see details about errors and extra warnings
for non-fatal problems:
[acme@doppio linux-2.6-tip]$ perf test -v
1: vmlinux symtab matches kallsyms:
--- start ---
Looking at the vmlinux_path (5 entries long)
No build_id in vmlinux, ignoring it
No build_id in /boot/vmlinux, ignoring it
No build_id in /boot/vmlinux-2.6.34-rc4-tip+, ignoring it
Using /lib/modules/2.6.34-rc4-tip+/build/vmlinux for symbols
Maps only in vmlinux:
ffffffff81cb81b1-ffffffff81e1149b 0 [kernel].init.text
ffffffff81e1149c-ffffffff9fffffff 0 [kernel].exit.text
ffffffffff600000-ffffffffff6000ff 0 [kernel].vsyscall_0
ffffffffff600100-ffffffffff6003ff 0 [kernel].vsyscall_fn
ffffffffff600400-ffffffffff6007ff 0 [kernel].vsyscall_1
ffffffffff600800-ffffffffffffffff 0 [kernel].vsyscall_2
Maps in vmlinux with a different name in kallsyms:
ffffffffff600000-ffffffffff6000ff 0 [kernel].vsyscall_0 in kallsyms as [kernel].0
ffffffffff600100-ffffffffff6003ff 0 [kernel].vsyscall_fn in kallsyms as:
*ffffffffff600100-ffffffffff60012f 0 [kernel].2
ffffffffff600400-ffffffffff6007ff 0 [kernel].vsyscall_1 in kallsyms as [kernel].6
ffffffffff600800-ffffffffffffffff 0 [kernel].vsyscall_2 in kallsyms as [kernel].8
Maps only in kallsyms:
ffffffffff600130-ffffffffff6003ff 0 [kernel].4
---- end ----
vmlinux symtab matches kallsyms: Ok
[acme@doppio linux-2.6-tip]$
In the above case we only know the name of the non contiguous kernel ranges in
the address space when reading the symbol information from the ELF symtab in
vmlinux.
The /proc/kallsyms file lack this, we only notice they are separate because
there are modules after the kernel and after that more kernel functions, so we
need to have a module rbtree backed by the module .ko path to get symtabs in
the vmlinux case.
The tool uses it to match by address to emit appropriate warning, but don't
considers this fatal.
The .init.text and .exit.text ines, of course, aren't in kallsyms, so I left
these cases just as extra info in verbose mode.
The end of the sections also aren't in kallsyms, so we the symbols layer does
another pass and sets the end addresses as the next map start minus one, which
sometimes pads, causing harmless mismatches.
But at least the symbols match, tested it by copying /proc/kallsyms to
/tmp/kallsyms and doing changes to see if they were detected.
This first test also should serve as a first stab at documenting the
symbol library by providing a self contained example that exercises it
together with comments about what is being done.
More tests to check if actions done on a monitored app, like doing mmaps, etc,
makes the kernel generate the expected events should be added next.
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2010-04-30 05:58:32 +08:00
|
|
|
perf-test mainporcelain common
|