From: Ingo Molnar Date: Thu, 11 Dec 2008 11:46:46 +0000 (+0100) Subject: perf counters: hw driver API X-Git-Tag: v2.6.31-rc1~383^2~576 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=621a01eac89b5e2f81a4cf576568b31f40a02724;p=pandora-kernel.git perf counters: hw driver API Impact: restructure code, introduce hw_ops driver abstraction Introduce this abstraction to handle counter details: struct hw_perf_counter_ops { void (*hw_perf_counter_enable) (struct perf_counter *counter); void (*hw_perf_counter_disable) (struct perf_counter *counter); void (*hw_perf_counter_read) (struct perf_counter *counter); }; This will be useful to support assymetric hw details, and it will also be useful to implement "software counters". (Counters that count kernel managed sw events such as pagefaults, context-switches, wall-clock time or task-local time.) Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed