diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2013-01-16 17:03:26 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-16 16:10:39 +0000 |
| commit | 9f263a60e3521b800121a6f527a7b30dc9b62432 (patch) | |
| tree | 6f8c703ad573c463a2b54b117891589f085c59ac | |
| parent | d701d980bc734659d7792a26167451691563533d (diff) | |
| download | poky-9f263a60e3521b800121a6f527a7b30dc9b62432.tar.gz | |
oprofile: add AArch64 support
(From OE-Core rev: 169b9afcf2d357fdcf254a380d21d17701685834)
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch | 31 | ||||
| -rw-r--r-- | meta/recipes-kernel/oprofile/oprofile_0.9.8.bb | 3 |
2 files changed, 33 insertions, 1 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch b/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch new file mode 100644 index 0000000000..195bfb296e --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 27edaef9c6d66dfc324630ef40cb27e78031eeeb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | ||
| 3 | Date: Tue, 15 Jan 2013 07:37:33 +0100 | ||
| 4 | Subject: [PATCH] Add rmb() definition for AArch64 architecture | ||
| 5 | |||
| 6 | Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | ||
| 7 | |||
| 8 | Upstream-status: backport | ||
| 9 | --- | ||
| 10 | libperf_events/operf_utils.h | 5 +++++ | ||
| 11 | 1 file changed, 5 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h | ||
| 14 | index 815d51d..2df00b7 100644 | ||
| 15 | --- a/libperf_events/operf_utils.h | ||
| 16 | +++ b/libperf_events/operf_utils.h | ||
| 17 | @@ -148,6 +148,11 @@ void op_release_resources(void); | ||
| 18 | #define cpu_relax() asm volatile("":::"memory") | ||
| 19 | #endif | ||
| 20 | |||
| 21 | +#ifdef __aarch64__ | ||
| 22 | +#define rmb() asm volatile("dmb ld" ::: "memory") | ||
| 23 | +#define cpu_relax() asm volatile("yield" ::: "memory") | ||
| 24 | +#endif | ||
| 25 | + | ||
| 26 | #ifdef __mips__ | ||
| 27 | #include <asm/unistd.h> | ||
| 28 | #define rmb() asm volatile( \ | ||
| 29 | -- | ||
| 30 | 1.8.0 | ||
| 31 | |||
diff --git a/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb b/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb index 939c1bab85..d283b5cd03 100644 --- a/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb +++ b/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb | |||
| @@ -2,7 +2,8 @@ require oprofile.inc | |||
| 2 | 2 | ||
| 3 | PR = "${INC_PR}.0" | 3 | PR = "${INC_PR}.0" |
| 4 | 4 | ||
| 5 | SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz" | 5 | SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ |
| 6 | file://0001-Add-rmb-definition-for-AArch64-architecture.patch" | ||
| 6 | 7 | ||
| 7 | SRC_URI[md5sum] = "6d127023af1dd1cf24e15411229f3cc8" | 8 | SRC_URI[md5sum] = "6d127023af1dd1cf24e15411229f3cc8" |
| 8 | SRC_URI[sha256sum] = "ab45900fa1a23e5d5badf3c0a55f26c17efe6e184efcf00b371433751fa761bc" | 9 | SRC_URI[sha256sum] = "ab45900fa1a23e5d5badf3c0a55f26c17efe6e184efcf00b371433751fa761bc" |
