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

Commit 16cc1d6d authored by Laura Abbott's avatar Laura Abbott Committed by Matt Wagantall
Browse files

msm: rtb: Log the context id in the rtb



Store the context id in the register trace buffer.
The process id can be derived from the context id.
This gives a general idea about what process was last
running when the RTB stopped.

Change-Id: I34db8135b78b232190044f771e61639065d73318
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
Signed-off-by: default avatarPratik Patel <pratikp@codeaurora.org>
parent ecfd4eff
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/percpu.h>
#include <linux/msm_rtb.h>

#include <asm/mmu_context.h>
#include <asm/smp_plat.h>
@@ -120,6 +121,7 @@ static int contextidr_notifier(struct notifier_block *unused, unsigned long cmd,
	"	mcr	p15, 0, %0, c13, c0, 1\n"
	: "=r" (contextidr), "+r" (pid)
	: "I" (~ASID_MASK));
	uncached_logk(LOGK_CTXID, (void *)contextidr);
	isb();

	return NOTIFY_OK;