aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-05-22 12:14:18 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-05-22 12:14:18 -0400
commit447a6013e91738c0d4118a7d0c56f235d8623695 (patch)
tree3b9e536bbe333c0794c2c3d81e72054f5ee7de4c /tools
parent299c345208ae15fbc1e1c96dc1b6ac61e4e5da10 (diff)
perf tools: Bump default sample freq to 4 kHz
Quoting Ingo: "While at it I'd also suggest increasing the default sampling frequency, from 1000 Hz per CPU to at least 4Khz auto-freq or so - this should work well all across the board I think. CPUs are getting faster and command/app run times are getting shorter, 1Khz is a bit low IMO." Requested-by: Ingo Molnar <mingo@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-2jafa6mkrufyekny9ei59lpu@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-record.c2
-rw-r--r--tools/perf/builtin-top.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 9c76add6a03a..e5cb08427e13 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -753,7 +753,7 @@ static struct perf_record record = {
753 .mmap_pages = UINT_MAX, 753 .mmap_pages = UINT_MAX,
754 .user_freq = UINT_MAX, 754 .user_freq = UINT_MAX,
755 .user_interval = ULLONG_MAX, 755 .user_interval = ULLONG_MAX,
756 .freq = 1000, 756 .freq = 4000,
757 .target = { 757 .target = {
758 .uses_mmap = true, 758 .uses_mmap = true,
759 }, 759 },
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 18bd226f9f2b..6031dce0429f 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1162,7 +1162,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __used)
1162 struct perf_top top = { 1162 struct perf_top top = {
1163 .count_filter = 5, 1163 .count_filter = 5,
1164 .delay_secs = 2, 1164 .delay_secs = 2,
1165 .freq = 1000, /* 1 KHz */ 1165 .freq = 4000, /* 4 KHz */
1166 .mmap_pages = 128, 1166 .mmap_pages = 128,
1167 .sym_pcnt_filter = 5, 1167 .sym_pcnt_filter = 5,
1168 .target = { 1168 .target = {