forked from mathworks/meta-mathworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
recipes-kernel/lttng: Add 2.13.9 lttng-modules and set as preferred f…
…or 6.1.x kernel
- Loading branch information
1 parent
304e215
commit 5edf221
Showing
3 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
recipes-kernel/lttng/lttng-modules/0009-Rename-genhd-wrapper-to-blkdev.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
From 82fbf9d383ff9069808fb0f5f75c660098dbae52 Mon Sep 17 00:00:00 2001 | ||
From: Michael Jeanson <[email protected]> | ||
Date: Tue, 5 Apr 2022 14:57:41 -0400 | ||
Subject: [PATCH 09/10] Rename genhd wrapper to blkdev | ||
|
||
The genhd.h header was folded into blkdev.h in v5.18, rename our wrapper | ||
to follow upstream. | ||
|
||
Upstream-Status: Backport | ||
|
||
Change-Id: I4ec94fb94d11712dd20f0680aea1de77fbfa9d17 | ||
Signed-off-by: Michael Jeanson <[email protected]> | ||
Signed-off-by: Mathieu Desnoyers <[email protected]> | ||
--- | ||
include/wrapper/{genhd.h => blkdev.h} | 10 +++++----- | ||
src/lttng-statedump-impl.c | 2 +- | ||
2 files changed, 6 insertions(+), 6 deletions(-) | ||
rename include/wrapper/{genhd.h => blkdev.h} (93%) | ||
|
||
diff --git a/include/wrapper/genhd.h b/include/wrapper/blkdev.h | ||
similarity index 93% | ||
rename from include/wrapper/genhd.h | ||
rename to include/wrapper/blkdev.h | ||
index 4a59b68e..0d5ad90f 100644 | ||
--- a/include/wrapper/genhd.h | ||
+++ b/include/wrapper/blkdev.h | ||
@@ -1,6 +1,6 @@ | ||
/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) | ||
* | ||
- * wrapper/genhd.h | ||
+ * wrapper/blkdev.h | ||
* | ||
* wrapper around block layer functions and data structures. Using | ||
* KALLSYMS to get its address when available, else we need to have a | ||
@@ -9,8 +9,8 @@ | ||
* Copyright (C) 2011-2014 Mathieu Desnoyers <[email protected]> | ||
*/ | ||
|
||
-#ifndef _LTTNG_WRAPPER_GENHD_H | ||
-#define _LTTNG_WRAPPER_GENHD_H | ||
+#ifndef _LTTNG_WRAPPER_BLKDEV_H | ||
+#define _LTTNG_WRAPPER_BLKDEV_H | ||
|
||
#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0)) | ||
#include <linux/blkdev.h> | ||
@@ -45,7 +45,7 @@ struct class *wrapper_get_block_class(void) | ||
/* | ||
* Canary function to check for 'block_class' at compile time. | ||
* | ||
- * From 'include/linux/genhd.h': | ||
+ * From 'include/linux/blkdev.h': | ||
* | ||
* extern struct class block_class; | ||
*/ | ||
@@ -104,4 +104,4 @@ struct device_type *wrapper_get_disk_type(void) | ||
|
||
#endif | ||
|
||
-#endif /* _LTTNG_WRAPPER_GENHD_H */ | ||
+#endif /* _LTTNG_WRAPPER_BLKDEV_H */ | ||
diff --git a/src/lttng-statedump-impl.c b/src/lttng-statedump-impl.c | ||
index 4d7b2921..0e753090 100644 | ||
--- a/src/lttng-statedump-impl.c | ||
+++ b/src/lttng-statedump-impl.c | ||
@@ -41,7 +41,7 @@ | ||
#include <wrapper/namespace.h> | ||
#include <wrapper/irq.h> | ||
#include <wrapper/tracepoint.h> | ||
-#include <wrapper/genhd.h> | ||
+#include <wrapper/blkdev.h> | ||
#include <wrapper/file.h> | ||
#include <wrapper/fdtable.h> | ||
#include <wrapper/sched.h> | ||
-- | ||
2.19.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
SECTION = "devel" | ||
SUMMARY = "Linux Trace Toolkit KERNEL MODULE" | ||
DESCRIPTION = "The lttng-modules 2.0 package contains the kernel tracer modules" | ||
HOMEPAGE = "https://lttng.org/" | ||
LICENSE = "LGPL-2.1-only & GPL-2.0-only & MIT" | ||
LIC_FILES_CHKSUM = "file://LICENSE;md5=0464cff101a009c403cd2ed65d01d4c4" | ||
|
||
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 \ | ||
" | ||
|
||
# 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" | ||
|
||
export INSTALL_MOD_DIR="kernel/lttng-modules" | ||
|
||
EXTRA_OEMAKE += "KERNELDIR='${STAGING_KERNEL_DIR}'" | ||
|
||
MODULES_MODULE_SYMVERS_LOCATION = "src" | ||
|
||
do_install:append() { | ||
# Delete empty directories to avoid QA failures if no modules were built | ||
if [ -d ${D}/${nonarch_base_libdir} ]; then | ||
find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir {} \; | ||
fi | ||
} | ||
|
||
python do_package:prepend() { | ||
if not os.path.exists(os.path.join(d.getVar('D'), d.getVar('nonarch_base_libdir')[1:], 'modules')): | ||
bb.warn("%s: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel." % d.getVar('PN')) | ||
} | ||
|
||
BBCLASSEXTEND = "devupstream:target" | ||
SRC_URI:class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.13" | ||
SRCREV:class-devupstream = "7584cfc04914cb0842a986e9808686858b9c8630" | ||
SRCREV_FORMAT ?= "lttng_git" |