diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-08-05 22:37:21 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-08 13:41:21 +0100 |
commit | d26c9bd80d8ee5fd125a487435e5c976ea13916a (patch) | |
tree | aca37e7966dd3f882aa394fc9674c7b454e2edfa /meta/recipes-kernel/lttng/lttng-ust | |
parent | ab1e331a88f70c6e8902b5b6431b2259883e41c6 (diff) | |
download | openembedded-core-contrib-d26c9bd80d8ee5fd125a487435e5c976ea13916a.tar.gz |
lttng-ust: Update to 0.15
This address [YOCTO #1005] which was waiting for upstream updates
from the lttng and GDB teams.
(From OE-Core rev: 0d240f56ea0128c1228f7cfe1471039a7b602a88)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-ust')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-ust/uclibc-sched_getcpu.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-ust/uclibc-sched_getcpu.patch b/meta/recipes-kernel/lttng/lttng-ust/uclibc-sched_getcpu.patch deleted file mode 100644 index f4ea196c71..0000000000 --- a/meta/recipes-kernel/lttng/lttng-ust/uclibc-sched_getcpu.patch +++ /dev/null @@ -1,50 +0,0 @@ -uClibc does not have sched_getcpu() implemented. So we create a wrapper -to getcpu syscall when compiling for uclibc. - -So far execinfo.h does not exist on uclibc but it turns out to be that -this header is not needed even in eglibc case so it can be removed - -Signed-off-by: Khem Raj <raj.khem@gmail.com> - -Upstream-Status: Accepted - -Index: ust-0.12/libust/tracer.h -=================================================================== ---- ust-0.12.orig/libust/tracer.h -+++ ust-0.12/libust/tracer.h -@@ -342,14 +342,22 @@ static __inline__ void ltt_write_trace_h - header->start_freq = trace->start_freq; - header->freq_scale = trace->freq_scale; - } -- -+#ifdef __UCLIBC__ -+#define sched_getcpu(cpu, node, cache) syscall(__NR_getcpu, cpu, node, cache) -+#endif - #ifndef UST_VALGRIND - - static __inline__ int ust_get_cpu(void) - { - int cpu; - -+#ifdef __UCLIBC__ -+ int c, s; -+ s = syscall(__NR_getcpu, &c, NULL, NULL); -+ cpu = (s == -1) ? s : c; -+#else - cpu = sched_getcpu(); -+#endif - if (likely(cpu >= 0)) - return cpu; - /* -Index: ust-0.12/libustcomm/ustcomm.c -=================================================================== ---- ust-0.12.orig/libustcomm/ustcomm.c -+++ ust-0.12/libustcomm/ustcomm.c -@@ -31,7 +31,6 @@ - #include <stdio.h> - #include <stdlib.h> - #include <string.h> --#include <execinfo.h> - - #include "ustcomm.h" - #include "usterr.h" |