* [PATCH] oprofile: add AArch64 support
@ 2013-01-16 15:49 Marcin Juszkiewicz
2013-01-16 15:52 ` Saul Wold
0 siblings, 1 reply; 3+ messages in thread
From: Marcin Juszkiewicz @ 2013-01-16 15:49 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
...d-rmb-definition-for-AArch64-architecture.patch | 31 ++++++++++++++++++++++
meta/recipes-kernel/oprofile/oprofile_0.9.8.bb | 3 ++-
2 files changed, 33 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch
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 0000000..195bfb2
--- /dev/null
+++ b/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch
@@ -0,0 +1,31 @@
+From 27edaef9c6d66dfc324630ef40cb27e78031eeeb Mon Sep 17 00:00:00 2001
+From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
+Date: Tue, 15 Jan 2013 07:37:33 +0100
+Subject: [PATCH] Add rmb() definition for AArch64 architecture
+
+Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
+
+Upstream-status: backport
+---
+ libperf_events/operf_utils.h | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h
+index 815d51d..2df00b7 100644
+--- a/libperf_events/operf_utils.h
++++ b/libperf_events/operf_utils.h
+@@ -148,6 +148,11 @@ void op_release_resources(void);
+ #define cpu_relax() asm volatile("":::"memory")
+ #endif
+
++#ifdef __aarch64__
++#define rmb() asm volatile("dmb ld" ::: "memory")
++#define cpu_relax() asm volatile("yield" ::: "memory")
++#endif
++
+ #ifdef __mips__
+ #include <asm/unistd.h>
+ #define rmb() asm volatile( \
+--
+1.8.0
+
diff --git a/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb b/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb
index 939c1ba..d283b5c 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
PR = "${INC_PR}.0"
-SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
+SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
+ file://0001-Add-rmb-definition-for-AArch64-architecture.patch"
SRC_URI[md5sum] = "6d127023af1dd1cf24e15411229f3cc8"
SRC_URI[sha256sum] = "ab45900fa1a23e5d5badf3c0a55f26c17efe6e184efcf00b371433751fa761bc"
--
1.8.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] oprofile: add AArch64 support
2013-01-16 15:49 [PATCH] oprofile: add AArch64 support Marcin Juszkiewicz
@ 2013-01-16 15:52 ` Saul Wold
2013-01-16 16:03 ` Marcin Juszkiewicz
0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2013-01-16 15:52 UTC (permalink / raw)
To: Marcin Juszkiewicz; +Cc: openembedded-core
On 01/16/2013 07:49 AM, Marcin Juszkiewicz wrote:
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
> ...d-rmb-definition-for-AArch64-architecture.patch | 31 ++++++++++++++++++++++
> meta/recipes-kernel/oprofile/oprofile_0.9.8.bb | 3 ++-
> 2 files changed, 33 insertions(+), 1 deletion(-)
> create mode 100644 meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch
>
> 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 0000000..195bfb2
> --- /dev/null
> +++ b/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch
> @@ -0,0 +1,31 @@
> +From 27edaef9c6d66dfc324630ef40cb27e78031eeeb Mon Sep 17 00:00:00 2001
> +From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> +Date: Tue, 15 Jan 2013 07:37:33 +0100
> +Subject: [PATCH] Add rmb() definition for AArch64 architecture
> +
> +Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> +
> +Upstream-status: backport
Upstream-Status: Backport
Capital Status please
Thanks
Sau!
> +---
> + libperf_events/operf_utils.h | 5 +++++
> + 1 file changed, 5 insertions(+)
> +
> +diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h
> +index 815d51d..2df00b7 100644
> +--- a/libperf_events/operf_utils.h
> ++++ b/libperf_events/operf_utils.h
> +@@ -148,6 +148,11 @@ void op_release_resources(void);
> + #define cpu_relax() asm volatile("":::"memory")
> + #endif
> +
> ++#ifdef __aarch64__
> ++#define rmb() asm volatile("dmb ld" ::: "memory")
> ++#define cpu_relax() asm volatile("yield" ::: "memory")
> ++#endif
> ++
> + #ifdef __mips__
> + #include <asm/unistd.h>
> + #define rmb() asm volatile( \
> +--
> +1.8.0
> +
> diff --git a/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb b/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb
> index 939c1ba..d283b5c 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
>
> PR = "${INC_PR}.0"
>
> -SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
> +SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
> + file://0001-Add-rmb-definition-for-AArch64-architecture.patch"
>
> SRC_URI[md5sum] = "6d127023af1dd1cf24e15411229f3cc8"
> SRC_URI[sha256sum] = "ab45900fa1a23e5d5badf3c0a55f26c17efe6e184efcf00b371433751fa761bc"
>
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH] oprofile: add AArch64 support
2013-01-16 15:52 ` Saul Wold
@ 2013-01-16 16:03 ` Marcin Juszkiewicz
0 siblings, 0 replies; 3+ messages in thread
From: Marcin Juszkiewicz @ 2013-01-16 16:03 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
...d-rmb-definition-for-AArch64-architecture.patch | 31 ++++++++++++++++++++++
meta/recipes-kernel/oprofile/oprofile_0.9.8.bb | 3 ++-
2 files changed, 33 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch
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 0000000..195bfb2
--- /dev/null
+++ b/meta/recipes-kernel/oprofile/oprofile/0001-Add-rmb-definition-for-AArch64-architecture.patch
@@ -0,0 +1,31 @@
+From 27edaef9c6d66dfc324630ef40cb27e78031eeeb Mon Sep 17 00:00:00 2001
+From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
+Date: Tue, 15 Jan 2013 07:37:33 +0100
+Subject: [PATCH] Add rmb() definition for AArch64 architecture
+
+Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
+
+Upstream-status: backport
+---
+ libperf_events/operf_utils.h | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/libperf_events/operf_utils.h b/libperf_events/operf_utils.h
+index 815d51d..2df00b7 100644
+--- a/libperf_events/operf_utils.h
++++ b/libperf_events/operf_utils.h
+@@ -148,6 +148,11 @@ void op_release_resources(void);
+ #define cpu_relax() asm volatile("":::"memory")
+ #endif
+
++#ifdef __aarch64__
++#define rmb() asm volatile("dmb ld" ::: "memory")
++#define cpu_relax() asm volatile("yield" ::: "memory")
++#endif
++
+ #ifdef __mips__
+ #include <asm/unistd.h>
+ #define rmb() asm volatile( \
+--
+1.8.0
+
diff --git a/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb b/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb
index 939c1ba..d283b5c 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
PR = "${INC_PR}.0"
-SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
+SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
+ file://0001-Add-rmb-definition-for-AArch64-architecture.patch"
SRC_URI[md5sum] = "6d127023af1dd1cf24e15411229f3cc8"
SRC_URI[sha256sum] = "ab45900fa1a23e5d5badf3c0a55f26c17efe6e184efcf00b371433751fa761bc"
--
1.8.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-16 16:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 15:49 [PATCH] oprofile: add AArch64 support Marcin Juszkiewicz
2013-01-16 15:52 ` Saul Wold
2013-01-16 16:03 ` Marcin Juszkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox