arm64: do not trace atomic operations
authorPratyush Anand <panand@redhat.com>
Mon, 6 Feb 2017 14:16:22 +0000 (19:46 +0530)
committerWill Deacon <will.deacon@arm.com>
Mon, 6 Feb 2017 19:00:23 +0000 (19:00 +0000)
Atomic operation function symbols are exported,when
CONFIG_ARM64_LSE_ATOMICS is defined. Prefix them with notrace, so that
an user can not trace these functions. Tracing these functions causes
kernel crash.

Signed-off-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/lse.h

index fc756e22c84cd718278d4f0ba8ebc6a32ff4739e..606b20910a5c2a41a7ae425a10852a3bb75f87f1 100644 (file)
@@ -19,7 +19,7 @@
 __asm__(".arch_extension       lse");
 
 /* Move the ll/sc atomics out-of-line */
-#define __LL_SC_INLINE
+#define __LL_SC_INLINE         notrace
 #define __LL_SC_PREFIX(x)      __ll_sc_##x
 #define __LL_SC_EXPORT(x)      EXPORT_SYMBOL(__LL_SC_PREFIX(x))