perf tools: Default to 1 KHz auto-sampling freq events
authorIngo Molnar <mingo@elte.hu>
Tue, 6 Oct 2009 13:14:21 +0000 (15:14 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 6 Oct 2009 13:41:09 +0000 (15:41 +0200)
commit42e59d7d19dc4b49feab2a860fd9a8ca3248c833
treea1c597604dcb239804684f452263bec295d77ae3
parent064739bc4b3d7f424b2f25547e6611bcf0132415
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>
tools/perf/builtin-record.c
tools/perf/builtin-top.c