diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-04-08 09:01:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-08 13:05:54 -0400 |
commit | de9ac07bbf8f51e0ce40e5428c3a8f627bd237c2 (patch) | |
tree | 8aa950c28ce7186d9e1ebe86332ffac6c952c00a /Documentation/perf_counter/Makefile | |
parent | 8d1b2d9361b494bfc761700c348c65ebbe3deb5b (diff) |
perf_counter: some simple userspace profiling
# perf-record make -j4 kernel/
# perf-report | tail -15
0.39 cc1 [kernel] lock_acquired
0.42 cc1 [kernel] lock_acquire
0.51 cc1 [ user ] /lib64/libc-2.8.90.so: _int_free
0.51 as [kernel] clear_page_c
0.53 cc1 [ user ] /lib64/libc-2.8.90.so: memcpy
0.56 cc1 [ user ] /lib64/libc-2.8.90.so: _IO_vfprintf
0.63 cc1 [kernel] lock_release
0.67 cc1 [ user ] /lib64/libc-2.8.90.so: strlen
0.68 cc1 [kernel] debug_smp_processor_id
1.38 cc1 [ user ] /lib64/libc-2.8.90.so: _int_malloc
1.55 cc1 [ user ] /lib64/libc-2.8.90.so: memset
1.77 cc1 [kernel] __lock_acquire
1.88 cc1 [kernel] clear_page_c
3.61 as [ user ] /usr/bin/as: <unknown>
59.16 cc1 [ user ] /usr/libexec/gcc/x86_64-redhat-linux/4.3.2/cc1: <unknown>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
LKML-Reference: <20090408130409.220518450@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/Makefile')
-rw-r--r-- | Documentation/perf_counter/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/perf_counter/Makefile b/Documentation/perf_counter/Makefile index 194b66215588..1dd37ee7dbdc 100644 --- a/Documentation/perf_counter/Makefile +++ b/Documentation/perf_counter/Makefile | |||
@@ -1,10 +1,16 @@ | |||
1 | BINS = kerneltop perfstat | 1 | BINS = kerneltop perfstat perf-record perf-report |
2 | 2 | ||
3 | all: $(BINS) | 3 | all: $(BINS) |
4 | 4 | ||
5 | kerneltop: kerneltop.c ../../include/linux/perf_counter.h | 5 | kerneltop: kerneltop.c ../../include/linux/perf_counter.h |
6 | cc -O6 -Wall -lrt -o $@ $< | 6 | cc -O6 -Wall -lrt -o $@ $< |
7 | 7 | ||
8 | perf-record: perf-record.c ../../include/linux/perf_counter.h | ||
9 | cc -O6 -Wall -lrt -o $@ $< | ||
10 | |||
11 | perf-report: perf-report.cc ../../include/linux/perf_counter.h | ||
12 | g++ -O6 -Wall -lrt -o $@ $< | ||
13 | |||
8 | perfstat: kerneltop | 14 | perfstat: kerneltop |
9 | ln -sf kerneltop perfstat | 15 | ln -sf kerneltop perfstat |
10 | 16 | ||