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)
commit25da6950475becb35d7a3bb3b5fbdc715a76887e
treece77e751ee711b08ddc5fd3cc6e159a093676b5b
parent53b39e9480ef8a286cef9899c455a979acd0eed9
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