mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
arm64: abort coresight tracing on user faults
Add support to abort CoreSight tracing for user faults and undefined instructions for 64 bit platform. We already have this support for 32 bit. Change-Id: Ic5d1f0dbb5c7abbcf5bf95218dd50e18c6677e1f Signed-off-by: Sarang Joshi <spjoshi@codeaurora.org>
This commit is contained in:
parent
048c6ef4f6
commit
ebaba9c7b1
|
@ -38,6 +38,8 @@
|
|||
#include <asm/exception.h>
|
||||
#include <asm/system_misc.h>
|
||||
|
||||
#include <trace/events/exception.h>
|
||||
|
||||
static const char *handler[]= {
|
||||
"Synchronous Abort",
|
||||
"IRQ",
|
||||
|
@ -266,6 +268,8 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
|
|||
if (!aarch32_break_handler(regs))
|
||||
return;
|
||||
|
||||
trace_undef_instr(regs, (void *)pc);
|
||||
|
||||
if (show_unhandled_signals && unhandled_signal(current, SIGILL) &&
|
||||
printk_ratelimit()) {
|
||||
pr_info("%s[%d]: undefined instruction: pc=%p\n",
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
#include <asm/pgtable.h>
|
||||
#include <asm/tlbflush.h>
|
||||
|
||||
#include <trace/events/exception.h>
|
||||
|
||||
static const char *fault_name(unsigned int esr);
|
||||
|
||||
/*
|
||||
|
@ -113,6 +115,8 @@ static void __do_user_fault(struct task_struct *tsk, unsigned long addr,
|
|||
{
|
||||
struct siginfo si;
|
||||
|
||||
trace_user_fault(tsk, addr, esr);
|
||||
|
||||
if (show_unhandled_signals && unhandled_signal(tsk, sig) &&
|
||||
printk_ratelimit()) {
|
||||
pr_info("%s[%d]: unhandled %s (%d) at 0x%08lx, esr 0x%03x\n",
|
||||
|
|
Loading…
Reference in a new issue