aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-10-06 09:14:21 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-06 09:41:09 -0400
commit42e59d7d19dc4b49feab2a860fd9a8ca3248c833 (patch)
treea1c597604dcb239804684f452263bec295d77ae3 /tools/perf/builtin-top.c
parent064739bc4b3d7f424b2f25547e6611bcf0132415 (diff)
perf tools: Default to 1 KHz auto-sampling freq events
Use auto-freq events by default in perf record and perf top. This allows more consistent hardware event sampling, regardless of the intensity of the underlying event. It also keeps us from over-sampling on larger/busier systems. (also make surrounding initializations more consistent) Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index c574c5b3d0e6..d978dc99236c 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -55,26 +55,26 @@
55 55
56static int fd[MAX_NR_CPUS][MAX_COUNTERS]; 56static int fd[MAX_NR_CPUS][MAX_COUNTERS];
57 57
58static int system_wide = 0; 58static int system_wide = 0;
59 59
60static int default_interval = 100000; 60static int default_interval = 100000;
61 61
62static int count_filter = 5; 62static int count_filter = 5;
63static int print_entries = 15; 63static int print_entries = 15;
64 64
65static int target_pid = -1; 65static int target_pid = -1;
66static int inherit = 0; 66static int inherit = 0;
67static int profile_cpu = -1; 67static int profile_cpu = -1;
68static int nr_cpus = 0; 68static int nr_cpus = 0;
69static unsigned int realtime_prio = 0; 69static unsigned int realtime_prio = 0;
70static int group = 0; 70static int group = 0;
71static unsigned int page_size; 71static unsigned int page_size;
72static unsigned int mmap_pages = 16; 72static unsigned int mmap_pages = 16;
73static int freq = 0; 73static int freq = 1000; /* 1 KHz */
74 74
75static int delay_secs = 2; 75static int delay_secs = 2;
76static int zero; 76static int zero = 0;
77static int dump_symtab; 77static int dump_symtab = 0;
78 78
79/* 79/*
80 * Source 80 * Source
@@ -87,11 +87,11 @@ struct source_line {
87 struct source_line *next; 87 struct source_line *next;
88}; 88};
89 89
90static char *sym_filter = NULL; 90static char *sym_filter = NULL;
91struct sym_entry *sym_filter_entry = NULL; 91struct sym_entry *sym_filter_entry = NULL;
92static int sym_pcnt_filter = 5; 92static int sym_pcnt_filter = 5;
93static int sym_counter = 0; 93static int sym_counter = 0;
94static int display_weighted = -1; 94static int display_weighted = -1;
95 95
96/* 96/*
97 * Symbols 97 * Symbols