diff options
Diffstat (limited to 'poky/meta/recipes-kernel')
18 files changed, 52 insertions, 727 deletions
diff --git a/poky/meta/recipes-kernel/linux-firmware/linux-firmware_20220209.bb b/poky/meta/recipes-kernel/linux-firmware/linux-firmware_20220310.bb index fe51892eb4..fa0f906db0 100644 --- a/poky/meta/recipes-kernel/linux-firmware/linux-firmware_20220209.bb +++ b/poky/meta/recipes-kernel/linux-firmware/linux-firmware_20220310.bb @@ -72,7 +72,7 @@ LICENSE = "\ LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \ file://LICENCE.adsp_sst;md5=615c45b91a5a4a9fe046d6ab9a2df728 \ file://LICENCE.agere;md5=af0133de6b4a9b2522defd5f188afd31 \ - file://LICENSE.amdgpu;md5=d357524f5099e2a3db3c1838921c593f \ + file://LICENSE.amdgpu;md5=44c1166d052226cb2d6c8d7400090203 \ file://LICENSE.amd-ucode;md5=3c5399dc9148d7f0e1f41e34b69cf14f \ file://LICENSE.amlogic_vdec;md5=dc44f59bf64a81643e500ad3f39a468a \ file://LICENCE.atheros_firmware;md5=30a14c7823beedac9fa39c64fdd01a13 \ @@ -132,7 +132,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.Abilis;md5=b5ee3f410780e56711ad48eadc22b8bc \ file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \ file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \ file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \ - file://WHENCE;md5=ed3d7426e4df06fbadcca24ebf00cc5f \ + file://WHENCE;md5=45a9c4a92d152e9495db81e1192f2bdc \ " # These are not common licenses, set NO_GENERIC_LICENSE for them @@ -205,7 +205,7 @@ PE = "1" SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/firmware/${BPN}-${PV}.tar.xz" -SRC_URI[sha256sum] = "e2e46fa618414952bbf2f6920cd3abcddbef45bfb7d1352994b4bfc35394d177" +SRC_URI[sha256sum] = "5938ee717b2023b48f6bfcf344b40ddc947e3e22c0bc36d4c3418f90fea68182" inherit allarch diff --git a/poky/meta/recipes-kernel/linux/kernel-devsrc.bb b/poky/meta/recipes-kernel/linux/kernel-devsrc.bb index cccf06e12c..8d360ed3f3 100644 --- a/poky/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/poky/meta/recipes-kernel/linux/kernel-devsrc.bb @@ -72,7 +72,9 @@ do_install() { ( cd ${B} - cp Module.symvers $kerneldir/build + if [ -s Module.symvers ]; then + cp Module.symvers $kerneldir/build + fi cp System.map* $kerneldir/build if [ -s Module.markers ]; then cp Module.markers $kerneldir/build diff --git a/poky/meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb b/poky/meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb index 8a8a7eabe9..a8b6aa203d 100644 --- a/poky/meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb +++ b/poky/meta/recipes-kernel/linux/linux-yocto-rt_5.10.bb @@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "e5b266bc6b15dc8852649b7d2a31395195dc7b3a" -SRCREV_meta ?= "b53e11ea46f4e78ff4cb48532a11e1dbad7939b1" +SRCREV_machine ?= "7f96d3fd60eea0ab38afdf07b3fc7c8c9f501802" +SRCREV_meta ?= "24ab54209a8822aad92afe2c51ea5b95f5175394" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.10.99" +LINUX_VERSION ?= "5.10.107" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" diff --git a/poky/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb b/poky/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb index 9b652a797b..8edafbcc4e 100644 --- a/poky/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb +++ b/poky/meta/recipes-kernel/linux/linux-yocto-rt_5.15.bb @@ -11,13 +11,13 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "c5b3006ccedbb8397aa58b667b981e0c2435b943" -SRCREV_meta ?= "2d38a472b21ae343707c8bd64ac68a9eaca066a0" +SRCREV_machine ?= "593f500eff5997a184c8d3836e1e26b199af994f" +SRCREV_meta ?= "fee71fc34f2e551ebfd7bf0996d82f3447787e7a" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.15;destsuffix=${KMETA}" -LINUX_VERSION ?= "5.15.22" +LINUX_VERSION ?= "5.15.30" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" diff --git a/poky/meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb b/poky/meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb index bf7662eed3..758260c3d8 100644 --- a/poky/meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb +++ b/poky/meta/recipes-kernel/linux/linux-yocto-tiny_5.10.bb @@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.10.99" +LINUX_VERSION ?= "5.10.107" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" @@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine:qemuarm ?= "9a8497a8761a22b3086cab63d18698024a69a410" -SRCREV_machine ?= "317635e1feaecfd8aa29bc94d8d03ba873190414" -SRCREV_meta ?= "b53e11ea46f4e78ff4cb48532a11e1dbad7939b1" +SRCREV_machine:qemuarm ?= "d47f1b40f2f77d0c810defd853c69eb39cb84bf5" +SRCREV_machine ?= "1ae0844c6a36151066744e43fd30db3a946bc21d" +SRCREV_meta ?= "24ab54209a8822aad92afe2c51ea5b95f5175394" PV = "${LINUX_VERSION}+git${SRCPV}" diff --git a/poky/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb b/poky/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb index 754dbc7d60..01c59a1ffc 100644 --- a/poky/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb +++ b/poky/meta/recipes-kernel/linux/linux-yocto-tiny_5.15.bb @@ -6,7 +6,7 @@ KCONFIG_MODE = "--allnoconfig" require recipes-kernel/linux/linux-yocto.inc -LINUX_VERSION ?= "5.15.22" +LINUX_VERSION ?= "5.15.30" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" @@ -15,9 +15,9 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine:qemuarm ?= "66d56b3bcc1391639a84e35be3ef00c5197089a8" -SRCREV_machine ?= "7f685244afb3acd13e94968312580b63d7296705" -SRCREV_meta ?= "2d38a472b21ae343707c8bd64ac68a9eaca066a0" +SRCREV_machine:qemuarm ?= "0c05aecb4a6a902d8b44b69f887dd991e091b234" +SRCREV_machine ?= "94c4403d43f8d4a4fa330d9342350b02426696d4" +SRCREV_meta ?= "fee71fc34f2e551ebfd7bf0996d82f3447787e7a" PV = "${LINUX_VERSION}+git${SRCPV}" diff --git a/poky/meta/recipes-kernel/linux/linux-yocto_5.10.bb b/poky/meta/recipes-kernel/linux/linux-yocto_5.10.bb index ecb2d03949..9c1bd26b36 100644 --- a/poky/meta/recipes-kernel/linux/linux-yocto_5.10.bb +++ b/poky/meta/recipes-kernel/linux/linux-yocto_5.10.bb @@ -13,17 +13,17 @@ KBRANCH:qemux86 ?= "v5.10/standard/base" KBRANCH:qemux86-64 ?= "v5.10/standard/base" KBRANCH:qemumips64 ?= "v5.10/standard/mti-malta64" -SRCREV_machine:qemuarm ?= "5c9de82973348b40bfdcecc0623f488d9443038e" -SRCREV_machine:qemuarm64 ?= "8c841836837414c6d07fa08ef8482162760fc27a" -SRCREV_machine:qemumips ?= "d8287fdfbe460acdd62cf57e351411c992101514" -SRCREV_machine:qemuppc ?= "f436ec6dd3942a87331abf39805e791460e499ef" -SRCREV_machine:qemuriscv64 ?= "c0b313d988a16b25c1ee730bfe7393c462ee8a5c" -SRCREV_machine:qemuriscv32 ?= "c0b313d988a16b25c1ee730bfe7393c462ee8a5c" -SRCREV_machine:qemux86 ?= "c0b313d988a16b25c1ee730bfe7393c462ee8a5c" -SRCREV_machine:qemux86-64 ?= "c0b313d988a16b25c1ee730bfe7393c462ee8a5c" -SRCREV_machine:qemumips64 ?= "ae7887fe8d4da06d2d0d0a5071d09155899de26c" -SRCREV_machine ?= "c0b313d988a16b25c1ee730bfe7393c462ee8a5c" -SRCREV_meta ?= "b53e11ea46f4e78ff4cb48532a11e1dbad7939b1" +SRCREV_machine:qemuarm ?= "2ef8231651bb6a4c79b307f59a794b92238546ec" +SRCREV_machine:qemuarm64 ?= "00684b441f15d202c5849eed164a9b3b94a5c1e8" +SRCREV_machine:qemumips ?= "661a4f517906253e074fe301d68ff1e6b6968e9f" +SRCREV_machine:qemuppc ?= "bff933cb7a11019c64e6034c48ab79453f75b99e" +SRCREV_machine:qemuriscv64 ?= "763c0dbc0458ebcb1d06afe2f324925f0f61bd27" +SRCREV_machine:qemuriscv32 ?= "763c0dbc0458ebcb1d06afe2f324925f0f61bd27" +SRCREV_machine:qemux86 ?= "763c0dbc0458ebcb1d06afe2f324925f0f61bd27" +SRCREV_machine:qemux86-64 ?= "763c0dbc0458ebcb1d06afe2f324925f0f61bd27" +SRCREV_machine:qemumips64 ?= "7a89b456542ff1fa0ab71fa4a2ae6f04281f3a2d" +SRCREV_machine ?= "763c0dbc0458ebcb1d06afe2f324925f0f61bd27" +SRCREV_meta ?= "24ab54209a8822aad92afe2c51ea5b95f5175394" # remap qemuarm to qemuarma15 for the 5.8 kernel # KMACHINE:qemuarm ?= "qemuarma15" @@ -32,7 +32,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.10;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -LINUX_VERSION ?= "5.10.99" +LINUX_VERSION ?= "5.10.107" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native" diff --git a/poky/meta/recipes-kernel/linux/linux-yocto_5.15.bb b/poky/meta/recipes-kernel/linux/linux-yocto_5.15.bb index 4b5e332c37..de71d1fe13 100644 --- a/poky/meta/recipes-kernel/linux/linux-yocto_5.15.bb +++ b/poky/meta/recipes-kernel/linux/linux-yocto_5.15.bb @@ -13,25 +13,24 @@ KBRANCH:qemux86 ?= "v5.15/standard/base" KBRANCH:qemux86-64 ?= "v5.15/standard/base" KBRANCH:qemumips64 ?= "v5.15/standard/mti-malta64" -SRCREV_machine:qemuarm ?= "6be018aeb5fd86986bc560e2e6ca59b774784bdb" -SRCREV_machine:qemuarm64 ?= "7f685244afb3acd13e94968312580b63d7296705" -SRCREV_machine:qemumips ?= "2b861aef3af1f8b09f1345a308e6e6fe213e1fef" -SRCREV_machine:qemuppc ?= "7f685244afb3acd13e94968312580b63d7296705" -SRCREV_machine:qemuriscv64 ?= "7f685244afb3acd13e94968312580b63d7296705" -SRCREV_machine:qemuriscv32 ?= "7f685244afb3acd13e94968312580b63d7296705" -SRCREV_machine:qemux86 ?= "7f685244afb3acd13e94968312580b63d7296705" -SRCREV_machine:qemux86-64 ?= "7f685244afb3acd13e94968312580b63d7296705" -SRCREV_machine:qemumips64 ?= "1d269d782d6b6effed2437ad6b11ae4f4e789259" -SRCREV_machine ?= "7f685244afb3acd13e94968312580b63d7296705" -SRCREV_meta ?= "2d38a472b21ae343707c8bd64ac68a9eaca066a0" +SRCREV_machine:qemuarm ?= "4632211e5b019b6337536305bfce0a5ffd3b570b" +SRCREV_machine:qemuarm64 ?= "c88fcdb0b3ca81f0149309ed7025cb28f709ed3d" +SRCREV_machine:qemumips ?= "ad268b2a1d6d1d6f1c9e9103cf4b1519477feb39" +SRCREV_machine:qemuppc ?= "688bb26b6f83a60ec39a0f20f31ec2bc37b49c6f" +SRCREV_machine:qemuriscv64 ?= "70cf8dde55448a804da825139fa12daf5a855047" +SRCREV_machine:qemuriscv32 ?= "70cf8dde55448a804da825139fa12daf5a855047" +SRCREV_machine:qemux86 ?= "70cf8dde55448a804da825139fa12daf5a855047" +SRCREV_machine:qemux86-64 ?= "70cf8dde55448a804da825139fa12daf5a855047" +SRCREV_machine:qemumips64 ?= "5e7bcff3dccd4749783b87d69ffd405ba71c9fda" +SRCREV_machine ?= "70cf8dde55448a804da825139fa12daf5a855047" +SRCREV_meta ?= "fee71fc34f2e551ebfd7bf0996d82f3447787e7a" # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll # get the <version>/base branch, which is pure upstream -stable, and the same # meta SRCREV as the linux-yocto-standard builds. Select your version using the # normal PREFERRED_VERSION settings. BBCLASSEXTEND = "devupstream:target" -DEFAULT_PREFERENCE:class-devupstream = "-1" -SRCREV_machine:class-devupstream ?= "0bf5b7cc9848b5494b2ca4eb1ca6e05865e8cdf1" +SRCREV_machine:class-devupstream ?= "0464ab17184b8fdec6676fabe76059b90e54e74f" PN:class-devupstream = "linux-yocto-upstream" KBRANCH:class-devupstream = "v5.15/base" @@ -42,7 +41,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.15;destsuffix=${KMETA}" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -LINUX_VERSION ?= "5.15.22" +LINUX_VERSION ?= "5.15.30" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native" @@ -66,3 +65,6 @@ KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}" KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}" + +INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel" + diff --git a/poky/meta/recipes-kernel/lttng/lttng-modules/0001-fix-block-remove-GENHD_FL_SUPPRESS_PARTITION_INFO-v5.patch b/poky/meta/recipes-kernel/lttng/lttng-modules/0001-fix-block-remove-GENHD_FL_SUPPRESS_PARTITION_INFO-v5.patch deleted file mode 100644 index 61c56c84ce..0000000000 --- a/poky/meta/recipes-kernel/lttng/lttng-modules/0001-fix-block-remove-GENHD_FL_SUPPRESS_PARTITION_INFO-v5.patch +++ /dev/null @@ -1,63 +0,0 @@ -From a88ee460b93c67ca756bd91ee9a8660813f65bd8 Mon Sep 17 00:00:00 2001 -From: Michael Jeanson <mjeanson@efficios.com> -Date: Sun, 23 Jan 2022 13:04:47 -0500 -Subject: [PATCH 1/7] fix: block: remove GENHD_FL_SUPPRESS_PARTITION_INFO - (v5.17) - -See upstream commit : - - commit 3b5149ac50970669ee0ddb9629ec77ffd5c0622d - Author: Christoph Hellwig <hch@lst.de> - Date: Mon Nov 22 14:06:21 2021 +0100 - - block: remove GENHD_FL_SUPPRESS_PARTITION_INFO - - This flag is not set directly anywhere and only inherited from - GENHD_FL_HIDDEN. Just check for GENHD_FL_HIDDEN instead. - - Link: https://lore.kernel.org/r/20211122130625.1136848-11-hch@lst.de - - -Upstream-Status: Backport [lttng-modules commit a88ee460b93c67ca756bd91ee9a8660813f65bd8] - -Change-Id: Ide92bdaaff7d16e96be23aaf00cebeaa601235b7 -Signed-off-by: Michael Jeanson <mjeanson@efficios.com> -Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> ---- - include/wrapper/genhd.h | 6 ++++++ - src/lttng-statedump-impl.c | 2 +- - 2 files changed, 7 insertions(+), 1 deletion(-) - -diff --git a/include/wrapper/genhd.h b/include/wrapper/genhd.h -index 68980388..3c6dbcbe 100644 ---- a/include/wrapper/genhd.h -+++ b/include/wrapper/genhd.h -@@ -14,6 +14,12 @@ - - #include <linux/genhd.h> - -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+#define LTTNG_GENHD_FL_HIDDEN GENHD_FL_HIDDEN -+#else -+#define LTTNG_GENHD_FL_HIDDEN GENHD_FL_SUPPRESS_PARTITION_INFO -+#endif -+ - #ifdef CONFIG_KALLSYMS_ALL - - #include <linux/kallsyms.h> -diff --git a/src/lttng-statedump-impl.c b/src/lttng-statedump-impl.c -index c5fca89d..4d7b2921 100644 ---- a/src/lttng-statedump-impl.c -+++ b/src/lttng-statedump-impl.c -@@ -334,7 +334,7 @@ int lttng_enumerate_block_devices(struct lttng_kernel_session *session) - * suppressed - */ - if (get_capacity(disk) == 0 || -- (disk->flags & GENHD_FL_SUPPRESS_PARTITION_INFO)) -+ (disk->flags & LTTNG_GENHD_FL_HIDDEN)) - continue; - - ret = lttng_statedump_each_block_device(session, disk); --- -2.19.1 - diff --git a/poky/meta/recipes-kernel/lttng/lttng-modules/0002-fix-block-remove-the-rq_disk-field-in-struct-request.patch b/poky/meta/recipes-kernel/lttng/lttng-modules/0002-fix-block-remove-the-rq_disk-field-in-struct-request.patch deleted file mode 100644 index 37a169a2e9..0000000000 --- a/poky/meta/recipes-kernel/lttng/lttng-modules/0002-fix-block-remove-the-rq_disk-field-in-struct-request.patch +++ /dev/null @@ -1,157 +0,0 @@ -From 4b1945d3c055de4b49e310f799e6f92c57546349 Mon Sep 17 00:00:00 2001 -From: Michael Jeanson <mjeanson@efficios.com> -Date: Sun, 23 Jan 2022 13:11:47 -0500 -Subject: [PATCH 2/7] fix: block: remove the ->rq_disk field in struct request - (v5.17) - -See upstream commit : - - commit f3fa33acca9f0058157214800f68b10d8e71ab7a - Author: Christoph Hellwig <hch@lst.de> - Date: Fri Nov 26 13:18:00 2021 +0100 - - block: remove the ->rq_disk field in struct request - - Just use the disk attached to the request_queue instead. - - Link: https://lore.kernel.org/r/20211126121802.2090656-4-hch@lst.de - -Upstream-Status: Backport [lttng-modules commit 4b1945d3c055de4b49e310f799e6f92c57546349] - -Change-Id: I24263be519d1b51f4b00bd95f14a9aeb8457889a -Signed-off-by: Michael Jeanson <mjeanson@efficios.com> -Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> ---- - include/instrumentation/events/block.h | 95 ++++++++++++++++++++++++-- - 1 file changed, 91 insertions(+), 4 deletions(-) - -diff --git a/include/instrumentation/events/block.h b/include/instrumentation/events/block.h -index 6782c36f..3e1104d7 100644 ---- a/include/instrumentation/events/block.h -+++ b/include/instrumentation/events/block.h -@@ -310,7 +310,31 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq_with_error, block_rq_abort, - ) - #endif - --#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+/** -+ * block_rq_requeue - place block IO request back on a queue -+ * @rq: block IO operation request -+ * -+ * The block operation request @rq is being placed back into queue -+ * @q. For some reason the request was not completed and needs to be -+ * put back in the queue. -+ */ -+LTTNG_TRACEPOINT_EVENT(block_rq_requeue, -+ -+ TP_PROTO(struct request *rq), -+ -+ TP_ARGS(rq), -+ -+ TP_FIELDS( -+ ctf_integer(dev_t, dev, -+ rq->q->disk ? disk_devt(rq->q->disk) : 0) -+ ctf_integer(sector_t, sector, blk_rq_trace_sector(rq)) -+ ctf_integer(unsigned int, nr_sector, blk_rq_trace_nr_sectors(rq)) -+ blk_rwbs_ctf_integer(unsigned int, rwbs, -+ lttng_req_op(rq), lttng_req_rw(rq), blk_rq_bytes(rq)) -+ ) -+) -+#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) - /** - * block_rq_requeue - place block IO request back on a queue - * @rq: block IO operation request -@@ -380,7 +404,24 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq_with_error, block_rq_requeue, - * do for the request. If @rq->bio is non-NULL then there is - * additional work required to complete the request. - */ --#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,16,0)) -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+LTTNG_TRACEPOINT_EVENT(block_rq_complete, -+ -+ TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes), -+ -+ TP_ARGS(rq, error, nr_bytes), -+ -+ TP_FIELDS( -+ ctf_integer(dev_t, dev, -+ rq->q->disk ? disk_devt(rq->q->disk) : 0) -+ ctf_integer(sector_t, sector, blk_rq_pos(rq)) -+ ctf_integer(unsigned int, nr_sector, nr_bytes >> 9) -+ ctf_integer(int, error, blk_status_to_errno(error)) -+ blk_rwbs_ctf_integer(unsigned int, rwbs, -+ lttng_req_op(rq), lttng_req_rw(rq), nr_bytes) -+ ) -+) -+#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,16,0)) - LTTNG_TRACEPOINT_EVENT(block_rq_complete, - - TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes), -@@ -519,7 +560,26 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq_with_error, block_rq_complete, - - #endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,15,0)) */ - --#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+LTTNG_TRACEPOINT_EVENT_CLASS(block_rq, -+ -+ TP_PROTO(struct request *rq), -+ -+ TP_ARGS(rq), -+ -+ TP_FIELDS( -+ ctf_integer(dev_t, dev, -+ rq->q->disk ? disk_devt(rq->q->disk) : 0) -+ ctf_integer(sector_t, sector, blk_rq_trace_sector(rq)) -+ ctf_integer(unsigned int, nr_sector, blk_rq_trace_nr_sectors(rq)) -+ ctf_integer(unsigned int, bytes, blk_rq_bytes(rq)) -+ ctf_integer(pid_t, tid, current->pid) -+ blk_rwbs_ctf_integer(unsigned int, rwbs, -+ lttng_req_op(rq), lttng_req_rw(rq), blk_rq_bytes(rq)) -+ ctf_array_text(char, comm, current->comm, TASK_COMM_LEN) -+ ) -+) -+#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) - LTTNG_TRACEPOINT_EVENT_CLASS(block_rq, - - TP_PROTO(struct request *rq), -@@ -1513,7 +1573,34 @@ LTTNG_TRACEPOINT_EVENT(block_bio_remap, - ) - #endif - --#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+/** -+ * block_rq_remap - map request for a block operation request -+ * @rq: block IO operation request -+ * @dev: device for the operation -+ * @from: original sector for the operation -+ * -+ * The block operation request @rq in @q has been remapped. The block -+ * operation request @rq holds the current information and @from hold -+ * the original sector. -+ */ -+LTTNG_TRACEPOINT_EVENT(block_rq_remap, -+ -+ TP_PROTO(struct request *rq, dev_t dev, sector_t from), -+ -+ TP_ARGS(rq, dev, from), -+ -+ TP_FIELDS( -+ ctf_integer(dev_t, dev, disk_devt(rq->q->disk)) -+ ctf_integer(sector_t, sector, blk_rq_pos(rq)) -+ ctf_integer(unsigned int, nr_sector, blk_rq_sectors(rq)) -+ ctf_integer(dev_t, old_dev, dev) -+ ctf_integer(sector_t, old_sector, from) -+ blk_rwbs_ctf_integer(unsigned int, rwbs, -+ lttng_req_op(rq), lttng_req_rw(rq), blk_rq_bytes(rq)) -+ ) -+) -+#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) - /** - * block_rq_remap - map request for a block operation request - * @rq: block IO operation request --- -2.19.1 - diff --git a/poky/meta/recipes-kernel/lttng/lttng-modules/0003-fix-mm-compaction-fix-the-migration-stats-in-trace_m.patch b/poky/meta/recipes-kernel/lttng/lttng-modules/0003-fix-mm-compaction-fix-the-migration-stats-in-trace_m.patch deleted file mode 100644 index 522753be28..0000000000 --- a/poky/meta/recipes-kernel/lttng/lttng-modules/0003-fix-mm-compaction-fix-the-migration-stats-in-trace_m.patch +++ /dev/null @@ -1,61 +0,0 @@ -From afc4fe8905620a3eb14a5ed16146dac1db0f8111 Mon Sep 17 00:00:00 2001 -From: Michael Jeanson <mjeanson@efficios.com> -Date: Sun, 23 Jan 2022 13:26:17 -0500 -Subject: [PATCH 3/7] fix: mm: compaction: fix the migration stats in - trace_mm_compaction_migratepages() (v5.17) - -See upstream commit : - - commit 84b328aa81216e08804d8875d63f26bda1298788 - Author: Baolin Wang <baolin.wang@linux.alibaba.com> - Date: Fri Jan 14 14:08:40 2022 -0800 - - mm: compaction: fix the migration stats in trace_mm_compaction_migratepages() - - Now the migrate_pages() has changed to return the number of {normal - page, THP, hugetlb} instead, thus we should not use the return value to - calculate the number of pages migrated successfully. Instead we can - just use the 'nr_succeeded' which indicates the number of normal pages - migrated successfully to calculate the non-migrated pages in - trace_mm_compaction_migratepages(). - - Link: https://lkml.kernel.org/r/b4225251c4bec068dcd90d275ab7de88a39e2bd7.1636275127.git.baolin.wang@linux.alibaba.com - -Upstream-Status: Backport [lttng-modules commit afc4fe8905620a3eb14a5ed16146dac1db0f8111] - -Change-Id: Ib8e8f2a16a273f16cd73fe63afbbfc25c0a2540c -Signed-off-by: Michael Jeanson <mjeanson@efficios.com> -Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> ---- - include/instrumentation/events/compaction.h | 15 ++++++++++++++- - 1 file changed, 14 insertions(+), 1 deletion(-) - -diff --git a/include/instrumentation/events/compaction.h b/include/instrumentation/events/compaction.h -index 3cc25537..340e41f5 100644 ---- a/include/instrumentation/events/compaction.h -+++ b/include/instrumentation/events/compaction.h -@@ -97,7 +97,20 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(compaction_isolate_template, - - #endif /* #else #if LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,0,0) */ - --#if LTTNG_KERNEL_RANGE(3,12,30, 3,13,0) || \ -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+LTTNG_TRACEPOINT_EVENT(mm_compaction_migratepages, -+ -+ TP_PROTO(unsigned long nr_all, -+ unsigned int nr_succeeded), -+ -+ TP_ARGS(nr_all, nr_succeeded), -+ -+ TP_FIELDS( -+ ctf_integer(unsigned long, nr_migrated, nr_succeeded) -+ ctf_integer(unsigned long, nr_failed, nr_all - nr_succeeded) -+ ) -+) -+#elif LTTNG_KERNEL_RANGE(3,12,30, 3,13,0) || \ - LTTNG_KERNEL_RANGE(3,14,25, 3,15,0) || \ - (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,16,0)) - LTTNG_TRACEPOINT_EVENT_CODE_MAP(mm_compaction_migratepages, --- -2.19.1 - diff --git a/poky/meta/recipes-kernel/lttng/lttng-modules/0004-fix-btrfs-pass-fs_info-to-trace_btrfs_transaction_co.patch b/poky/meta/recipes-kernel/lttng/lttng-modules/0004-fix-btrfs-pass-fs_info-to-trace_btrfs_transaction_co.patch deleted file mode 100644 index f33d15f900..0000000000 --- a/poky/meta/recipes-kernel/lttng/lttng-modules/0004-fix-btrfs-pass-fs_info-to-trace_btrfs_transaction_co.patch +++ /dev/null @@ -1,103 +0,0 @@ -From c8f96e7716404549b19b9a774f5d9987325608bc Mon Sep 17 00:00:00 2001 -From: Michael Jeanson <mjeanson@efficios.com> -Date: Wed, 26 Jan 2022 14:37:52 -0500 -Subject: [PATCH 4/7] fix: btrfs: pass fs_info to - trace_btrfs_transaction_commit (v5.17) - -See upstream commit : - - commit 2e4e97abac4c95f8b87b2912ea013f7836a6f10b - Author: Josef Bacik <josef@toxicpanda.com> - Date: Fri Nov 5 16:45:29 2021 -0400 - - btrfs: pass fs_info to trace_btrfs_transaction_commit - - The root on the trans->root can be anything, and generally we're - committing from the transaction kthread so it's usually the tree_root. - Change this to just take an fs_info, and to maintain compatibility - simply put the ROOT_TREE_OBJECTID as the root objectid for the - tracepoint. This will allow use to remove trans->root. - - -Upstream-Status: Backport [lttng-modules commit c8f96e7716404549b19b9a774f5d9987325608bc] - -Change-Id: Ie5a4804330edabffac0714fcb9c25b8c8599e424 -Signed-off-by: Michael Jeanson <mjeanson@efficios.com> -Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> ---- - include/instrumentation/events/btrfs.h | 44 ++++++++++++++++++-------- - 1 file changed, 31 insertions(+), 13 deletions(-) - -diff --git a/include/instrumentation/events/btrfs.h b/include/instrumentation/events/btrfs.h -index 0a0e085a..785f16ac 100644 ---- a/include/instrumentation/events/btrfs.h -+++ b/include/instrumentation/events/btrfs.h -@@ -43,7 +43,19 @@ struct extent_state; - #define lttng_fs_info_fsid fs_info->fsid - #endif - --#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \ -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit, -+ -+ TP_PROTO(const struct btrfs_fs_info *fs_info), -+ -+ TP_ARGS(fs_info), -+ -+ TP_FIELDS( -+ ctf_integer(u64, generation, fs_info->generation) -+ ctf_integer(u64, root_objectid, BTRFS_ROOT_TREE_OBJECTID) -+ ) -+) -+#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \ - LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \ - LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \ - LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \ -@@ -59,7 +71,25 @@ LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit, - ctf_integer(u64, root_objectid, root->root_key.objectid) - ) - ) -+#else -+LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit, -+ -+ TP_PROTO(struct btrfs_root *root), -+ -+ TP_ARGS(root), - -+ TP_FIELDS( -+ ctf_integer(u64, generation, root->fs_info->generation) -+ ctf_integer(u64, root_objectid, root->root_key.objectid) -+ ) -+) -+#endif -+ -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0) || \ -+ LTTNG_SLE_KERNEL_RANGE(4,4,73,5,0,0, 4,4,73,6,0,0) || \ -+ LTTNG_SLE_KERNEL_RANGE(4,4,82,6,0,0, 4,4,82,7,0,0) || \ -+ LTTNG_SLE_KERNEL_RANGE(4,4,92,6,0,0, 4,4,92,7,0,0) || \ -+ LTTNG_SLE_KERNEL_RANGE(4,4,103,6,0,0, 4,5,0,0,0,0)) - LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__inode, - - TP_PROTO(const struct inode *inode), -@@ -99,18 +129,6 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode, btrfs_inode_evict, - TP_ARGS(inode) - ) - #else --LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit, -- -- TP_PROTO(struct btrfs_root *root), -- -- TP_ARGS(root), -- -- TP_FIELDS( -- ctf_integer(u64, generation, root->fs_info->generation) -- ctf_integer(u64, root_objectid, root->root_key.objectid) -- ) --) -- - LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__inode, - - TP_PROTO(struct inode *inode), --- -2.19.1 - diff --git a/poky/meta/recipes-kernel/lttng/lttng-modules/0005-fix-random-rather-than-entropy_store-abstraction-use.patch b/poky/meta/recipes-kernel/lttng/lttng-modules/0005-fix-random-rather-than-entropy_store-abstraction-use.patch deleted file mode 100644 index 9159e62119..0000000000 --- a/poky/meta/recipes-kernel/lttng/lttng-modules/0005-fix-random-rather-than-entropy_store-abstraction-use.patch +++ /dev/null @@ -1,147 +0,0 @@ -From 98b7729a776bc5babb39345eeeba3cd1f60d8c9a Mon Sep 17 00:00:00 2001 -From: Michael Jeanson <mjeanson@efficios.com> -Date: Wed, 26 Jan 2022 14:53:41 -0500 -Subject: [PATCH 5/7] fix: random: rather than entropy_store abstraction, use - global (v5.17) - -See upstream commit : - - commit 90ed1e67e896cc8040a523f8428fc02f9b164394 - Author: Jason A. Donenfeld <Jason@zx2c4.com> - Date: Wed Jan 12 17:18:08 2022 +0100 - - random: rather than entropy_store abstraction, use global - - Originally, the RNG used several pools, so having things abstracted out - over a generic entropy_store object made sense. These days, there's only - one input pool, and then an uneven mix of usage via the abstraction and - usage via &input_pool. Rather than this uneasy mixture, just get rid of - the abstraction entirely and have things always use the global. This - simplifies the code and makes reading it a bit easier. - -Upstream-Status: Backport [lttng-modules commit 98b7729a776bc5babb39345eeeba3cd1f60d8c9a] - -Change-Id: I1a2a14d7b6e69a047804e1e91e00fe002f757431 -Signed-off-by: Michael Jeanson <mjeanson@efficios.com> -Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> ---- - include/instrumentation/events/random.h | 81 ++++++++++++++++++++++++- - 1 file changed, 80 insertions(+), 1 deletion(-) - -diff --git a/include/instrumentation/events/random.h b/include/instrumentation/events/random.h -index ed05d26a..8cc88adb 100644 ---- a/include/instrumentation/events/random.h -+++ b/include/instrumentation/events/random.h -@@ -8,6 +8,36 @@ - #include <lttng/tracepoint-event.h> - #include <linux/writeback.h> - -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+LTTNG_TRACEPOINT_EVENT_CLASS(random__mix_pool_bytes, -+ TP_PROTO(int bytes, unsigned long IP), -+ -+ TP_ARGS(bytes, IP), -+ -+ TP_FIELDS( -+ ctf_integer(int, bytes, bytes) -+ ctf_integer_hex(unsigned long, IP, IP) -+ ) -+) -+ -+LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(random__mix_pool_bytes, mix_pool_bytes, -+ -+ random_mix_pool_bytes, -+ -+ TP_PROTO(int bytes, unsigned long IP), -+ -+ TP_ARGS(bytes, IP) -+) -+ -+LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(random__mix_pool_bytes, mix_pool_bytes_nolock, -+ -+ random_mix_pool_bytes_nolock, -+ -+ TP_PROTO(int bytes, unsigned long IP), -+ -+ TP_ARGS(bytes, IP) -+) -+#else - LTTNG_TRACEPOINT_EVENT_CLASS(random__mix_pool_bytes, - TP_PROTO(const char *pool_name, int bytes, unsigned long IP), - -@@ -37,8 +67,24 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(random__mix_pool_bytes, mix_pool_bytes_noloc - - TP_ARGS(pool_name, bytes, IP) - ) -+#endif - --#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0)) -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+LTTNG_TRACEPOINT_EVENT_MAP(credit_entropy_bits, -+ -+ random_credit_entropy_bits, -+ -+ TP_PROTO(int bits, int entropy_count, unsigned long IP), -+ -+ TP_ARGS(bits, entropy_count, IP), -+ -+ TP_FIELDS( -+ ctf_integer(int, bits, bits) -+ ctf_integer(int, entropy_count, entropy_count) -+ ctf_integer_hex(unsigned long, IP, IP) -+ ) -+) -+#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0)) - LTTNG_TRACEPOINT_EVENT_MAP(credit_entropy_bits, - - random_credit_entropy_bits, -@@ -89,6 +135,38 @@ LTTNG_TRACEPOINT_EVENT_MAP(get_random_bytes, - ) - ) - -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+LTTNG_TRACEPOINT_EVENT_CLASS(random__extract_entropy, -+ TP_PROTO(int nbytes, int entropy_count, unsigned long IP), -+ -+ TP_ARGS(nbytes, entropy_count, IP), -+ -+ TP_FIELDS( -+ ctf_integer(int, nbytes, nbytes) -+ ctf_integer(int, entropy_count, entropy_count) -+ ctf_integer_hex(unsigned long, IP, IP) -+ ) -+) -+ -+ -+LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(random__extract_entropy, extract_entropy, -+ -+ random_extract_entropy, -+ -+ TP_PROTO(int nbytes, int entropy_count, unsigned long IP), -+ -+ TP_ARGS(nbytes, entropy_count, IP) -+) -+ -+LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(random__extract_entropy, extract_entropy_user, -+ -+ random_extract_entropy_user, -+ -+ TP_PROTO(int nbytes, int entropy_count, unsigned long IP), -+ -+ TP_ARGS(nbytes, entropy_count, IP) -+) -+#else - LTTNG_TRACEPOINT_EVENT_CLASS(random__extract_entropy, - TP_PROTO(const char *pool_name, int nbytes, int entropy_count, - unsigned long IP), -@@ -123,6 +201,7 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(random__extract_entropy, extract_entropy_use - - TP_ARGS(pool_name, nbytes, entropy_count, IP) - ) -+#endif - - - --- -2.19.1 - diff --git a/poky/meta/recipes-kernel/lttng/lttng-modules/0006-fix-net-skb-introduce-kfree_skb_reason-v5.17.patch b/poky/meta/recipes-kernel/lttng/lttng-modules/0006-fix-net-skb-introduce-kfree_skb_reason-v5.17.patch deleted file mode 100644 index abf74e8441..0000000000 --- a/poky/meta/recipes-kernel/lttng/lttng-modules/0006-fix-net-skb-introduce-kfree_skb_reason-v5.17.patch +++ /dev/null @@ -1,88 +0,0 @@ -From 6e9d0d578fdf90901507dd9f9929d0e6fcdd3211 Mon Sep 17 00:00:00 2001 -From: Michael Jeanson <mjeanson@efficios.com> -Date: Wed, 26 Jan 2022 14:49:11 -0500 -Subject: [PATCH 6/7] fix: net: skb: introduce kfree_skb_reason() (v5.17) - -See upstream commit : - - commit c504e5c2f9648a1e5c2be01e8c3f59d394192bd3 - Author: Menglong Dong <imagedong@tencent.com> - Date: Sun Jan 9 14:36:26 2022 +0800 - - net: skb: introduce kfree_skb_reason() - - Introduce the interface kfree_skb_reason(), which is able to pass - the reason why the skb is dropped to 'kfree_skb' tracepoint. - - Add the 'reason' field to 'trace_kfree_skb', therefor user can get - more detail information about abnormal skb with 'drop_monitor' or - eBPF. - - All drop reasons are defined in the enum 'skb_drop_reason', and - they will be print as string in 'kfree_skb' tracepoint in format - of 'reason: XXX'. - - ( Maybe the reasons should be defined in a uapi header file, so that - user space can use them? ) - -Upstream-Status: Backport [lttng-modules commit 6e9d0d578fdf90901507dd9f9929d0e6fcdd3211] - -Change-Id: I6766678a288da959498a4736fc3f95bf239c3e94 -Signed-off-by: Michael Jeanson <mjeanson@efficios.com> -Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> ---- - include/instrumentation/events/skb.h | 31 ++++++++++++++++++++++++++++ - 1 file changed, 31 insertions(+) - -diff --git a/include/instrumentation/events/skb.h b/include/instrumentation/events/skb.h -index d6579363..c6d7095d 100644 ---- a/include/instrumentation/events/skb.h -+++ b/include/instrumentation/events/skb.h -@@ -13,6 +13,36 @@ - /* - * Tracepoint for free an sk_buff: - */ -+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0)) -+LTTNG_TRACEPOINT_ENUM(skb_drop_reason, -+ TP_ENUM_VALUES( -+ ctf_enum_value("NOT_SPECIFIED", SKB_DROP_REASON_NOT_SPECIFIED) -+ ctf_enum_value("NO_SOCKET", SKB_DROP_REASON_NO_SOCKET) -+ ctf_enum_value("PKT_TOO_SMALL", SKB_DROP_REASON_PKT_TOO_SMALL) -+ ctf_enum_value("TCP_CSUM", SKB_DROP_REASON_TCP_CSUM) -+ ctf_enum_value("TCP_FILTER", SKB_DROP_REASON_TCP_FILTER) -+ ctf_enum_value("UDP_CSUM", SKB_DROP_REASON_UDP_CSUM) -+ ctf_enum_value("MAX", SKB_DROP_REASON_MAX) -+ ) -+) -+ -+LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb, -+ -+ skb_kfree, -+ -+ TP_PROTO(struct sk_buff *skb, void *location, -+ enum skb_drop_reason reason), -+ -+ TP_ARGS(skb, location, reason), -+ -+ TP_FIELDS( -+ ctf_integer_hex(void *, skbaddr, skb) -+ ctf_integer_hex(void *, location, location) -+ ctf_integer_network(unsigned short, protocol, skb->protocol) -+ ctf_enum(skb_drop_reason, uint8_t, reason, reason) -+ ) -+) -+#else - LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb, - - skb_kfree, -@@ -27,6 +57,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb, - ctf_integer_network(unsigned short, protocol, skb->protocol) - ) - ) -+#endif - - LTTNG_TRACEPOINT_EVENT_MAP(consume_skb, - --- -2.19.1 - diff --git a/poky/meta/recipes-kernel/lttng/lttng-modules/0007-fix-net-socket-rename-SKB_DROP_REASON_SOCKET_FILTER-.patch b/poky/meta/recipes-kernel/lttng/lttng-modules/0007-fix-net-socket-rename-SKB_DROP_REASON_SOCKET_FILTER-.patch deleted file mode 100644 index d1d8728027..0000000000 --- a/poky/meta/recipes-kernel/lttng/lttng-modules/0007-fix-net-socket-rename-SKB_DROP_REASON_SOCKET_FILTER-.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 7584cfc04914cb0842a986e9808686858b9c8630 Mon Sep 17 00:00:00 2001 -From: Michael Jeanson <mjeanson@efficios.com> -Date: Mon, 31 Jan 2022 10:47:53 -0500 -Subject: [PATCH 7/7] fix: net: socket: rename SKB_DROP_REASON_SOCKET_FILTER - (v5.17) - -No version check needed since this change is between two RCs, see -upstream commit : - - commit 364df53c081d93fcfd6b91085ff2650c7f17b3c7 - Author: Menglong Dong <imagedong@tencent.com> - Date: Thu Jan 27 17:13:01 2022 +0800 - - net: socket: rename SKB_DROP_REASON_SOCKET_FILTER - - Rename SKB_DROP_REASON_SOCKET_FILTER, which is used - as the reason of skb drop out of socket filter before - it's part of a released kernel. It will be used for - more protocols than just TCP in future series. - - Link: https://lore.kernel.org/all/20220127091308.91401-2-imagedong@tencent.com/ - -Upstream-Status: Backport [lttng-modules commit 7584cfc04914cb0842a986e9808686858b9c8630] - -Change-Id: I666461a5b541fe9e0bf53ad996ce33237af4bfbb -Signed-off-by: Michael Jeanson <mjeanson@efficios.com> -Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> ---- - include/instrumentation/events/skb.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/include/instrumentation/events/skb.h b/include/instrumentation/events/skb.h -index c6d7095d..237e54ad 100644 ---- a/include/instrumentation/events/skb.h -+++ b/include/instrumentation/events/skb.h -@@ -20,7 +20,7 @@ LTTNG_TRACEPOINT_ENUM(skb_drop_reason, - ctf_enum_value("NO_SOCKET", SKB_DROP_REASON_NO_SOCKET) - ctf_enum_value("PKT_TOO_SMALL", SKB_DROP_REASON_PKT_TOO_SMALL) - ctf_enum_value("TCP_CSUM", SKB_DROP_REASON_TCP_CSUM) -- ctf_enum_value("TCP_FILTER", SKB_DROP_REASON_TCP_FILTER) -+ ctf_enum_value("SOCKET_FILTER", SKB_DROP_REASON_SOCKET_FILTER) - ctf_enum_value("UDP_CSUM", SKB_DROP_REASON_UDP_CSUM) - ctf_enum_value("MAX", SKB_DROP_REASON_MAX) - ) --- -2.19.1 - diff --git a/poky/meta/recipes-kernel/lttng/lttng-modules_2.13.1.bb b/poky/meta/recipes-kernel/lttng/lttng-modules_2.13.3.bb index a8e4cc5afa..b6f8ac1315 100644 --- a/poky/meta/recipes-kernel/lttng/lttng-modules_2.13.1.bb +++ b/poky/meta/recipes-kernel/lttng/lttng-modules_2.13.3.bb @@ -9,19 +9,11 @@ inherit module include lttng-platforms.inc -SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \ - file://0001-fix-block-remove-GENHD_FL_SUPPRESS_PARTITION_INFO-v5.patch \ - file://0002-fix-block-remove-the-rq_disk-field-in-struct-request.patch \ - file://0003-fix-mm-compaction-fix-the-migration-stats-in-trace_m.patch \ - file://0004-fix-btrfs-pass-fs_info-to-trace_btrfs_transaction_co.patch \ - file://0005-fix-random-rather-than-entropy_store-abstraction-use.patch \ - file://0006-fix-net-skb-introduce-kfree_skb_reason-v5.17.patch \ - file://0007-fix-net-socket-rename-SKB_DROP_REASON_SOCKET_FILTER-.patch \ - " +SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2" # 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] = "a7c86d91c9bbe66d27f025aa04b8cfc6d7785ed2fc7ef774930800ee44d7f343" +SRC_URI[sha256sum] = "7cf1acbb50b84116acc9b4281b81dcc2643d6018bbd1e8514ad1270239896c4b" export INSTALL_MOD_DIR="kernel/lttng-modules" @@ -42,11 +34,6 @@ python do_package:prepend() { } BBCLASSEXTEND = "devupstream:target" -LIC_FILES_CHKSUM:class-devupstream = "file://LICENSE;md5=0464cff101a009c403cd2ed65d01d4c4" -DEFAULT_PREFERENCE:class-devupstream = "-1" SRC_URI:class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.13" - SRCREV:class-devupstream = "7584cfc04914cb0842a986e9808686858b9c8630" -PV:class-devupstream = "2.13.1+git${SRCPV}" -S:class-devupstream = "${WORKDIR}/git" SRCREV_FORMAT ?= "lttng_git" diff --git a/poky/meta/recipes-kernel/lttng/lttng-ust_2.13.1.bb b/poky/meta/recipes-kernel/lttng/lttng-ust_2.13.2.bb index 7bd6b6910d..516d90a196 100644 --- a/poky/meta/recipes-kernel/lttng/lttng-ust_2.13.1.bb +++ b/poky/meta/recipes-kernel/lttng/lttng-ust_2.13.2.bb @@ -34,7 +34,7 @@ SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \ file://0001-Makefile.am-update-rpath-link.patch \ " -SRC_URI[sha256sum] = "5667bf0269e1e62e2d9cb974c456ff86e0401bd7aa3bfc8d5fdb97233249eddc" +SRC_URI[sha256sum] = "08679a1dfc2c9428885273861628aa5d828972f389a38bb08fdce39adee589b7" CVE_PRODUCT = "ust" diff --git a/poky/meta/recipes-kernel/systemtap/systemtap_git.inc b/poky/meta/recipes-kernel/systemtap/systemtap_git.inc index b7218f02e0..5b5521b174 100644 --- a/poky/meta/recipes-kernel/systemtap/systemtap_git.inc +++ b/poky/meta/recipes-kernel/systemtap/systemtap_git.inc @@ -11,7 +11,7 @@ SRC_URI = "git://sourceware.org/git/systemtap.git;branch=master \ file://0001-PR28804-tune-default-stap-s-buffer-size-on-small-RAM.patch \ " -COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips).*-linux' +COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux' COMPATIBLE_HOST:libc-musl = 'null' S = "${WORKDIR}/git" |