diff options
Diffstat (limited to 'meta-oe/recipes-support/gperftools')
7 files changed, 47 insertions, 39 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch index e582c0da6..2fd21c278 100644 --- a/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch +++ b/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ea9f64eb2cdf3be6c4dc65fa1472d854616e43ca Mon Sep 17 00:00:00 2001 | 1 | From aa0a63209af6813d87255ec3ab339f2dbbf27d6d Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 6 Mar 2017 13:38:46 -0800 | 3 | Date: Mon, 6 Mar 2017 13:38:46 -0800 |
4 | Subject: [PATCH] Support Atomic ops on clang | 4 | Subject: [PATCH] Support Atomic ops on clang |
@@ -9,25 +9,23 @@ gcc 4.2, here it depends on gcc 4.7 to enable | |||
9 | the atomics and fails for clang | 9 | the atomics and fails for clang |
10 | 10 | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | --- | 12 | |
13 | Upstream-Status: Pending | 13 | Upstream-Status: Pending |
14 | 14 | ||
15 | --- | ||
15 | src/base/atomicops.h | 2 +- | 16 | src/base/atomicops.h | 2 +- |
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
17 | 18 | ||
18 | diff --git a/src/base/atomicops.h b/src/base/atomicops.h | 19 | diff --git a/src/base/atomicops.h b/src/base/atomicops.h |
19 | index be038f3..f1a21ff 100644 | 20 | index dac95be..390733c 100644 |
20 | --- a/src/base/atomicops.h | 21 | --- a/src/base/atomicops.h |
21 | +++ b/src/base/atomicops.h | 22 | +++ b/src/base/atomicops.h |
22 | @@ -118,7 +118,7 @@ | 23 | @@ -124,7 +124,7 @@ |
23 | #include "base/atomicops-internals-linuxppc.h" | 24 | #include "base/atomicops-internals-linuxppc.h" |
24 | #elif defined(__GNUC__) && defined(__mips__) | 25 | #elif defined(__GNUC__) && defined(__mips__) |
25 | #include "base/atomicops-internals-mips.h" | 26 | #include "base/atomicops-internals-mips.h" |
26 | -#elif defined(__GNUC__) && GCC_VERSION >= 40700 | 27 | -#elif defined(__GNUC__) && GCC_VERSION >= 40700 |
27 | +#elif defined(__GNUC__) && GCC_VERSION >= 40700 || defined(__clang__) | 28 | +#elif defined(__GNUC__) && GCC_VERSION >= 40700 || defined(__clang__) |
28 | #include "base/atomicops-internals-gcc.h" | 29 | #include "base/atomicops-internals-gcc.h" |
29 | #else | 30 | #elif defined(__clang__) && CLANG_VERSION >= 30400 |
30 | #error You need to implement atomic operations for this architecture | 31 | #include "base/atomicops-internals-gcc.h" |
31 | -- | ||
32 | 2.12.0 | ||
33 | |||
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-Use-ucontext_t-instead-of-struct-ucontext.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-Use-ucontext_t-instead-of-struct-ucontext.patch index 5bd0b6fa4..b3033621b 100644 --- a/meta-oe/recipes-support/gperftools/gperftools/0001-Use-ucontext_t-instead-of-struct-ucontext.patch +++ b/meta-oe/recipes-support/gperftools/gperftools/0001-Use-ucontext_t-instead-of-struct-ucontext.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 12ac0dc6742e1bcdfaf1842186c9002f0820a5e8 Mon Sep 17 00:00:00 2001 | 1 | From 230cd84486145c5bb1d69d4c9a544e00adbcc9b5 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 1 Jul 2017 13:21:21 -0700 | 3 | Date: Sat, 1 Jul 2017 13:21:21 -0700 |
4 | Subject: [PATCH] Use ucontext_t instead of struct ucontext | 4 | Subject: [PATCH] Use ucontext_t instead of struct ucontext |
@@ -6,12 +6,13 @@ Subject: [PATCH] Use ucontext_t instead of struct ucontext | |||
6 | Newer glibc has dropped the ucontext tag from exposing | 6 | Newer glibc has dropped the ucontext tag from exposing |
7 | 7 | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
9 | |||
9 | --- | 10 | --- |
10 | src/stacktrace_powerpc-linux-inl.h | 3 +-- | 11 | src/stacktrace_powerpc-linux-inl.h | 3 +-- |
11 | 1 file changed, 1 insertion(+), 2 deletions(-) | 12 | 1 file changed, 1 insertion(+), 2 deletions(-) |
12 | 13 | ||
13 | diff --git a/src/stacktrace_powerpc-linux-inl.h b/src/stacktrace_powerpc-linux-inl.h | 14 | diff --git a/src/stacktrace_powerpc-linux-inl.h b/src/stacktrace_powerpc-linux-inl.h |
14 | index a9bf775..47ff2d7 100644 | 15 | index 3b3843b..a301a46 100644 |
15 | --- a/src/stacktrace_powerpc-linux-inl.h | 16 | --- a/src/stacktrace_powerpc-linux-inl.h |
16 | +++ b/src/stacktrace_powerpc-linux-inl.h | 17 | +++ b/src/stacktrace_powerpc-linux-inl.h |
17 | @@ -53,7 +53,6 @@ | 18 | @@ -53,7 +53,6 @@ |
@@ -31,6 +32,3 @@ index a9bf775..47ff2d7 100644 | |||
31 | // We don't care about the rest, since IP value is at 'uc' field.A | 32 | // We don't care about the rest, since IP value is at 'uc' field.A |
32 | } *sigframe = reinterpret_cast<rt_signal_frame_32*>(current); | 33 | } *sigframe = reinterpret_cast<rt_signal_frame_32*>(current); |
33 | result[n] = (void*) sigframe->uc.uc_mcontext.uc_regs->gregs[PT_NIP]; | 34 | result[n] = (void*) sigframe->uc.uc_mcontext.uc_regs->gregs[PT_NIP]; |
34 | -- | ||
35 | 2.13.2 | ||
36 | |||
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch index 99127e11a..ab3ceb964 100644 --- a/meta-oe/recipes-support/gperftools/gperftools/0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch +++ b/meta-oe/recipes-support/gperftools/gperftools/0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch | |||
@@ -1,19 +1,20 @@ | |||
1 | From b5961f17e9d7f2bc44da611b3e4b27c8a641fc72 Mon Sep 17 00:00:00 2001 | 1 | From 06605158852f9364519391fa11070ba5ec4303e9 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 2 Sep 2017 08:07:17 -0700 | 3 | Date: Sat, 2 Sep 2017 08:07:17 -0700 |
4 | Subject: [PATCH] disbale heap checkers and debug allocator on musl | 4 | Subject: [PATCH] disbale heap checkers and debug allocator on musl |
5 | 5 | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
7 | --- | 7 | |
8 | Upstream-Status: Pending | 8 | Upstream-Status: Pending |
9 | 9 | ||
10 | --- | ||
10 | configure.ac | 2 ++ | 11 | configure.ac | 2 ++ |
11 | 1 file changed, 2 insertions(+) | 12 | 1 file changed, 2 insertions(+) |
12 | 13 | ||
13 | Index: git/configure.ac | 14 | diff --git a/configure.ac b/configure.ac |
14 | =================================================================== | 15 | index 70b49a3..8154c5c 100644 |
15 | --- git.orig/configure.ac | 16 | --- a/configure.ac |
16 | +++ git/configure.ac | 17 | +++ b/configure.ac |
17 | @@ -51,6 +51,8 @@ case "$host" in | 18 | @@ -51,6 +51,8 @@ case "$host" in |
18 | *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;; | 19 | *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;; |
19 | *-freebsd*) default_enable_heap_checker=no;; | 20 | *-freebsd*) default_enable_heap_checker=no;; |
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch index 78621c7fe..0a72ff27c 100644 --- a/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch +++ b/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 157914941bd38f1a38bb6bd7294ca6c2bc1b8dcb Mon Sep 17 00:00:00 2001 | 1 | From 034e7da08c3fbffcba8cf8d4e24a71a16558db5a Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 16 Jul 2017 15:51:28 -0700 | 3 | Date: Sun, 16 Jul 2017 15:51:28 -0700 |
4 | Subject: [PATCH] fix build with musl libc | 4 | Subject: [PATCH] fix build with musl libc |
@@ -6,6 +6,7 @@ Subject: [PATCH] fix build with musl libc | |||
6 | Patch from https://github.com/gperftools/gperftools/pull/765/ | 6 | Patch from https://github.com/gperftools/gperftools/pull/765/ |
7 | 7 | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
9 | |||
9 | --- | 10 | --- |
10 | configure.ac | 1 + | 11 | configure.ac | 1 + |
11 | src/malloc_hook_mmap_linux.h | 8 ++++++-- | 12 | src/malloc_hook_mmap_linux.h | 8 ++++++-- |
@@ -56,6 +57,3 @@ index 79ac4e3..d444635 100755 | |||
56 | // libc's version: | 57 | // libc's version: |
57 | extern "C" void* __sbrk(ptrdiff_t increment); | 58 | extern "C" void* __sbrk(ptrdiff_t increment); |
58 | 59 | ||
59 | -- | ||
60 | 2.13.3 | ||
61 | |||
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-include-fcntl.h-for-loff_t-definition.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-include-fcntl.h-for-loff_t-definition.patch index 667008a5b..4c63e73b3 100644 --- a/meta-oe/recipes-support/gperftools/gperftools/0001-include-fcntl.h-for-loff_t-definition.patch +++ b/meta-oe/recipes-support/gperftools/gperftools/0001-include-fcntl.h-for-loff_t-definition.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 04ea8e001501931f4dbf20288aca78469617b08a Mon Sep 17 00:00:00 2001 | 1 | From a16a73f0819d26219ee83cd98eea82786d7c1755 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 16 Jul 2017 19:28:17 -0700 | 3 | Date: Sun, 16 Jul 2017 19:28:17 -0700 |
4 | Subject: [PATCH] include fcntl.h for loff_t definition | 4 | Subject: [PATCH] include fcntl.h for loff_t definition |
@@ -7,6 +7,7 @@ Fixes | |||
7 | linux_syscall_support.h:2641:26: error: 'loff_t' has not been declared | 7 | linux_syscall_support.h:2641:26: error: 'loff_t' has not been declared |
8 | 8 | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
10 | |||
10 | --- | 11 | --- |
11 | src/base/linux_syscall_support.h | 1 + | 12 | src/base/linux_syscall_support.h | 1 + |
12 | 1 file changed, 1 insertion(+) | 13 | 1 file changed, 1 insertion(+) |
@@ -23,6 +24,3 @@ index 85347a2..70431ca 100644 | |||
23 | 24 | ||
24 | #ifdef __mips__ | 25 | #ifdef __mips__ |
25 | /* Include definitions of the ABI currently in use. */ | 26 | /* Include definitions of the ABI currently in use. */ |
26 | -- | ||
27 | 2.13.3 | ||
28 | |||
diff --git a/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch b/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch index f2647404b..c3c578418 100644 --- a/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch +++ b/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch | |||
@@ -1,15 +1,22 @@ | |||
1 | Disable libunwind on aarch64 | 1 | From 564f800e3e24647c095f7a321bf3ebdccfbf762d Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 2 Sep 2017 12:02:04 -0700 | ||
4 | Subject: [PATCH] Disable libunwind on aarch64 | ||
2 | 5 | ||
3 | Fixes hangs when using libtcmalloc.so | 6 | Fixes hangs when using libtcmalloc.so |
4 | 7 | ||
5 | Upstream-Status: Pending | 8 | Upstream-Status: Pending |
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
7 | 10 | ||
8 | Index: git/configure.ac | 11 | --- |
9 | =================================================================== | 12 | configure.ac | 5 +++++ |
10 | --- git.orig/configure.ac | 13 | 1 file changed, 5 insertions(+) |
11 | +++ git/configure.ac | 14 | |
12 | @@ -69,6 +69,11 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [re | 15 | diff --git a/configure.ac b/configure.ac |
16 | index 8154c5c..063b260 100644 | ||
17 | --- a/configure.ac | ||
18 | +++ b/configure.ac | ||
19 | @@ -69,6 +69,11 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [return __PPC64__])], | ||
13 | [default_enable_libunwind=yes | 20 | [default_enable_libunwind=yes |
14 | default_tcmalloc_pagesize=8]) | 21 | default_tcmalloc_pagesize=8]) |
15 | 22 | ||
diff --git a/meta-oe/recipes-support/gperftools/gperftools/sgidef.patch b/meta-oe/recipes-support/gperftools/gperftools/sgidef.patch index 7e1a23bf6..10274a6de 100644 --- a/meta-oe/recipes-support/gperftools/gperftools/sgidef.patch +++ b/meta-oe/recipes-support/gperftools/gperftools/sgidef.patch | |||
@@ -1,11 +1,19 @@ | |||
1 | sgidef.h does not exist on musl and its not needed to compile | 1 | From 259b420444c52463795b4b582a2ab7511149eea7 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 16 Oct 2017 21:26:40 -0700 | ||
4 | Subject: [PATCH] sgidef.h does not exist on musl and its not needed to compile | ||
2 | 5 | ||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
4 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
5 | Index: git/src/base/linux_syscall_support.h | 8 | |
6 | =================================================================== | 9 | --- |
7 | --- git.orig/src/base/linux_syscall_support.h | 10 | src/base/linux_syscall_support.h | 2 +- |
8 | +++ git/src/base/linux_syscall_support.h | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
12 | |||
13 | diff --git a/src/base/linux_syscall_support.h b/src/base/linux_syscall_support.h | ||
14 | index 70431ca..b23ca59 100644 | ||
15 | --- a/src/base/linux_syscall_support.h | ||
16 | +++ b/src/base/linux_syscall_support.h | ||
9 | @@ -164,7 +164,7 @@ extern "C" { | 17 | @@ -164,7 +164,7 @@ extern "C" { |
10 | #include <endian.h> | 18 | #include <endian.h> |
11 | #include <fcntl.h> | 19 | #include <fcntl.h> |