From: Arve Hjønnevåg Date: Sat, 29 Jan 2011 07:33:11 +0000 (-0800) Subject: ARM: etm: Don't limit tracing to only non-secure code. X-Git-Tag: firefly_0821_release~4090^2~814 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=66355f2864c147125a5a31cd1e66412527b9a99d;p=firefly-linux-kernel-4.4.55.git ARM: etm: Don't limit tracing to only non-secure code. On some systems kernel code is considered secure, and this code already limits tracing to the kernel text segment which results in no trace data. Change-Id: I098a0753e874859446d098e1ee209f67fc13cd5d Signed-off-by: Arve Hjønnevåg --- diff --git a/arch/arm/kernel/etm.c b/arch/arm/kernel/etm.c index cb65339e4a3c..a435344db1f3 100644 --- a/arch/arm/kernel/etm.c +++ b/arch/arm/kernel/etm.c @@ -56,7 +56,7 @@ static inline bool trace_isrunning(struct tracectx *t) static int etm_setup_address_range(struct tracectx *t, int n, unsigned long start, unsigned long end, int exclude, int data) { - u32 flags = ETMAAT_ARM | ETMAAT_IGNCONTEXTID | ETMAAT_NSONLY | \ + u32 flags = ETMAAT_ARM | ETMAAT_IGNCONTEXTID | ETMAAT_IGNSECURITY | ETMAAT_NOVALCMP; if (n < 1 || n > t->ncmppairs)