From: Peter Zijlstra Date: Tue, 5 May 2009 15:50:23 +0000 (+0200) Subject: perf_counter: add ioctl(PERF_COUNTER_IOC_RESET) X-Git-Tag: v2.6.31-rc1~383^2~300 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6de6a7b95705b859b61430fa3afa1403034eb3e6;p=pandora-kernel.git perf_counter: add ioctl(PERF_COUNTER_IOC_RESET) Provide a way to reset an existing counter - this eases PAPI libraries around perfcounters. Similar to read() it doesn't collapse pending child counters. [ Impact: new perfcounter fd ioctl method to reset counters ] Suggested-by: Corey Ashford Signed-off-by: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <20090505155437.022272933@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed