whitespace

This commit is contained in:
yamt 2008-01-14 12:48:52 +00:00
parent c6345d661d
commit b471ec2032
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
$NetBSD: README,v 1.7 2008/01/14 12:47:59 yamt Exp $ $NetBSD: README,v 1.8 2008/01/14 12:48:52 yamt Exp $
NOTE: NOTE:
- tprof driver currently only supports pentium4 (netburst) processors. - tprof driver currently only supports pentium4 (netburst) processors.
@ -12,12 +12,15 @@ usage:
if not set, SIZEOF_PTR=4 is assumed. if not set, SIZEOF_PTR=4 is assumed.
1. add a line to your kernel config. 1. add a line to your kernel config.
pseudo-device tprof pseudo-device tprof
2. create a device special file. 2. create a device special file.
# mknod /dev/tprof c 191 0 # mknod /dev/tprof c 191 0
3. run the tprof command. 3. run the tprof command.
# tprof -o /tmp/foo sleep 1 # tprof -o /tmp/foo sleep 1
tprof statistics: tprof statistics:
@ -31,6 +34,7 @@ usage:
4. format the result. 4. format the result.
the first line in the following example means that 11 samples have been the first line in the following example means that 11 samples have been
taken at 0xc0396c36, whose symbolic name is lapic_gettick+0x6. taken at 0xc0396c36, whose symbolic name is lapic_gettick+0x6.
# sh ./tpfmt.sh < /tmp/foo # sh ./tpfmt.sh < /tmp/foo
11 c0396c36 lapic_gettick+0x6 11 c0396c36 lapic_gettick+0x6
5 c039b98a x86_pause+0x2 5 c039b98a x86_pause+0x2
@ -73,6 +77,7 @@ usage:
5. tpann.sh is another formatter. it outputs "objdump -d" with numbers of 5. tpann.sh is another formatter. it outputs "objdump -d" with numbers of
samples for each addresses. samples for each addresses.
# tprof -o /tmp/bar sleep 100 # tprof -o /tmp/bar sleep 100
# sh ./tpann.sh < /tmp/bar # sh ./tpann.sh < /tmp/bar