diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-02 17:37:05 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-02 17:37:05 -0400 |
commit | bf9e187637ca3d85cee7407e3af93995868cc87c (patch) | |
tree | c2ea1b5fad7f75082efb93abb7fa447940b7cb69 /Documentation/perf_counter/builtin-top.c | |
parent | 0a520c63e1625b92ef775da40192e1542910e7f6 (diff) |
perf_counter tools: Make source code headers more coherent
The perf commands had different ways of describing themselves,
introduce a coherent command-file-header format taken from the
Git project.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/builtin-top.c')
-rw-r--r-- | Documentation/perf_counter/builtin-top.c | 60 |
1 files changed, 18 insertions, 42 deletions
diff --git a/Documentation/perf_counter/builtin-top.c b/Documentation/perf_counter/builtin-top.c index 5029d8e6cd9c..a63935276cac 100644 --- a/Documentation/perf_counter/builtin-top.c +++ b/Documentation/perf_counter/builtin-top.c | |||
@@ -1,49 +1,25 @@ | |||
1 | /* | 1 | /* |
2 | * kerneltop.c: show top kernel functions - performance counters showcase | 2 | * builtin-top.c |
3 | 3 | * | |
4 | Build with: | 4 | * Builtin top command: Display a continuously updated profile of |
5 | 5 | * any workload, CPU or specific PID. | |
6 | make -C Documentation/perf_counter/ | 6 | * |
7 | 7 | * Copyright (C) 2008, Red Hat Inc, Ingo Molnar <mingo@redhat.com> | |
8 | Sample output: | 8 | * |
9 | 9 | * Improvements and fixes by: | |
10 | ------------------------------------------------------------------------------ | 10 | * |
11 | KernelTop: 2669 irqs/sec [cache-misses/cache-refs], (all, cpu: 2) | 11 | * Arjan van de Ven <arjan@linux.intel.com> |
12 | ------------------------------------------------------------------------------ | 12 | * Yanmin Zhang <yanmin.zhang@intel.com> |
13 | 13 | * Wu Fengguang <fengguang.wu@intel.com> | |
14 | weight RIP kernel function | 14 | * Mike Galbraith <efault@gmx.de> |
15 | ______ ________________ _______________ | 15 | * Paul Mackerras <paulus@samba.org> |
16 | 16 | * | |
17 | 35.20 - ffffffff804ce74b : skb_copy_and_csum_dev | 17 | * Released under the GPL v2. (and only v2, not any later version) |
18 | 33.00 - ffffffff804cb740 : sock_alloc_send_skb | ||
19 | 31.26 - ffffffff804ce808 : skb_push | ||
20 | 22.43 - ffffffff80510004 : tcp_established_options | ||
21 | 19.00 - ffffffff8027d250 : find_get_page | ||
22 | 15.76 - ffffffff804e4fc9 : eth_type_trans | ||
23 | 15.20 - ffffffff804d8baa : dst_release | ||
24 | 14.86 - ffffffff804cf5d8 : skb_release_head_state | ||
25 | 14.00 - ffffffff802217d5 : read_hpet | ||
26 | 12.00 - ffffffff804ffb7f : __ip_local_out | ||
27 | 11.97 - ffffffff804fc0c8 : ip_local_deliver_finish | ||
28 | 8.54 - ffffffff805001a3 : ip_queue_xmit | ||
29 | */ | 18 | */ |
30 | 19 | #include "builtin.h" | |
31 | /* | ||
32 | * Copyright (C) 2008, Red Hat Inc, Ingo Molnar <mingo@redhat.com> | ||
33 | * | ||
34 | * Improvements and fixes by: | ||
35 | * | ||
36 | * Arjan van de Ven <arjan@linux.intel.com> | ||
37 | * Yanmin Zhang <yanmin.zhang@intel.com> | ||
38 | * Wu Fengguang <fengguang.wu@intel.com> | ||
39 | * Mike Galbraith <efault@gmx.de> | ||
40 | * Paul Mackerras <paulus@samba.org> | ||
41 | * | ||
42 | * Released under the GPL v2. (and only v2, not any later version) | ||
43 | */ | ||
44 | 20 | ||
45 | #include "perf.h" | 21 | #include "perf.h" |
46 | #include "builtin.h" | 22 | |
47 | #include "util/symbol.h" | 23 | #include "util/symbol.h" |
48 | #include "util/util.h" | 24 | #include "util/util.h" |
49 | #include "util/rbtree.h" | 25 | #include "util/rbtree.h" |