packages/devel/sysprof/patches/rmb-arm.patch
juhosg 8886dca03c packages: add sysprof tool
Add sysprof - preformance profiler
for Linux - to the development tools.

Patches for mips/arm are from openembedded
code.

sysprof-cli <outfile> get required events/stack frames.
Next outfile can be loaded/displayed on PC using
sysprof.

Tool using:
- PERF events
- /proc/kallsyms for kernel symbols

You should compile kernel with profiling enabled,
debug information, symbol table information.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@38466 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-10-20 15:58:09 +00:00

22 lines
579 B
Diff

Upstream-Status: Pending
Index: git/util.h
===================================================================
--- git.orig/util.h 2010-12-07 22:41:57.156243001 -0600
+++ git/util.h 2010-12-07 22:43:47.616243002 -0600
@@ -37,4 +37,13 @@
#define cpu_relax() asm volatile("" ::: "memory");
#endif
+#ifdef __arm__
+/*
+ * Use the __kuser_memory_barrier helper in the CPU helper page. See
+ * arch/arm/kernel/entry-armv.S in the kernel source for details.
+ */
+#define rmb() ((void(*)(void))0xffff0fa0)()
+#define cpu_relax() asm volatile("":::"memory")
+#endif
+
#endif