Skip to content

Commit

Permalink
Merge pull request #28 from mmisono/fix/cr3_match
Browse files Browse the repository at this point in the history
simple-pt: Mask out the PCID in the cr3
  • Loading branch information
andikleen authored May 10, 2020
2 parents 505fae2 + 86fb9bc commit 2c7ec45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple-pt.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ static u64 retrieve_cr3(void)
{
u64 cr3;
asm volatile("mov %%cr3,%0" : "=r" (cr3));
return cr3;
return cr3 & ~0xfff; // mask out the PCID
}

static void probe_sched_process_exec(void *arg,
Expand Down

0 comments on commit 2c7ec45

Please sign in to comment.