]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Implement 64-bit counter support for IBS
authorRobert Richter <robert.richter@amd.com>
Thu, 15 Dec 2011 16:56:39 +0000 (17:56 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 8 Mar 2012 10:35:22 +0000 (11:35 +0100)
commit26ca45470915ecff73b9c4b003ee0446089a1a93
treededbbe76714b416b5e6d62d30b8488a9c0f6c1c2
parentdc0ff31d5e5e134f9825cd2c4fcb97aac2fda0e4
perf/x86: Implement 64-bit counter support for IBS

This patch implements 64 bit counter support for IBS. The
sampling period is no longer limited to the hw counter width.

The functions perf_event_set_period() and
perf_event_try_update() can be used as generic functions. They
can replace similar code that is duplicate across architectures.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1323968199-9326-5-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event_amd_ibs.c