From: Mike Galbraith Date: Mon, 12 Oct 2009 05:56:03 +0000 (+0200) Subject: perf tools: Fix counter sample frequency breakage X-Git-Tag: v2.6.33-rc1~399^2~1^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e4ff9e3e8f88de8a8536f43294cd32b4e7d9123;p=pandora-kernel.git perf tools: Fix counter sample frequency breakage Commit 42e59d7d19dc4b4 switched to a default sample frequency of 1KHz, which overrides any user supplied count, causing sched, top and timechart to miss events due to their discrete events being flagged PERF_SAMPLE_PERIOD. Override default sample frequency when the user profides a period count, and make both record and top honor that user supplied option. Signed-off-by: Mike Galbraith Cc: Peter Zijlstra Cc: Arjan van de Ven LKML-Reference: <1255326963.15107.2.camel@marge.simson.net> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed