aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNicholas Piggin <[email protected]>2020-05-07 22:13:30 +1000
committerMichael Ellerman <[email protected]>2020-05-15 11:58:54 +1000
commitdb30144b5c9cfb09c6b8b2fa7a9c351c94aa3433 (patch)
treed67d0125490c89315fc451b45897ae2a7263d759 /tools/perf/scripts/python
parentfeb9df3462e688d073848d85c8bb132fe8fd9ae5 (diff)
powerpc: Use set_trap() and avoid open-coding trap masking
The pt_regs.trap field keeps 4 low bits for some metadata about the trap or how it was handled, which is masked off in order to test the architectural trap number. Add a set_trap() accessor to set this, equivalent to TRAP() for returning it. This is actually not quite the equivalent of TRAP() because it always clears the low bits, which may be harmless if it can only be updated via ptrace syscall, but it seems dangerous. In fact settting TRAP from ptrace doesn't seem like a great idea so maybe it's better deleted. Signed-off-by: Nicholas Piggin <[email protected]> [mpe: Make it a static inline rather than a shouty macro] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions