Files
poky/meta/recipes-kernel/lttng/lttng-modules/0004-Fix-dev_base_lock-removed-in-linux-6.9-rc1.patch
Bruce Ashfield acdb1bb14e lttng-modules: update to v2.13.12
We drop our previously backported patches for v6.8 kernels as they are
part of the 2.13.12 release of lttng and we add backports for v6.9+
kernels.

Bumping lttng-modules to version v2.13.12-7-g52eb2ee9, which comprises the following commits:

    52eb2ee9 Fix: dev_base_lock removed in linux 6.9-rc1
    175fe77c Fix: mm_compaction_migratepages changed in linux 6.9-rc1
    303434ab Fix: ASoC add component to set_bias_level events in linux 6.9-rc1
    88c4e0fe Fix: ASoC snd_doc_dapm on linux 6.9-rc1
    578ab207 Fix: build kvm probe on EL 8.4+
    057ad399 Fix: support ext4_journal_start on EL 8.4+
    3ca21738 Fix: correct RHEL range for kmem_cache_free define
    4ba4f0ec Version 2.13.12
    1124749b docs: Add supported versions and fix-backport policy
    c302cf1d docs: Add links to project resources
    d6b75831 Fix: Correct minimum version in jbd2 SLE kernel range
    9e6736d6 Fix: Handle recent SLE major version codes
    5d331562 Fix: build on sles15sp4
    f6800492 Compile fixes for RHEL 9.3 kernels
    d988f04a Fix: ext4_discard_preallocations changed in linux 6.8.0-rc3
    616c60b9 Fix: btrfs_get_extent flags and compress_type changed in linux 6.8.0-rc1
    8d195927 Fix: btrfs_chunk tracepoints changed in linux 6.8.0-rc1
    7e8d89d1 Fix: strlcpy removed in linux 6.8.0-rc1
    f4c1678d Fix: timer_start changed in linux 6.8.0-rc1
    60a1e809 Fix: sched_stat_runtime changed in linux 6.8.0-rc1

(From OE-Core rev: f8be1a87f1a7e7de714d19a6b3afe59e6f177e7d)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04 14:05:03 +01:00

58 lines
1.8 KiB
Diff

From 217bc2e4685050dddce9bdd2557b64f6b8c16622 Mon Sep 17 00:00:00 2001
From: Kienan Stewart <kstewart@efficios.com>
Date: Mon, 25 Mar 2024 10:53:46 -0400
Subject: [PATCH 4/4] Fix: dev_base_lock removed in linux 6.9-rc1
See upstream commit:
commit 1b3ef46cb7f2618cc0b507393220a69810f6da12
Author: Eric Dumazet <edumazet@google.com>
Date: Tue Feb 13 06:32:45 2024 +0000
net: remove dev_base_lock
dev_base_lock is not needed anymore, all remaining users also hold RTNL.
Upstream-Status: Backport [52eb2ee9 Fix: dev_base_lock removed in linux 6.9-rc1]
Change-Id: I6b07e6eed07fd398302ca14d23162ed24d74df15
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
---
src/lttng-statedump-impl.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Index: lttng-modules-2.13.12/src/lttng-statedump-impl.c
===================================================================
--- lttng-modules-2.13.12.orig/src/lttng-statedump-impl.c
+++ lttng-modules-2.13.12/src/lttng-statedump-impl.c
@@ -392,6 +392,20 @@ void lttng_enumerate_device(struct lttng
}
}
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,9,0))
+static
+int lttng_enumerate_network_ip_interface(struct lttng_kernel_session *session)
+{
+ struct net_device *dev;
+
+ rtnl_lock();
+ for_each_netdev(&init_net, dev)
+ lttng_enumerate_device(session, dev);
+ rtnl_unlock();
+
+ return 0;
+}
+#else
static
int lttng_enumerate_network_ip_interface(struct lttng_kernel_session *session)
{
@@ -404,6 +418,7 @@ int lttng_enumerate_network_ip_interface
return 0;
}
+#endif /* (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,9,0)) */
#else /* CONFIG_INET */
static inline
int lttng_enumerate_network_ip_interface(struct lttng_kernel_session *session)