x86/oprofile: use unambiguous register names

This is in preparation of eliminating the mis-naming of 64-bit fields
with 32-bit register names (eflags instead of rflags etc).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2016-12-21 16:59:13 +01:00
1 parent bd755bf917
commit 8d55e69d2d
4 files changed
+7 -9

No files matched your search

+1 -1
View File
@@ -150,7 +150,7 @@ static int valid_hypervisor_stack(const struct frame_head *head,
void xenoprof_backtrace(struct vcpu *vcpu, const struct cpu_user_regs *regs,
unsigned long depth, int mode)
{
const struct frame_head *head = (void *)regs->ebp;
const struct frame_head *head = (void *)regs->rbp;
if (mode > 1) {
while (depth-- && valid_hypervisor_stack(head, regs))
+4 -6
View File
@@ -316,22 +316,20 @@ static int athlon_check_ctrs(unsigned int const cpu,
uint64_t msr_content;
int i;
int ovf = 0;
unsigned long eip = regs->eip;
unsigned long eip = regs->rip;
int mode = 0;
struct vcpu *v = current;
struct cpu_user_regs *guest_regs = guest_cpu_user_regs();
unsigned int const nr_ctrs = model->num_counters;
if (!guest_mode(regs) &&
(regs->eip == (unsigned long)svm_stgi_label)) {
(eip == (unsigned long)svm_stgi_label)) {
/* SVM guest was running when NMI occurred */
ASSERT(is_hvm_vcpu(v));
eip = guest_regs->eip;
eip = guest_regs->rip;
mode = xenoprofile_get_mode(v, guest_regs);
} else {
eip = regs->eip;
} else
mode = xenoprofile_get_mode(v, regs);
}
for (i = 0 ; i < nr_ctrs; ++i) {
CTR_READ(msr_content, msrs, i);
+1 -1
View File
@@ -617,7 +617,7 @@ static int p4_check_ctrs(unsigned int const cpu,
uint64_t msr_content;
int i;
int ovf = 0;
unsigned long eip = regs->eip;
unsigned long eip = regs->rip;
int mode = xenoprofile_get_mode(current, regs);
stag = get_stagger();
+1 -1
View File
@@ -135,7 +135,7 @@ static int ppro_check_ctrs(unsigned int const cpu,
u64 val;
int i;
int ovf = 0;
unsigned long eip = regs->eip;
unsigned long eip = regs->rip;
int mode = xenoprofile_get_mode(current, regs);
struct arch_msr_pair *msrs_content = vcpu_vpmu(current)->context;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.