aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorVincent Chen <[email protected]>2019-09-23 08:45:16 +0800
committerPaul Walmsley <[email protected]>2019-10-07 12:59:41 -0700
commit8bb0daef64e5a92db63ad1d3bbf9e280a7b3612a (patch)
treeb56848d150a8be8b712e8ef975a5d9830238381a /tools/perf/util/trace-event-scripting.c
parente0c0fc18f10d5080cddde0e81505fd3e952c20c4 (diff)
riscv: Correct the handling of unexpected ebreak in do_trap_break()
For the kernel space, all ebreak instructions are determined at compile time because the kernel space debugging module is currently unsupported. Hence, it should be treated as a bug if an ebreak instruction which does not belong to BUG_TRAP_TYPE_WARN or BUG_TRAP_TYPE_BUG is executed in kernel space. For the userspace, debugging module or user problem may intentionally insert an ebreak instruction to trigger a SIGTRAP signal. To approach the above two situations, the do_trap_break() will direct the BUG_TRAP_TYPE_NONE ebreak exception issued in kernel space to die() and will send a SIGTRAP to the trapped process only when the ebreak is in userspace. Signed-off-by: Vincent Chen <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> [[email protected]: fixed checkpatch issue] Signed-off-by: Paul Walmsley <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions