]> git.baikalelectronics.ru Git - kernel.git/commit
oprofile, x86: Add support for IBS branch target address reporting
authorRobert Richter <robert.richter@amd.com>
Tue, 21 Sep 2010 13:49:31 +0000 (15:49 +0200)
committerRobert Richter <robert.richter@amd.com>
Fri, 15 Oct 2010 10:50:42 +0000 (12:50 +0200)
commiteb00bc1814efa35842e07441e1068292e1222cfd
treece77e751ee711b08ddc5fd3cc6e159a093676b5b
parentc5dc0cc8e38a406c2e910d35769f3a1086d50203
oprofile, x86: Add support for IBS branch target address reporting

This patch adds support for IBS branch target address reporting. A new
MSR (MSRC001_103B IBS Branch Target Address) has been added that
provides the logical address in canonical form for the branch
target. The size of the IBS sample that is transferred to the userland
has been increased.

For backward compatibility, the userland daemon must explicit enable
the feature by writing to the oprofilefs file

 ibs_op/branch_target

After enabling branch target address reporting, the userland daemon
must handle the extended size of the IBS sample.

Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/include/asm/msr-index.h
arch/x86/oprofile/op_model_amd.c