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
@@ -168,6 +168,39 @@ TRACE_EVENT(hash_fault,
|
||||
__entry->addr, __entry->access, __entry->trap)
|
||||
);
|
||||
|
||||
|
||||
TRACE_EVENT(tlbie,
|
||||
|
||||
TP_PROTO(unsigned long lpid, unsigned long local, unsigned long rb,
|
||||
unsigned long rs, unsigned long ric, unsigned long prs,
|
||||
unsigned long r),
|
||||
TP_ARGS(lpid, local, rb, rs, ric, prs, r),
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned long, lpid)
|
||||
__field(unsigned long, local)
|
||||
__field(unsigned long, rb)
|
||||
__field(unsigned long, rs)
|
||||
__field(unsigned long, ric)
|
||||
__field(unsigned long, prs)
|
||||
__field(unsigned long, r)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->lpid = lpid;
|
||||
__entry->local = local;
|
||||
__entry->rb = rb;
|
||||
__entry->rs = rs;
|
||||
__entry->ric = ric;
|
||||
__entry->prs = prs;
|
||||
__entry->r = r;
|
||||
),
|
||||
|
||||
TP_printk("lpid=%ld, local=%ld, rb=0x%lx, rs=0x%lx, ric=0x%lx, "
|
||||
"prs=0x%lx, r=0x%lx", __entry->lpid, __entry->local,
|
||||
__entry->rb, __entry->rs, __entry->ric, __entry->prs,
|
||||
__entry->r)
|
||||
);
|
||||
|
||||
#endif /* _TRACE_POWERPC_H */
|
||||
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
|
Reference in New Issue
Block a user