lttng-modules: Upgrade 2.13.9 -> 2.13.10
PATCH 1/2 lttng-modules: Upgrade 2.13.9 -> 2.13.10
Signed-off-by Richard Purdie <[email protected]>
---
...-vma-vm_flags-wrapper-functions-v6.3.patch | 82 -------------
...e-guid_t-and-uuid_le-types-and-respe.patch | 60 ---------
...ind_free_extent_ctl-to-allocator-tra.patch | 116 ------------------
...d-location-to-trace_consume_skb-v6.3.patch | 62 ----------
.../0009-Rename-genhd-wrapper-to-blkdev.patch | 76 ------------
...les_2.13.9.bb => lttng-modules_2.13.10.bb} | 7 +-
6 files changed, 1 insertion(+), 402 deletions(-)
delete mode 100644 meta/recipes-kernel/lttng/lttng-modules/0001-fix-mm-introduce-vma-vm_flags-wrapper-functions-v6.3.patch
delete mode 100644 meta/recipes-kernel/lttng/lttng-modules/0002-fix-uuid-Decouple-guid_t-and-uuid_le-types-and-respe.patch
delete mode 100644 meta/recipes-kernel/lttng/lttng-modules/0003-fix-btrfs-pass-find_free_extent_ctl-to-allocator-tra.patch
delete mode 100644 meta/recipes-kernel/lttng/lttng-modules/0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch
delete mode 100644 meta/recipes-kernel/lttng/lttng-modules/0009-Rename-genhd-wrapper-to-blkdev.patch
rename meta/recipes-kernel/lttng/{lttng-modules_2.13.9.bb => lttng-modules_2.13.10.bb} (75%)meta/recipes-kernel/lttng/lttng-modules/0001-fix-mm-introduce-vma-vm_flags-wrapper-functions-v6.3.patch deleted +0 -82
@@ -1,82 +0,0 @@ -From 939200ef160c95c8a9d71fd80c99f42a1de0a9f0 Mon Sep 17 00:00:00 2001 -From: Michael Jeanson <[email protected]> -Date: Tue, 7 Mar 2023 11:41:14 -0500 -Subject: [PATCH 1/4] fix: mm: introduce vma->vm_flags wrapper functions (v6.3) - -See upstream commit : - - commit bc292ab00f6c7a661a8a605c714e8a148f629ef6 - Author: Suren Baghdasaryan <[email protected]> - Date: Thu Jan 26 11:37:47 2023 -0800 - - mm: introduce vma->vm_flags wrapper functions - - vm_flags are among VMA attributes which affect decisions like VMA merging - and splitting. Therefore all vm_flags modifications are performed after - taking exclusive mmap_lock to prevent vm_flags updates racing with such - operations. Introduce modifier functions for vm_flags to be used whenever - flags are updated. This way we can better check and control correct - locking behavior during these updates. - -Upstream-Status: Backport - -Change-Id: I2cf662420d9d7748e5e310d3ea4bac98ba7d7f94 -Signed-off-by: Michael Jeanson <[email protected]> -Signed-off-by: Mathieu Desnoyers <[email protected]> ---- - include/wrapper/mm.h | 16 ++++++++++++++++ - src/lib/ringbuffer/ring_buffer_mmap.c | 4 +++- - 2 files changed, 19 insertions(+), 1 deletion(-) - -diff --git a/include/wrapper/mm.h b/include/wrapper/mm.h -index d3bdda66..61ac8127 100644 ---- a/include/wrapper/mm.h -+++ b/include/wrapper/mm.h -@@ -13,6 +13,22 @@ - - #include <lttng/kernel-version.h> - -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,3,0)) -+static inline -+void wrapper_vm_flags_set(struct vm_area_struct *vma, -+ vm_flags_t flags) -+{ -+ vm_flags_set(vma, flags); -+} -+#else -+static inline -+void wrapper_vm_flags_set(struct vm_area_struct *vma, -+ vm_flags_t flags) -+{ -+ vma->vm_flags |= flags; -+} -+#endif -+ - #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0) \ - || LTTNG_UBUNTU_KERNEL_RANGE(4,4,25,44, 4,5,0,0)) - -diff --git a/src/lib/ringbuffer/ring_buffer_mmap.c b/src/lib/ringbuffer/ring_buffer_mmap.c -index 25e2d8d5..d24b76a3 100644 ---- a/src/lib/ringbuffer/ring_buffer_mmap.c -+++ b/src/lib/ringbuffer/ring_buffer_mmap.c -@@ -17,6 +17,8 @@ - #include <ringbuffer/frontend.h> - #include <ringbuffer/vfs.h> - -+#include <wrapper/mm.h> -+ - /* - * fault() vm_op implementation for ring buffer file mapping. - */ -@@ -113,7 +115,7 @@ static int lib_ring_buffer_mmap_buf(struct lttng_kernel_ring_buffer *buf, - return -EINVAL; - - vma->vm_ops = &lib_ring_buffer_mmap_ops; -- vma->vm_flags |= VM_DONTEXPAND; -+ wrapper_vm_flags_set(vma, VM_DONTEXPAND); - vma->vm_private_data = buf; - - return 0; --- -2.34.1 -
meta/recipes-kernel/lttng/lttng-modules/0002-fix-uuid-Decouple-guid_t-and-uuid_le-types-and-respe.patch deleted +0 -60
60 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules/0003-fix-btrfs-pass-find_free_extent_ctl-to-allocator-tra.patch deleted +0 -116
116 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules/0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch deleted +0 -62
62 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules/0009-Rename-genhd-wrapper-to-blkdev.patch deleted +0 -76
76 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-modules_2.13.10.bb renamed from meta/recipes-kernel/lttng/lttng-modules_2.13.9.bb +1 -6
@@ -10,17 +10,12 @@ inherit module include lttng-platforms.inc SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \ - file://0009-Rename-genhd-wrapper-to-blkdev.patch \ - file://0001-fix-mm-introduce-vma-vm_flags-wrapper-functions-v6.3.patch \ - file://0002-fix-uuid-Decouple-guid_t-and-uuid_le-types-and-respe.patch \ - file://0003-fix-btrfs-pass-find_free_extent_ctl-to-allocator-tra.patch \ - file://0004-fix-net-add-location-to-trace_consume_skb-v6.3.patch \ " # Use :append here so that the patch is applied also when using devupstream SRC_URI:append = " file://0001-src-Kbuild-change-missing-CONFIG_TRACEPOINTS-to-warn.patch" -SRC_URI[sha256sum] = "bf808b113544287cfe837a6382887fa66354ef5cc8216460cebbef3d27dc3581" +SRC_URI[sha256sum] = "13abfb1ac870711f0d0adfa88e53b17deb2e3052173715a260a6ef14aa45b0a7" export INSTALL_MOD_DIR="kernel/lttng-modules"
Signature · 1 line
2.39.2
PATCH 2/2 lttng-tools: Upgrade 2.13.9 -> 2.13.10
Signed-off-by Richard Purdie <[email protected]>
---
...a4a793c81221a28f822d07135069456ea021.patch | 48 --------
.../lttng/lttng-tools/gcc13-ptest-fix.patch | 107 ------------------
...tools_2.13.9.bb => lttng-tools_2.13.10.bb} | 4 +-
3 files changed, 1 insertion(+), 158 deletions(-)
delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/40b2a4a793c81221a28f822d07135069456ea021.patch
delete mode 100644 meta/recipes-kernel/lttng/lttng-tools/gcc13-ptest-fix.patch
rename meta/recipes-kernel/lttng/{lttng-tools_2.13.9.bb => lttng-tools_2.13.10.bb} (97%)meta/recipes-kernel/lttng/lttng-tools/40b2a4a793c81221a28f822d07135069456ea021.patch deleted +0 -48
@@ -1,48 +0,0 @@ -From 40b2a4a793c81221a28f822d07135069456ea021 Mon Sep 17 00:00:00 2001 -From: Olivier Dion <[email protected]> -Date: Fri, 10 Mar 2023 13:17:46 -0500 -Subject: [PATCH] Tests: fix: parse-callback reports missing addr2line -MIME-Version: 1.0 -Content-Type: text/plain; charset=utf8 -Content-Transfer-Encoding: 8bit - -Upstream-Status: Backport - -addr2line from binutils is required for this script to work correctly. -However, it silently fails. Fix this by using `subprocess.run' with -`check=True' instead of `subprocess.getoutput'. That way, an exception -is raised if an error occurs. - -Fix the shebang by not assuming where python is installed while at it. - -Change-Id: I5157b3dbccf6bfbe08a6b6840b38f5db9010fe96 -Signed-off-by: Olivier Dion <[email protected]> -Signed-off-by: Jérémie Galarneau <[email protected]> ---- - tests/utils/parse-callstack.py | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/tests/utils/parse-callstack.py b/tests/utils/parse-callstack.py -index 3bfddd9ef..c3f0e2e9b 100755 ---- a/tests/utils/parse-callstack.py -+++ b/tests/utils/parse-callstack.py -@@ -1,4 +1,4 @@ --#!/usr/bin/python3 -+#!/usr/bin/env python3 - # - # Copyright (C) 2017 Francis Deslauriers <[email protected]> - # -@@ -24,7 +24,9 @@ def addr2line(executable, addr): - # Expand inlined functions - cmd += ['--addresses', addr] - -- addr2line_output = subprocess.getoutput(' '.join(cmd)) -+ status = subprocess.run(cmd, stdout=subprocess.PIPE, check=True) -+ -+ addr2line_output = status.stdout.decode("utf-8") - - # Omit the last 2 lines as the caller of main can not be determine - fcts = [addr2line_output.split()[-2]] --- -2.34.1 -
meta/recipes-kernel/lttng/lttng-tools/gcc13-ptest-fix.patch deleted +0 -107
107 lines not on this page · raw message
meta/recipes-kernel/lttng/lttng-tools_2.13.10.bb renamed from meta/recipes-kernel/lttng/lttng-tools_2.13.9.bb +1 -3
@@ -37,11 +37,9 @@ SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \ file://lttng-sessiond.service \ file://disable-tests.patch \ file://0001-compat-Define-off64_t-as-off_t-on-linux.patch \ - file://40b2a4a793c81221a28f822d07135069456ea021.patch \ - file://gcc13-ptest-fix.patch \ " -SRC_URI[sha256sum] = "8d94dc95b608cf70216b01203a3f8242b97a232db2e23421a2f43708da08f337" +SRC_URI[sha256sum] = "e5d1095ec1322565f38f149346f71967496c281eacc51ec5c77994b850e7d335" inherit autotools ptest pkgconfig useradd python3-dir manpages systemd
Signature · 1 line
2.39.2