From 2a56a141e09b1540875abb572229e5eaec68aef8 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Wed, 26 Oct 2011 21:21:43 -0300 Subject: oprofile: bump to version 0.9.7 and fixes * Bump to version 0.9.7 * Style fixes * Build fix for x86: i386 is expected, not some other random i?86 as arch Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- ...ile-0.9.7-001-avr32-enable-lookup_dcookie.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/oprofile/oprofile-0.9.7-001-avr32-enable-lookup_dcookie.patch (limited to 'package/oprofile/oprofile-0.9.7-001-avr32-enable-lookup_dcookie.patch') diff --git a/package/oprofile/oprofile-0.9.7-001-avr32-enable-lookup_dcookie.patch b/package/oprofile/oprofile-0.9.7-001-avr32-enable-lookup_dcookie.patch new file mode 100644 index 000000000..7c4138946 --- /dev/null +++ b/package/oprofile/oprofile-0.9.7-001-avr32-enable-lookup_dcookie.patch @@ -0,0 +1,24 @@ +Index: oprofile-0.9.4/daemon/opd_cookie.c +=================================================================== +--- oprofile-0.9.4.orig/daemon/opd_cookie.c 2008-07-25 16:00:17.000000000 +0200 ++++ oprofile-0.9.4/daemon/opd_cookie.c 2008-07-25 16:00:20.000000000 +0200 +@@ -78,6 +78,19 @@ + (unsigned long)(cookie & 0xffffffff), + (unsigned long)(cookie >> 32), buf, size); + } ++#elif (defined(__avr32__)) ++static inline int lookup_dcookie(cookie_t cookie, char * buf, size_t size) ++{ ++ /* On avr32, the first 64bit arg (cookie) is expected to be in ++ * r11(MSW)/r10(LSW) which normally hold arg 2 and arg 3. The second arg ++ * (buf) is then expected to be in r12 which normally holds the first ++ * arg. Third arg (size) is at the right position. ++ */ ++ return syscall(__NR_lookup_dcookie, buf, ++ (unsigned long)(cookie >> 32), ++ (unsigned long)(cookie & 0xffffffff), ++ size); ++} + #else + static inline int lookup_dcookie(cookie_t cookie, char * buf, size_t size) + { -- cgit v1.2.3