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:
Sarang Joshi 2014-02-21 17:09:28 -08:00
parent 048c6ef4f6
commit ebaba9c7b1
2 changed files with 8 additions and 0 deletions

View file

@ -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",

View file

@ -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",