From: Arnaldo Carvalho de Melo Date: Tue, 22 May 2012 16:14:18 +0000 (-0300) Subject: perf tools: Bump default sample freq to 4 kHz X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=447a6013e91738c0d4118a7d0c56f235d8623695;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Cc: David Ahern Cc: Frederic Weisbecker Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-2jafa6mkrufyekny9ei59lpu@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- 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 = { .mmap_pages = UINT_MAX, .user_freq = UINT_MAX, .user_interval = ULLONG_MAX, - .freq = 1000, + .freq = 4000, .target = { .uses_mmap = true, }, 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) struct perf_top top = { .count_filter = 5, .delay_secs = 2, - .freq = 1000, /* 1 KHz */ + .freq = 4000, /* 4 KHz */ .mmap_pages = 128, .sym_pcnt_filter = 5, .target = {