lttng-modules-dkms fails to build on kinetic with the latest kernel 5.19

Bug #1982297 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lttng-modules (Ubuntu)
Fix Released
Undecided
Unassigned
Kinetic
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

lttng-modules-dkms fails to build on 5.19 with the following error:

  CC [M] /var/lib/dkms/lttng-modules/2.13.4/build/src/probes/lttng-probe-kmem.o
In file included from /var/lib/dkms/lttng-modules/2.13.4/build/src/probes/../../include/lttng/define_trace.h:87,
                 from /var/lib/dkms/lttng-modules/2.13.4/build/src/probes/../../include/instrumentation/events/kmem.h:367,
                 from /var/lib/dkms/lttng-modules/2.13.4/build/src/probes/lttng-probe-kmem.c:35:
/var/lib/dkms/lttng-modules/2.13.4/build/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for ‘trace_mm_page_alloc_zone_locked’; have ‘void(struct page *, unsigned int, int)’
  133 | void trace_##_name(_proto);
      | ^~~~~~

[Test case]

$ sudo apt install lttng-modules-dkms

[Fix]

Support the new prototype of mm_page_alloc_zone_locked() introduced in 5.19.

[Regression potential]

We may experience regressions using lttng on kernels >= 5.19, especially when tracing memory-related events.

Tags: patch
Andrea Righi (arighi)
affects: ubuntu → lttng-modules (Ubuntu)
Revision history for this message
Andrea Righi (arighi) wrote :

Fix (debdiff) in attach allows to build lttng-modules-dkms on linux 5.19.

tags: added: patch
Changed in lttng-modules (Ubuntu Kinetic):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lttng-modules - 2.13.4-1ubuntu1

---------------
lttng-modules (2.13.4-1ubuntu1) kinetic; urgency=medium

  * Support Linux 5.19 (LP: #1982297):
    - debian/patches/0001-fix-mm-page_alloc-fix-tracepoint-mm_page_alloc_zone_.patch
    - debian/patches/0002-fix-fs-Remove-flags-parameter-from-aops-write_begin-.patch
    - debian/patches/0003-fix-workqueue-Fix-type-of-cpu-in-trace-event-v5.19.patch

 -- Andrea Righi <email address hidden> Wed, 20 Jul 2022 07:03:01 +0000

Changed in lttng-modules (Ubuntu Kinetic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.