From: Peter Zijlstra Date: Mon, 6 Apr 2009 09:45:07 +0000 (+0200) Subject: perf_counter: counter overflow limit X-Git-Tag: v2.6.31-rc1~383^2~399 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79f146415623fe74f39af67c0f6adc208939a410;p=pandora-kernel.git perf_counter: counter overflow limit Provide means to auto-disable the counter after 'n' overflow events. Create the counter with hw_event.disabled = 1, and then issue an ioctl(fd, PREF_COUNTER_IOC_REFRESH, n); to set the limit and enable the counter. Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Cc: Corey Ashford LKML-Reference: <20090406094518.083139737@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed