]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: etm: Don't limit tracing to only non-secure code.
authorArve Hjønnevåg <arve@android.com>
Sat, 29 Jan 2011 07:33:11 +0000 (23:33 -0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:27 +0000 (08:35 +0200)
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 <arve@android.com>
arch/arm/kernel/etm.c

index 9c96b5f5614e7fcc3e2855cd316b4328b6dbff37..5d5628f306b01fa17555023e11b31daa5c77140d 100644 (file)
@@ -55,7 +55,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)