1 Commits

Author SHA256 Message Date
070233057b Sync changes to SLFO-1.2 branch 2025-08-20 09:48:14 +02:00
4 changed files with 339 additions and 345 deletions

View File

@@ -1,4 +1,5 @@
updates/lib/lttng-lib-ring-buffer
updates/lttng-clock
updates/lttng-ring-buffer-client-discard
updates/lttng-ring-buffer-client-mmap-discard
updates/lttng-ring-buffer-client-mmap-overwrite
@@ -7,19 +8,18 @@ updates/lttng-ring-buffer-metadata-client
updates/lttng-ring-buffer-metadata-mmap-client
updates/lttng-statedump
updates/lttng-tracer
updates/probes/lttng-ftrace
updates/lttng-wrapper
updates/probes/lttng-kprobes
updates/probes/lttng-kretprobes
updates/probes/lttng-probe-9p
updates/probes/lttng-probe-asoc
updates/probes/lttng-probe-block
updates/probes/lttng-probe-btrfs
updates/probes/lttng-probe-compaction
updates/probes/lttng-probe-ext4
updates/probes/lttng-probe-gpio
updates/probes/lttng-probe-i2c
updates/probes/lttng-probe-irq
updates/probes/lttng-probe-jbd2
updates/probes/lttng-probe-kmem
updates/probes/lttng-probe-kvm-x86-mmu
updates/probes/lttng-probe-kvm-x86
updates/probes/lttng-probe-kvm
updates/probes/lttng-probe-module
updates/probes/lttng-probe-napi
@@ -28,7 +28,7 @@ updates/probes/lttng-probe-power
updates/probes/lttng-probe-printk
updates/probes/lttng-probe-random
updates/probes/lttng-probe-rcu
updates/probes/lttng-probe-rpm
updates/probes/lttng-probe-regulator
updates/probes/lttng-probe-sched
updates/probes/lttng-probe-scsi
updates/probes/lttng-probe-signal
@@ -38,7 +38,12 @@ updates/probes/lttng-probe-statedump
updates/probes/lttng-probe-sunrpc
updates/probes/lttng-probe-timer
updates/probes/lttng-probe-udp
updates/probes/lttng-probe-v4l2
updates/probes/lttng-probe-vmscan
updates/probes/lttng-probe-workqueue
updates/probes/lttng-probe-writeback
updates/probes/lttng-types
updates/probes/lttng-probe-x86-exceptions
updates/probes/lttng-probe-x86-irq-vectors
updates/probes/lttng-uprobes
updates/tests/lttng-clock-plugin-test
updates/tests/lttng-test

View File

@@ -0,0 +1,120 @@
From: Kienan Stewart <kstewart@efficios.com>
Date: Mon Jan 22 12:17:33 2024 -0500
Subject: Fix: btrfs_chunk tracepoints changed in linux 6.8.0-rc1
References: bsc#1229151
Git-commit: 8d19592744d1bbdb9ff58c52ed142008ca1fe145
Signed-off-by: Tony Jones <tonyj@suse.de>
Fix: btrfs_chunk tracepoints changed in linux 6.8.0-rc1
See upstream commit:
commit 7dc66abb5a47778d7db327783a0ba172b8cff0b5
Author: Filipe Manana <fdmanana@suse.com>
Date: Tue Nov 21 13:38:38 2023 +0000
btrfs: use a dedicated data structure for chunk maps
Currently we abuse the extent_map structure for two purposes:
1) To actually represent extents for inodes;
2) To represent chunk mappings.
This is odd and has several disadvantages:
1) To create a chunk map, we need to do two memory allocations: one for
an extent_map structure and another one for a map_lookup structure, so
more potential for an allocation failure and more complicated code to
manage and link two structures;
2) For a chunk map we actually only use 3 fields (24 bytes) of the
respective extent map structure: the 'start' field to have the logical
start address of the chunk, the 'len' field to have the chunk's size,
and the 'orig_block_len' field to contain the chunk's stripe size.
Besides wasting a memory, it's also odd and not intuitive at all to
have the stripe size in a field named 'orig_block_len'.
We are also using 'block_len' of the extent_map structure to contain
the chunk size, so we have 2 fields for the same value, 'len' and
'block_len', which is pointless;
3) When an extent map is associated to a chunk mapping, we set the bit
EXTENT_FLAG_FS_MAPPING on its flags and then make its member named
'map_lookup' point to the associated map_lookup structure. This means
that for an extent map associated to an inode extent, we are not using
this 'map_lookup' pointer, so wasting 8 bytes (on a 64 bits platform);
4) Extent maps associated to a chunk mapping are never merged or split so
it's pointless to use the existing extent map infrastructure.
So add a dedicated data structure named 'btrfs_chunk_map' to represent
chunk mappings, this is basically the existing map_lookup structure with
some extra fields:
1) 'start' to contain the chunk logical address;
2) 'chunk_len' to contain the chunk's length;
3) 'stripe_size' for the stripe size;
4) 'rb_node' for insertion into a rb tree;
5) 'refs' for reference counting.
This way we do a single memory allocation for chunk mappings and we don't
waste memory for them with unused/unnecessary fields from an extent_map.
We also save 8 bytes from the extent_map structure by removing the
'map_lookup' pointer, so the size of struct extent_map is reduced from
144 bytes down to 136 bytes, and we can now have 30 extents map per 4K
page instead of 28.
Change-Id: Ie52b5ac83df4bc6abeb84d958c4f5d24ae0d8c75
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
diff --git a/include/instrumentation/events/btrfs.h b/include/instrumentation/events/btrfs.h
index 7c7b9b0c..a2a412b1 100644
--- a/include/instrumentation/events/btrfs.h
+++ b/include/instrumentation/events/btrfs.h
@@ -1609,7 +1609,42 @@ LTTNG_TRACEPOINT_EVENT(btrfs_delayed_ref_head,
)
#endif
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,8,0) || defined(CONFIG_SUSE_KERNEL))
+
+LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk,
+
+ TP_PROTO(const struct btrfs_fs_info *fs_info, const struct btrfs_chunk_map *map,
+ u64 offset, u64 size),
+
+ TP_ARGS(fs_info, map, offset, size),
+
+ TP_FIELDS(
+ ctf_integer(int, num_stripes, map->num_stripes)
+ ctf_integer(u64, type, map->type)
+ ctf_integer(int, sub_stripes, map->sub_stripes)
+ ctf_integer(u64, offset, offset)
+ ctf_integer(u64, size, size)
+ ctf_integer(u64, root_objectid, fs_info->chunk_root->root_key.objectid)
+ )
+)
+
+LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk, btrfs_chunk_alloc,
+
+ TP_PROTO(const struct btrfs_fs_info *fs_info, const struct btrfs_chunk_map *map,
+ u64 offset, u64 size),
+
+ TP_ARGS(fs_info, map, offset, size)
+)
+
+LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk, btrfs_chunk_free,
+
+ TP_PROTO(const struct btrfs_fs_info *fs_info, const struct btrfs_chunk_map *map,
+ u64 offset, u64 size),
+
+ TP_ARGS(fs_info, map, offset, size)
+)
+
+#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,14,0))
LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk,

View File

@@ -1,9 +1,28 @@
-------------------------------------------------------------------
Thu Feb 15 16:20:28 UTC 2024 - Tony Jones <tonyj@suse.com>
Sun Aug 25 18:59:51 UTC 2024 - Tony Jones <tonyj@suse.com>
- Update to version 2.13.11 to allow package inclusion into SLE-Micro 6.0:
- kernel-source was not included in %kernel_module_package_buildreqs
so btrfs lttng tracepoints were not being enabled explaining why
build failures were only being seen for kernel-source-rt.
Add explicit BuildRequires: kernel-source
Changes (2.13.11):
- fix build error caused by btrfs kernel tracepoint change (bsc#1229151)
New patch: fix-btrfs_chunk-tracepoints-changed-in-linux-6.8.0-rc1.patch
-------------------------------------------------------------------
Mon Feb 5 21:30:51 UTC 2024 - Tony Jones <tonyj@suse.com>
- Switch BuildRequires to %kernel_module_package_buildreqs to handle
ALP changes.
- Reenable RT build
-------------------------------------------------------------------
Fri Feb 2 00:07:28 UTC 2024 - Tony Jones <tonyj@suse.com>
- Update to stable version (2.13.11), pickup IBT change (bsc#1219459)
Changes:
Fix: Include linux/sched/rt.h for kernels v3.9 to v3.14
Fix: Disable IBT around indirect function calls
Inline implementation of task_prio()
@@ -20,401 +39,233 @@ Thu Feb 15 16:20:28 UTC 2024 - Tony Jones <tonyj@suse.com>
Fix: built-in lttng with kernel >= v6.1
Fix: ubuntu kinetic kernel range for jdb2
Changes (2.13.10):
Fix: sessiond: incorrect use of exclusions array leads to crash
Tests fix: test_callstack: output of addr2line incorrectly parsed
Fix: sessiond: silent kernel notifier registration error
Fix: sessiond: size-based notification occasionally not triggered
Fix: adding a user space probe fails on thumb functions
Fix: Tests that assume CPU 0 is present
Fix: Wrong assumption about possible CPUs
Tests: fix: parse-callback reports missing addr2line
Fix: lttng remove-trigger -h fails
Tests: snapshot tests complain that nothing is output
Tests: Test snapshot maximum size correctly
Tests: Add get_possible_cpus_count utility
Fix: ini parser: truncation of value name
Fix: truncated len in lttng_event_rule_user_tracepoint_serialize()
Tests: remove leftover debug printing in test_add_trigger_cli
- Drop patch lttng-modules-2.13.9-linux-6.3.patch (upstream)
Drop patch (in v2.13.11):
fix-lttng-probe-kvm-x86-mmu-build-with-linux-6.6.patch
-------------------------------------------------------------------
Fri May 26 19:23:13 UTC 2023 - Alexei Sorokin <sor.alexei@meowr.ru>
Wed Sep 27 15:58:00 UTC 2023 - Tony Jones <tonyj@suse.com>
- Update to version 2.13.9:
* Fix: jbd2: use the correct print format (v5.4.229).
* Fix: jbd2 upper bound for v5.10.163.
* Fix: jbd2: use the correct print format (v5.10.163).
* Fix: btrfs: move accessor helpers into accessors.h (v6.2).
- Add lttng-modules-2.13.9-linux-6.3.patch: back-port commits
23d91ab1f33370551feceddd93a1ecac7213e692,
f3559e5b06b24ad0336211950792fa97398c5e9a,
f39b4a3cbff6d286025bd692aaa24ae6f8efb40b,
6bc8ed7d08c616991451183eaffeeeb80ca0cd1a
for Linux 6.3 compatibility.
- Fix build error caused by kernel-source commit 05d27714a10a
"KVM: x86/mmu: Include mmu.h in spte.h (git-fixes)."
bsc#1214830#c6
New patch: fix-lttng-probe-kvm-x86-mmu-build-with-linux-6.6.patch
-------------------------------------------------------------------
Fri Jan 13 21:41:22 UTC 2023 - Alexei Sorokin <sor.alexei@meowr.ru>
Fri Sep 8 19:56:31 UTC 2023 - Tony Jones <tonyj@suse.com>
- Update to version 2.13.8:
* Fix: jbd2: use the correct print format.
* Fix: in_x32_syscall was introduced in v4.7.0.
* Explicitly skip tracing x32 system calls.
* Fix: kallsyms wrapper on ppc64el.
* Fix: Adjust ranges for RHEL 8.6 kernels.
* Fix: kvm-x86 requires CONFIG_KALLSYMS_ALL.
* Fix: mm/slab_common: drop kmem_alloc & avoid dereferencing
fields when not using (v6.1).
- Update to latest lttng-modules stable version (2.13.10) for SLE15-SP6
(bsc#1214830)
* v2.13.10:
- Add support for RHEL 9.1
- Add support for RHEL 9.0
- fix: kallsyms wrapper on CONFIG_PPC64_ELF_ABI_V1
- fix: net: add location to trace_consume_skb() (v6.3)
- fix: btrfs: pass find_free_extent_ctl to allocator tracepoints (v6.3)
- fix: uuid: Decouple guid_t and uuid_le types and respective macros (v6.3)
- fix: mm: introduce vma->vm_flags wrapper functions (v6.3)
* v2.13.9:
- fix: jbd2: use the correct print format (v5.4.229)
- fix: jbd2 upper bound for v5.10.163
- fix: jbd2: use the correct print format (v5.10.163)
- fix: btrfs: move accessor helpers into accessors.h (v6.2)
* v2.13.8:
- fix: jbd2: use the correct print format
- Fix: in_x32_syscall was introduced in v4.7.0
- Explicitly skip tracing x32 system calls
- fix: kallsyms wrapper on ppc64el
- fix: Adjust ranges for RHEL 8.6 kernels
- fix: kvm-x86 requires CONFIG_KALLSYMS_ALL
- fix: mm/slab_common: drop kmem_alloc & avoid dereferencing fields when not using (v6.1)
- Delete the following patches (no longer needed due to kernel version rebase):
- block-remove-GENHD_FL_SUPPRESS_PARTITION_INFO-v5.17.patch
- block-remove-genhd-h-v5.18.patch
- block-remove-the-rq_disk_field_in_struct_request_v5.17.patch
- fix-jbd2-use-the-correct-print-format.patch
- mm-compaction-cleanup-the-compaction-trace-events-v5.18.patch
- scsi-block-remove-REQ_OP_WRITE_SAME-support-v5.18.patch
- scsi-core-remove-scsi_request.h-v5.18.patch
- Disable RT builds for now (no v6.4 yet for RT)
-------------------------------------------------------------------
Sun Oct 2 18:13:47 UTC 2022 - Alexei Sorokin <sor.alexei@meowr.ru>
Tue Jul 11 20:16:19 UTC 2023 - Tony Jones <tonyj@suse.com>
- Update to version 2.13.7 (changes since 2.13.4):
* Fix: incorrect stub prototypes when
CONFIG_HAVE_SYSCALL_TRACEPOINTS=n.
* Fix: mm/tracing: add 'accounted' entry into output of
allocation tracepoints (v6.0).
* Fix: block: remove bdevname (v6.0).
* Fix: fs/jbd2: Fix the documentation of the
jbd2_write_superblock() callers (v6.0).
* Fix: tie compaction probe build to CONFIG_COMPACTION.
* Fix: net: skb: introduce kfree_skb_reason() (v5.15.58..v5.16).
* Fix: workqueue: Fix type of cpu in trace event (v5.19).
* Fix: fs: Remove flags parameter from aops->write_begin (v5.19).
* Fix: mm/page_alloc: fix tracepoint mm_page_alloc_zone_locked()
(v5.19).
* Fix: bytecode validator: reject specialised load field/context
ref instructions.
* Fix: bytecode validator: reject specialised load instructions.
* Fix: honour "user" attribute for array/sequence of user integers.
* wrapper: powerpc64: fix kernel crash caused by do_get_kallsyms.
* Fix: event notification: Remove duplicate event enabled check.
* Fix: event notification capture: validate buffer length.
* Fix: handle capture page faults as skip field.
* Fix: event notification capture error handling.
* Fix: capture_sequence_element_{un,}signed: handle user-space
input.
* Fix: notification capture: handle userspace strings.
* Implement lttng_msgpack_write_user_str.
* Fix: bytecode interpreter: LOAD_FIELD: handle user fields.
* Fix: move "user" attribute from field to type.
* Introduce lttng_copy_from_user_check_nofault.
* Fix: adjust range v5.10.137 in block probe.
* Fix: handle integer capture page faults as skip field.
- Drop lttng-modules-2.13.4-linux-5.19.patch: merged upstream.
- - Fix build error caused by kernel-source change:
34db311bec3ca4388b82b2355eed7c08b25f5a2e
jbd2: use the correct print format (git-fixes)
New patch: fix-jbd2-use-the-correct-print-format.patch
-------------------------------------------------------------------
Fri Aug 19 12:42:33 UTC 2022 - Alexei Sorokin <sor.alexei@meowr.ru>
Tue Jan 24 12:59:28 UTC 2023 - Jeffrey Cheung <jcheung@suse.com>
- Add lttng-modules-2.13.4-linux-5.19.patch: back-port commits
6229bbaa423832f6b7c7a658ad11e1d4242752ff,
5e2f832d59d51589ab69479c7db43c7581fb9346,
c6da9604b1666780ea4725b3b3d1bfa1548f9c89
for Linux 5.19 compatibility.
- Enable kmp-rt for SLERT15 SP5
-------------------------------------------------------------------
Fri Jun 3 20:12:25 UTC 2022 - Alexei Sorokin <sor.alexei@meowr.ru>
Wed Dec 14 17:30:21 UTC 2022 - Tony Jones <tonyj@suse.com>
- Update to version 2.13.4:
* Fix: event notifier: racy use of last subbuffer record.
* Fix: bytecode interpreter context_get_index() leaves byte
order uninitialised.
* Fix: "random" tracepoints removed in stable kernels.
* Fix: random: remove unused tracepoints (v5.10, v5.15).
* Fix: sched/tracing: Append prev_state to tp args instead
(v5.18).
* Fix: mm: compaction: cleanup the compaction trace events
(v5.18).
* Fix: scsi: core: Remove <scsi/scsi_request.h> (v5.18).
* Fix: kprobes: Use rethook for kretprobe if possible (v5.18).
* Fix: random: remove unused tracepoints (v5.18).
* Fix: scsi: block: Remove REQ_OP_WRITE_SAME support (v5.18).
* Fix: block: remove genhd.h (v5.18).
* Fix: sched/tracing: Don't re-read p->state when emitting
sched_switch event (v5.18).
* Fix: KVM: x86: Unexport kvm_x86_ops (v5.18).
* Fix: do not warn on unknown counter ioctl.
* Fix: tracepoint event: allow same provider and event name.
* Fix: compaction migratepages event name.
- Resolve build errors due to SLE15-SP5 scsi kernel-source backport
New patch: scsi-core-remove-scsi_request.h-v5.18.patch
-------------------------------------------------------------------
Wed May 18 20:23:14 UTC 2022 - Alexei Sorokin <sor.alexei@meowr.ru>
Mon Dec 5 23:55:43 UTC 2022 - Tony Jones <tonyj@suse.com>
- Update to version 2.13.3:
* Fix: incorrect in/out direction for syscall exit.
* Fix: net: socket: rename SKB_DROP_REASON_SOCKET_FILTER (v5.17).
* Fix: net: skb: introduce kfree_skb_reason() (v5.17).
* Fix: random: rather than entropy_store abstraction, use global
(v5.17).
* Fix: btrfs: pass fs_info to trace_btrfs_transaction_commit
(v5.17).
* Fix: mm: compaction: fix the migration stats in
trace_mm_compaction_migratepages() (v5.17).
* Fix: block: remove the ->rq_disk field in struct request
(v5.17).
* Fix: block: remove GENHD_FL_SUPPRESS_PARTITION_INFO (v5.17).
* Document expected ISO8601 time formats in ABI header.
* Fix: lttng ABI: lttng_counter_ioctl() tainted scalar.
* Fix: sample discarded events count before reserve.
* Cleanup: comment alignment in ring buffer config.h.
- Resolve build errors due to additional SLE15-SP5 kernel-source backports
(bsc#1205500#c10)
New patch: block-remove-the-rq_disk_field_in_struct_request_v5.17.patch
New patch: block-remove-genhd-h-v5.18.patch
New patch: block-remove-GENHD_FL_SUPPRESS_PARTITION_INFO-v5.17.patch
New patch: scsi-block-remove-REQ_OP_WRITE_SAME-support-v5.18.patch
New patch: mm-compaction-cleanup-the-compaction-trace-events-v5.18.patch
-------------------------------------------------------------------
Sat Jan 15 13:16:03 UTC 2022 - Alexei Sorokin <sor.alexei@meowr.ru>
Thu Dec 1 01:36:15 UTC 2022 - Tony Jones <tonyj@suse.com>
- Update to version 2.13.1:
* See https://git.lttng.org/?p=lttng-modules.git;a=shortlog;h=refs/tags/v2.13.1
- Drop lttng-modules-2.13.0-linux-5.15.patch: merged upstream.
- Initial checking for SLE15-SP5
* Update to latest lttng-modules stable 2.13 version (2.13.7) which also
resolves build error (bsc#1205500)
* Drop patches no longer required (necessary SLE conditional checks for them
now in lttng-modules upstream):
delete patch: btrfs-pass-btrfs_inode-to-btrfs_writepage_endio_finish_ordered-v5.14.patch
delete patch: fix-sched-change-task_struct-state-v5.14.patch
-------------------------------------------------------------------
Sat Nov 27 18:07:31 UTC 2021 - Alexei Sorokin <sor.alexei@meowr.ru>
Sun Sep 12 20:35:23 UTC 2021 - Tony Jones <tonyj@suse.com>
- Update to version 2.13.0:
* See https://git.lttng.org/?p=lttng-modules.git;a=blob_plain;f=ChangeLog;hb=v2.13.0
- Add lttng-modules-2.13.0-linux-5.15.patch: Linux 5.15
compatibility (commit ffcc8734 by Michael Jeanson).
- Add ARMv7 and RISC-V to supported architectures.
- Initial checkin for SLE15-SP4 (bsc#1190361)
* Update to latest lttng-modules stable 2.12 version (2.12.6)
* Drop patches no longer required due to kernel-source rebase to v5.14
delete patch: sle_btrfs-move-basic-block_group-definitions-to-their-own-header.patch
delete patch: sle_btrfs_block_group_struct_refactor.patch
delete patch: sle_btrfs_make_ordered_extent_naming_consistent.patch
delete patch: sle_enable-fix-sync-livelock-due-to-b_dirty_time-processing.patch
delete patch: sle_fix_rcu_dyntick.patch
delete patch: sle_remove_error_arg_block_bio_complete.patch
delete patch: sle_wrapper_vmalloc_sync_mappings.patch
* Resolve build errors:
add patch: btrfs-pass-btrfs_inode-to-btrfs_writepage_endio_finish_ordered-v5.14.patch
add patch: fix-sched-change-task_struct-state-v5.14.patch
-------------------------------------------------------------------
Fri Jan 22 12:33:30 UTC 2021 - Luigi Baldoni <aloisio@gmx.com>
Fri Feb 26 05:42:42 UTC 2021 - Tony Jones <tonyj@suse.com>
- Update to version 2.12.4
* fix: adjust version range for trace_find_free_extent()
* Improve the release script
* Add release maintainer script
* fix: statedump: undefined symbols caused by incorrect patch
backport
* fix: include order for older kernels
* fix: tracepoint: Optimize using static_call() (v5.10)
* fix: KVM: x86/mmu: Return unique RET_PF_* values if the
fault was fixed (v5.10)
* fix: kvm: x86/mmu: Add TDP MMU PF handler (v5.10)
* fix: KVM: x86: Add intr/vectoring info and error code to
kvm_exit tracepoint (v5.10)
* fix: ext4: fast commit recovery path (v5.10)
* fix: btrfs: make ordered extent tracepoint take btrfs_inode
(v5.10)
* fix: btrfs: tracepoints: output proper root owner for
trace_find_free_extent() (v5.10)
* fix: objtool: Rename frame.h -> objtool.h (v5.10)
* Fix: ressource leak in id tracker
* fix: strncpy equals destination size warning
- Resolve build error caused by kernel-source writeback changes
New patch: sle_enable-fix-sync-livelock-due-to-b_dirty_time-processing.patch
-------------------------------------------------------------------
Tue Nov 3 00:02:36 UTC 2020 - Tony Jones <tonyj@suse.com>
- Update to version 2.12.3 (jsc#SLE-16189)
Changelog: https://git.lttng.org/?p=lttng-modules.git;a=blob_plain;f=ChangeLog;hb=v2.12.3
Delete patch: lttng-modules-fix-leap-15.1.patch
- Delete patch: btrfs-move-basic-block_group-definitions-to-their-own-header.patch
- Delete patch: update-timer-instrumentation-on-4.16-and-4.14-rt.patch
- Add patch: sle_fix_rcu_dyntick.patch
- Add patch: sle_remove_error_arg_block_bio_complete.patch
- Add patch: sle_wrapper_vmalloc_sync_mappings.patch
- Add patch: sle_btrfs-move-basic-block_group-definitions-to-their-own-header.patch
Add patch: sle_btrfs_block_group_struct_refactor.patch
Add patch: sle_btrfs_make_ordered_extent_naming_consistent.patch
- Add signed bz2 support (keyring)
-------------------------------------------------------------------
Wed Feb 26 14:29:32 UTC 2020 - Alexei Sorokin <sor.alexei@meowr.ru>
Fri Mar 27 01:26:26 UTC 2020 - Tony Jones <tonyj@suse.com>
- Update to version 2.11.2:
* See /usr/share/doc/packages/lttng-modules/ChangeLog
- Rebase and rename lttng-modules-fix-leap-15.0.patch to
lttng-modules-fix-leap-15.1.patch.
- Update the spec.
- Fix build error caused by btrfs_block_group_cache moving to a new include
file (bsc#1167703)
New patch: btrfs-move-basic-block_group-definitions-to-their-own-header.patch
-------------------------------------------------------------------
Thu Oct 3 17:56:21 UTC 2019 - Alexei Sorokin <sor.alexei@meowr.ru>
Tue Jan 28 08:13:43 UTC 2020 - Jeffrey Cheung <jcheung@suse.com>
- Update to version 2.10.11 (changes since 2.10.9):
* Don't print ring-buffer's records count when it is not used.
* Do not set quiescent state on channel destroy.
* ring_buffer_frontend.c: Fix init read timer with uninitialised
flags.
* random: Only read from /dev/random after its pool has received
128 bits (v5.2).
* mm: move recent_rotated pages calculation to
shrink_inactive_list() (v5.2).
* mm/vmscan: Simplify trace_reclaim_flags and trace_shrink_flags
(v5.2).
* mm/vmscan: Drop may_writepage and classzone_idx from direct
reclaim begin template (v5.2).
* timer/trace: Improve timer tracing (v5.2).
* bitfields: Streamline use of underscores.
* Silence compiler "always false comparison" warning.
* bitfield: Shift undefined/implementation defined behaviours.
* bitfield.h: Move to kernel style SPDX license identifiers.
* timestamp_end field should include all events within sub-buffer.
* Remove start and number from syscall_get_arguments() args
(v5.1).
* lttng abi documentation: Clarify getter usage requirements.
* Don't access packet header for stream_id and
stream_instance_id getters.
* atomic_long_add_unless() returns a boolean.
* Revert "KVM: MMU: show mmu_valid_gen..." (v5.1).
* pipe: Stop using ->can_merge (v5.1).
* rcu: Remove wrapper definitions for obsolete RCU (v5.1).
* mm: Create the new vm_fault_t type (v5.1).
* extra-version-git.sh redirect stderr to /dev/null.
* Fix gcc-9.1 stack frame size warning.
* Do not use diagnostic pragma when GCC version is lower than
4.6.0.
* Fix a missing define when not building with gcc.
* lttng-tracepoint module notifier should return NOTIFY_OK.
- Enable kmp-rt
-------------------------------------------------------------------
Sun Apr 21 19:49:13 UTC 2019 - Markus Beth <markus.beth@web.de>
Mon Aug 12 22:00:23 UTC 2019 - Tony Jones <tonyj@suse.com>
- Update to version 2.10.9:
* Blacklist: kprobe for arm
* Cleanup: tp mempool: Remove logically dead code.
* Fix: btrfs: Remove fsid/metadata_fsid fields from btrfs_info.
* Fix: SUNRPC: Simplify defining common RPC trace events (v5.0).
* Fix: Replace pointer values with task->tk_pid and
rpc_clnt->cl_clid.
* Fix: Remove 'type' argument from access_ok() function (v5.0).
* Fix: Timer instrumentation for RHEL 7.6.
* Fix: ext4: Adjust reserved cluster count when removing extents
(v4.20).
* Fix: signal: Remove SEND_SIG_FORCED (v4.20).
* Fix: signal: Distinguish between kernel_siginfo and siginfo
(v4.20).
- Remove
lttng-modules-2.10.8-update-instrumentation-for-linux-4.20.patch:
fixed upstream.
- Rebase lttng-modules-fix-leap-15.0.patch.
- Fork for SLE15-SP2 (5.3 kernel)
Update patch: update-timer-instrumentation-on-4.16-and-4.14-rt.patch
Delete patch: btrfs-constify-tracepoint-arguments.patch
Delete patch: fix-kvm-instrumentation-for-4.15.patch
Delete patch: fix-update-block-instrumentation-for-4.14-kernel.patch
Delete patch: lttng-modules-2.10.0.tar.bz2
Delete patch: mm-page_alloc-wakeup-kcompactd-even-if-kswapd.patch
Delete patch: mm_remove_cold_parameter_from_free_hot_cold_page.patch
Delete patch: remove_fsid_from_btrfs_info.patch
Delete patch: update-kvm-instrumentation-for-4.15.patch
- Update to maint version 2.10.10
- Disable RT builds for now (as kernel initially lags behind)
-------------------------------------------------------------------
Thu Jan 24 16:43:44 UTC 2019 - Alexei Sorokin <sor.alexei@meowr.ru>
Fri Feb 8 19:13:32 UTC 2019 - Tony Jones <tonyj@suse.com>
- Add
lttng-modules-2.10.8-update-instrumentation-for-linux-4.20.patch:
Update instrumentation on Linux 4.20 (commits 6c484ba2, cef5d79e,
307021a1).
- Update Module.supported (bsc#1123696)
-------------------------------------------------------------------
Wed Nov 14 12:28:56 UTC 2018 - Alexei Sorokin <sor.alexei@meowr.ru>
Sat Jan 26 18:07:00 UTC 2019 - ptesarik@suse.com
- Update to version 2.10.8:
* Fix: Update kvm instrumentation for SLES12 SP2
LTSS >= 4.4.121-92.92.
* Fix: Add missing const to lttng_tracepoint_ptr_deref prototype.
* Fix: Adapt to kernel relative references.
* Fix: Implicit declarations caused by buffer size checks.
* Prevent allocation of buffers if exceeding available memory.
* Fix: Convert rcu tracepointis to gp_seq (v4.19).
* Fix: net: Expose sk wmem in sock_exceed_buf_limit tracepoint
(4.19).
* Fix: Access migrate_disable field directly.
* Fix: Out of memory error handling.
- Enable building for the RT flavor on SLE 15+.
- Remove btrfs-constify-tracepoint-arguments.patch: fixed upstream
for SLE 12.
- Add lttng-modules-fix-leap-15.0.patch: Fix building on Leap 15.0.
- Fix kernel-rt build breakage.
Refresh: mm-page_alloc-wakeup-kcompactd-even-if-kswapd.patch
-------------------------------------------------------------------
Thu Aug 23 12:21:27 UTC 2018 - sor.alexei@meowr.ru
Thu Jan 10 16:38:26 UTC 2019 - ptesarik@suse.com
- Update to version 2.10.7:
* Fix: adjust SLE version ranges to build with SP2 and SP3.
* Fix: Allow alphanumeric characters in the SLE version.
* Fix: Adjust range for SUSE 4.4.103-92 kernels.
* Add extra version information framework.
* Fix: btrfs: Remove the unnecessary fs_info parameter.
* Fix: asoc: Remove snd_soc_cache_sync() implementation.
* Fix: asoc: Fix printing jack name.
* Fix: asoc: Consolidate path trace events.
* Fix: ASoC level IO tracing removed upstream.
* Fix: dyntick field added to trace_rcu_dyntick in v4.16.
* Fix: BUILD_BUG_ON with compile time constant on < v2.6.38.
* Fix: pid tracker should track "pgid" for noargs probes.
- Handle build breakage due to addition of gfp_flags to
mm_vmscan_wakeup_kswapd()
New patch: mm-page_alloc-wakeup-kcompactd-even-if-kswapd.patch
-------------------------------------------------------------------
Sun Jun 17 18:47:02 UTC 2018 - sor.alexei@meowr.ru
Mon Nov 26 20:08:31 UTC 2018 - Tony Jones <tonyj@suse.com>
- Update to version 2.10.6:
* Fix: Update RCU instrumentation for 4.17.
* Fix: sunrpc instrumentation for 4.17.
* Fix: Use struct reclaim_stat in mm_vmscan_lru_shrink_inactive
for 4.17.
* Fix: Add gfp_flags arg to mm_vmscan_kswapd_wake for 4.17.
* Update: KVM instrumentation for ubuntu 4.13.0-38.
* Fix: Update KVM instrumentation for Ubuntu 3.13.0-144.
* Fix: btrfs instrumentation namespacing.
* Cleanup: Comment about CONFIG_HOTPLUG_CPU ifdef.
* Fix: Do not use CONFIG_HOTPLUG_CPU for the new hotplug API.
* Fix: Update kvm instrumentation for 4.1.50+.
* Use the memory pool instead of kmalloc.
* Create a memory pool for temporary tracepoint probes storage.
* Fix: Use proper pid_ns in the process statedump.
* Fix: Add variable quoting to shell scripts.
* Update: KVM instrumentation for fedora 4.14.13-300.
* Fix: Add Fedora version macros.
* Fix: Update btrfs instrumentation for SuSE 4.4.114-92.
* Fix: Update block instrumentation for SuSE 4.4.114-92.
* Fix: Update rcu instrumentation for v4.16.
* Fix: Update vmscan instrumentation for v4.16.
* Fix: Update timer instrumentation on 4.16 and 4.14-rt.
* Update kvm instrumentation for debian kernel 4.14.0-3.
- Remove
lttng-modules-2.10.5-update-instrumentation-for-linux-4.16.patch.
- Handle build breakage due to removing fsid from btrfs_info
New patch: remove_fsid_from_btrfs_info.patch
- Add %license
- RT build should depend on kernel-source-rt to build all probes
-------------------------------------------------------------------
Sun Apr 8 15:47:49 UTC 2018 - sor.alexei@meowr.ru
Thu Sep 27 23:47:12 UTC 2018 - Tony Jones <tonyj@suse.com>
- Rebase btrfs-constify-tracepoint-arguments.patch.
- Add
lttng-modules-2.10.5-update-instrumentation-for-linux-4.16.patch:
Update instrumentation on Linux 4.16 (commits 562860a, 9cf057f).
- SLE15-SP1. Enable build for rt flavor.
- Fix rt build breakage (in hrtimer)
New patch: update-timer-instrumentation-on-4.16-and-4.14-rt.patch
-------------------------------------------------------------------
Sun Feb 4 19:26:38 UTC 2018 - sor.alexei@meowr.ru
Sat Feb 3 01:57:15 UTC 2018 - tonyj@suse.com
- Update to version 2.10.5:
* Fix network instrumentation protocol enum.
* Update btrfs instrumentation for SUSE's kernel 4.4.103-6.
* Update block instrumentation for SUSE's kernel 4.4.73-5.
* Fix global_dirty_limit for kernel v4.2 and up.
* Fix network instrumentation handling of corrupted TCP headers.
* Add missing uaccess.h include from kstrtox.h wrapper.
* Update kvm instrumentation for 4.14.14+, 4.9.77+, 4.4.112+.
* Fix: btrfs_delayed_ref_head was unwired since v3.12.
* Fix Debian kernel version parsing.
* Fix block instrumentation 4.14+ NULL pointer dereference.
* Update sock instrumentation for 4.15.
* Fix: ACCESS_ONCE() was removed in kernel 4.15.
* Fix sched instrumentation on stable RT kernels.
* timer API transition for kernel 4.15.
* Don't nest get online cpus.
* Fix lttng_channel_syscall_mask() bool use in bitfield.
* Update kmem instrumentation for kernel 4.15.
- Remove lttng-modules-2.10.4-fix-kvm.patch.
- Update for kvm build errors
New patch: update-kvm-instrumentation-for-4.15.patch
New patch: fix-kvm-instrumentation-for-4.15.patch
-------------------------------------------------------------------
Wed Jan 24 10:09:10 UTC 2018 - sor.alexei@meowr.ru
Tue Dec 19 18:18:47 UTC 2017 - tonyj@suse.com
- Add lttng-modules-2.10.4-fix-kvm.patch: Update KVM
instrumentation for Linux 4.15 (commits 3363052, d9f561b,
5ccd696, bda29b7).
- Update block instrumentation for kernel 4.14. Change is already
upstream in 2.10.3 but we are not taking updates into SLE at this
point in beta cycle.. Also fix needs rework to map to SLE15 (v4.12.x)
New patch: fix-update-block-instrumentation-for-4.14-kernel.patch
-------------------------------------------------------------------
Fri Dec 29 18:52:22 UTC 2017 - sor.alexei@meowr.ru
Mon Dec 4 23:24:18 UTC 2017 - tonyj@suse.com
- Update to version 2.10.4:
* Fix: lttng_kvmalloc helper NULL pointer OOP.
- Use tarball signing.
-------------------------------------------------------------------
Sat Nov 4 10:10:46 UTC 2017 - sor.alexei@meowr.ru
- Update to version 2.10.3 (changes since 2.10.0):
* Fix a version check error in btrfs instrumentation.
* Update the btrfs instrumentation for kernel 4.14.
* Update writeback instrumentation for kernel 4.14.
* Update block instrumentation for kernel 4.14.
* Fix a vmalloc wrapper on kernel < 2.6.38.
* Fix a vmalloc wrapper on kernel >= 4.12.
* Add a kmalloc failover to vmalloc.
* Fix mmap: caches aliased on virtual addresses.
* Update ext4 instrumentation for kernel 4.13.
* Fix lttng-logger get_user_pages_fast error handling.
- Rebase btrfs-constify-tracepoint-arguments.patch.
- Only apply btrfs-constify-tracepoint-arguments.patch on SLE.
- Also build for x86-32, aarch64, ppc64, ppc64le.
- Spec cleanup.
- Remove cold parameter from mm_page_free_batched (bsc#1070529)
New patch: mm_remove_cold_parameter_from_free_hot_cold_page.patch
-------------------------------------------------------------------
Thu Aug 31 19:10:19 UTC 2017 - tonyj@suse.com
@@ -671,3 +522,4 @@ Mon Feb 27 22:42:24 UTC 2012 - tonyj@suse.com
Wed Jan 4 19:59:26 UTC 2012 - tonyj@suse.com
- Update to version 2.0-pre11

View File

@@ -1,7 +1,7 @@
#
# spec file for package lttng-modules
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,6 +15,13 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# needssslcertforbuild
%if ! 0%{?is_opensuse}
%ifarch x86_64
%define buildrt 1
%endif
%endif
Name: lttng-modules
Version: 2.13.11
@@ -28,8 +35,18 @@ Source1: https://lttng.org/files/lttng-modules/%{name}-%{version}.tar.bz2
Source2: %{name}.keyring
Source3: %{name}-preamble
Source4: Module.supported
BuildRequires: %{kernel_module_package_buildreqs}
ExclusiveArch: %ix86 x86_64 armv7l aarch64 riscv64 ppc64 ppc64le
Patch1: fix-btrfs_chunk-tracepoints-changed-in-linux-6.8.0-rc1.patch
BuildRequires: %kernel_module_package_buildreqs
# kernel_module_package_buildreqs doesn't include kernel-source which limits
# LTTng features. So manually add it.
BuildRequires: kernel-source
%if 0%{?buildrt} == 1
BuildRequires: kernel-syms-rt
BuildRequires: kernel-source-rt
%endif
ExclusiveArch: x86_64
%description
This package provides licensing documentation for the lttng kmp packages.
@@ -55,7 +72,7 @@ for flavor in %{flavors_to_build}; do
rm -rf obj/$flavor
cp -r source obj/$flavor
cp %{SOURCE4} obj/$flavor
%make_build -C %{kernel_source $flavor} %{?linux_make_arch} modules \
%make_build -C %{kernel_source $flavor} modules \
M=$PWD/obj/$flavor CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m
done
@@ -64,12 +81,12 @@ export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=updates
export BRP_PESIGN_FILES="*.ko /lib/firmware"
for flavor in %{flavors_to_build}; do
make -C %{kernel_source $flavor} %{?linux_make_arch} modules_install \
make -C %{kernel_source $flavor} modules_install \
M=$PWD/obj/$flavor CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m
done
%files
%license LICENSE LICENSES/
%license LICENSE LICENSES/GPL-2.0 LICENSES/LGPL-2.1 LICENSES/MIT
%doc ChangeLog
%changelog