diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2010-12-08 01:50:04 -0600 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-12-10 22:01:29 -0800 |
commit | 8d702d76ff68f6f496af212a3e8d12a0d40cac2f (patch) | |
tree | a9433e2f6ad7624903e50145909e576255914185 /meta/recipes-kernel/sysprof/files | |
parent | 732a117c77668d6ce69103c24f76a2d6bee81d5e (diff) | |
download | poky-8d702d76ff68f6f496af212a3e8d12a0d40cac2f.tar.gz |
sysprof: add system-wide performance profiler for Linux.
[sgw@linux.intel.com: alpha'ed poky-default-revision.inc and fix commit message]
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/sysprof/files')
-rw-r--r-- | meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch | 13 | ||||
-rw-r--r-- | meta/recipes-kernel/sysprof/files/rmb-arm.patch | 18 | ||||
-rw-r--r-- | meta/recipes-kernel/sysprof/files/rmb-mips.patch | 20 |
3 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch b/meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch new file mode 100644 index 0000000000..a2e015a0c5 --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/ppc-macro-fix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: git/collector.c | ||
2 | =================================================================== | ||
3 | --- git.orig/collector.c 2010-12-09 19:42:12.292040001 -0600 | ||
4 | +++ git/collector.c 2010-12-09 19:42:23.352039997 -0600 | ||
5 | @@ -175,7 +175,7 @@ | ||
6 | #define __NR_perf_counter_open 337 | ||
7 | #elif defined(__hppa__) | ||
8 | #define __NR_perf_counter_open 318 | ||
9 | -#elif defined(__ppc__) || defined(__ppc64__) | ||
10 | +#elif defined(__powerpc__) || defined(__powerpc64__) | ||
11 | #define __NR_perf_counter_open 319 | ||
12 | #elif defined(__s390__) | ||
13 | #define __NR_perf_counter_open 331 | ||
diff --git a/meta/recipes-kernel/sysprof/files/rmb-arm.patch b/meta/recipes-kernel/sysprof/files/rmb-arm.patch new file mode 100644 index 0000000000..60e7f707a3 --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/rmb-arm.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Index: git/util.h | ||
2 | =================================================================== | ||
3 | --- git.orig/util.h 2010-12-07 22:41:57.156243001 -0600 | ||
4 | +++ git/util.h 2010-12-07 22:43:47.616243002 -0600 | ||
5 | @@ -37,4 +37,13 @@ | ||
6 | #define cpu_relax() asm volatile("" ::: "memory"); | ||
7 | #endif | ||
8 | |||
9 | +#ifdef __arm__ | ||
10 | +/* | ||
11 | + * Use the __kuser_memory_barrier helper in the CPU helper page. See | ||
12 | + * arch/arm/kernel/entry-armv.S in the kernel source for details. | ||
13 | + */ | ||
14 | +#define rmb() ((void(*)(void))0xffff0fa0)() | ||
15 | +#define cpu_relax() asm volatile("":::"memory") | ||
16 | +#endif | ||
17 | + | ||
18 | #endif | ||
diff --git a/meta/recipes-kernel/sysprof/files/rmb-mips.patch b/meta/recipes-kernel/sysprof/files/rmb-mips.patch new file mode 100644 index 0000000000..84f968ef00 --- /dev/null +++ b/meta/recipes-kernel/sysprof/files/rmb-mips.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | Index: git/util.h | ||
2 | =================================================================== | ||
3 | --- git.orig/util.h 2010-12-08 01:22:44.486243001 -0600 | ||
4 | +++ git/util.h 2010-12-08 01:23:27.836243001 -0600 | ||
5 | @@ -37,4 +37,15 @@ | ||
6 | #define cpu_relax() asm volatile("" ::: "memory"); | ||
7 | #endif | ||
8 | |||
9 | +#ifdef __mips__ | ||
10 | +#define rmb() asm volatile( \ | ||
11 | + ".set mips2\n\t" \ | ||
12 | + "sync\n\t" \ | ||
13 | + ".set mips0" \ | ||
14 | + : /* no output */ \ | ||
15 | + : /* no input */ \ | ||
16 | + : "memory") | ||
17 | +#define cpu_relax() asm volatile("" ::: "memory") | ||
18 | +#endif | ||
19 | + | ||
20 | #endif | ||