Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebaba9c7 authored by Sarang Joshi's avatar Sarang Joshi
Browse files

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: default avatarSarang Joshi <spjoshi@codeaurora.org>
parent 048c6ef4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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",
+4 −0
Original line number Diff line number Diff line
@@ -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",