powerpc/mm: Trace tlbie(l) instructions
Add a trace point for tlbie(l) (Translation Lookaside Buffer Invalidate Entry (Local)) instructions. The tlbie instruction has changed over the years, so not all versions accept the same operands. Use the ISA v3 field operands because they are the most verbose, we may change them in future. Example output: qemu-system-ppc-5371 [016] 1412.369519: tlbie: tlbie with lpid 0, local 1, rb=67bd8900174c11c1, rs=0, ric=0 prs=0 r=0 Signed-off-by: Balbir Singh <bsingharora@gmail.com> [mpe: Add some missing trace_tlbie()s, reword change log] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
d4cfb11387
commit
0428491cba
@@ -20,6 +20,7 @@
|
||||
#include <asm/firmware.h>
|
||||
#include <asm/powernv.h>
|
||||
#include <asm/sections.h>
|
||||
#include <asm/trace.h>
|
||||
|
||||
#include <trace/events/thp.h>
|
||||
|
||||
@@ -198,6 +199,7 @@ static void __init radix_init_pgtable(void)
|
||||
asm volatile(PPC_TLBIE_5(%0,%1,2,1,1) : :
|
||||
"r" (TLBIEL_INVAL_SET_LPID), "r" (0));
|
||||
asm volatile("eieio; tlbsync; ptesync" : : : "memory");
|
||||
trace_tlbie(0, 0, TLBIEL_INVAL_SET_LPID, 0, 2, 1, 1);
|
||||
}
|
||||
|
||||
static void __init radix_init_partition_table(void)
|
||||
@@ -324,6 +326,9 @@ static void update_hid_for_radix(void)
|
||||
asm volatile(PPC_TLBIE_5(%0, %4, %3, %2, %1)
|
||||
: : "r"(rb), "i"(1), "i"(1), "i"(2), "r"(0) : "memory");
|
||||
asm volatile("eieio; tlbsync; ptesync; isync; slbia": : :"memory");
|
||||
trace_tlbie(0, 0, rb, 0, 2, 0, 1);
|
||||
trace_tlbie(0, 0, rb, 0, 2, 1, 1);
|
||||
|
||||
/*
|
||||
* now switch the HID
|
||||
*/
|
||||
|
Reference in New Issue
Block a user