diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-05-19 11:43:09 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-19 22:57:26 +0100 |
commit | ce755dac80938582591cdf04c4839923e1bb9fc7 (patch) | |
tree | 4ae5048b24c2f9eda5b308d7248d6b7372dfc6ca /meta/recipes-kernel/lttng/lttng-tools | |
parent | 282b57bae078cdfec3547224dea164d683f6c7fc (diff) | |
download | poky-ce755dac80938582591cdf04c4839923e1bb9fc7.tar.gz |
lttng-tools: upgrade to 2.12.0
Upgrade lttng-tools 2.11.2 -> 2.12.0:
* drop x32 patch, as it was merged upstream
* update ptest file mi-lttng-3.0.xsd -> mi-lttng-4.0.xsd
* add local patch to fix ptest build failure on musl
* License-Update: licenses were moved under LICENSES directory and changed in
upstream commit [1]
[1] https://github.com/lttng/lttng-tools/commit/ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a
(From OE-Core rev: 62357f16ecc8368cf8a92290e973633622cd6368)
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-tools')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools/0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch | 43 | ||||
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools/x32.patch | 36 |
2 files changed, 43 insertions, 36 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch new file mode 100644 index 0000000000..a150d648ab --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-tools/0001-tests-gen-ust-events-ns-tp.h-Fix-build-with-musl-lib.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From e5d94cf4882cc6516af52b794c6acb8e4d6469a3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ovidiu Panait <ovidiu.panait@windriver.com> | ||
3 | Date: Mon, 18 May 2020 16:39:26 +0300 | ||
4 | Subject: [PATCH] tests: gen-ust-events-ns/tp.h: Fix build with musl libc | ||
5 | |||
6 | Fix the following build error with musl libc: | ||
7 | In file included from ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:14, | ||
8 | from ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.c:10: | ||
9 | ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:17:10: error: unknown type name 'ino_t'; did you mean 'int8_t'? | ||
10 | 17 | TP_ARGS(ino_t, ns_ino), | ||
11 | | ^~~~~ | ||
12 | ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/tp.h:17:10: error: unknown type name 'ino_t'; did you mean 'int8_t'? | ||
13 | 17 | TP_ARGS(ino_t, ns_ino), | ||
14 | | ^~~~~ | ||
15 | ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/./tp.h:17:2: error: unknown type name 'ino_t'; did you mean 'int8_t'? | ||
16 | 17 | TP_ARGS(ino_t, ns_ino), | ||
17 | | ^~~~~~~ | ||
18 | ../../../../../lttng-tools-2.12.0/tests/utils/testapp/gen-ust-events-ns/./tp.h:17:2: error: unknown type name 'ino_t'; did you mean 'int8_t'? | ||
19 | 17 | TP_ARGS(ino_t, ns_ino), | ||
20 | | ^~~~~~~ | ||
21 | |||
22 | Upstream-Status: Submitted [https://github.com/lttng/lttng-tools/pull/161] | ||
23 | |||
24 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> | ||
25 | --- | ||
26 | tests/utils/testapp/gen-ust-events-ns/tp.h | 1 + | ||
27 | 1 file changed, 1 insertion(+) | ||
28 | |||
29 | diff --git a/tests/utils/testapp/gen-ust-events-ns/tp.h b/tests/utils/testapp/gen-ust-events-ns/tp.h | ||
30 | index 4dbfed5..e0ddb29 100644 | ||
31 | --- a/tests/utils/testapp/gen-ust-events-ns/tp.h | ||
32 | +++ b/tests/utils/testapp/gen-ust-events-ns/tp.h | ||
33 | @@ -11,6 +11,7 @@ | ||
34 | #if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | ||
35 | #define _TRACEPOINT_TP_H | ||
36 | |||
37 | +#include <sys/types.h> | ||
38 | #include <lttng/tracepoint.h> | ||
39 | |||
40 | TRACEPOINT_EVENT(tp, tptest, | ||
41 | -- | ||
42 | 2.17.1 | ||
43 | |||
diff --git a/meta/recipes-kernel/lttng/lttng-tools/x32.patch b/meta/recipes-kernel/lttng/lttng-tools/x32.patch deleted file mode 100644 index 42cebf94ac..0000000000 --- a/meta/recipes-kernel/lttng/lttng-tools/x32.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | Fix build for x32 | ||
2 | |||
3 | Signed-off-by: Christopher Larson <chris_larson@mentor.com> | ||
4 | |||
5 | Fix build error of src/common/utils.c for x32. | ||
6 | |||
7 | Upstream-Status: Submitted [https://github.com/lttng/lttng-tools/pull/150] | ||
8 | |||
9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
10 | |||
11 | diff --git a/src/bin/lttng/utils.c b/src/bin/lttng/utils.c | ||
12 | index 0e96ef0c..5c79c8c7 100644 | ||
13 | --- a/src/bin/lttng/utils.c | ||
14 | +++ b/src/bin/lttng/utils.c | ||
15 | @@ -158,7 +158,7 @@ unsigned int fls_u32(uint32_t x) | ||
16 | #define HAS_FLS_U32 | ||
17 | #endif | ||
18 | |||
19 | -#if defined(__x86_64) | ||
20 | +#if defined(__x86_64) && !defined(__ILP32__) | ||
21 | static inline | ||
22 | unsigned int fls_u64(uint64_t x) | ||
23 | { | ||
24 | diff --git a/src/common/utils.c b/src/common/utils.c | ||
25 | index 08139e5e..3c389981 100644 | ||
26 | --- a/src/common/utils.c | ||
27 | +++ b/src/common/utils.c | ||
28 | @@ -1223,7 +1223,7 @@ static inline unsigned int fls_u32(uint32_t x) | ||
29 | #define HAS_FLS_U32 | ||
30 | #endif | ||
31 | |||
32 | -#if defined(__x86_64) | ||
33 | +#if defined(__x86_64) && !defined(__ILP32__) | ||
34 | static inline | ||
35 | unsigned int fls_u64(uint64_t x) | ||
36 | { | ||