update jbd format for bionic 5.4 backports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lttng-modules (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
Impact: Upstream stable added a change in the format of jbd2 in 5.4.229.
This is incompatible with the current changes in the lttng-module for bionic 5.4 backports.
Fix: Picking 4 patches from upstream lttng-modules which handle the changed interface as well as add the required code to enable that change for other versions as well:
LTTNG_KERNEL_
LTTNG_KERNEL_
LTTNG_KERNEL_
LTTNG_KERNEL_
LTTNG_KERNEL_
Tescase: lttng-smoke-test will fail to compile with the error from below. The error is from the main focal kernel because the derivates for bionic were not cranked yet.
Regression potential: We may notice new failures in ubuntu_
760 21:14:39 DEBUG| [stdout] In file included from /var/lib/
761 21:14:39 DEBUG| [stdout] from /var/lib/
762 21:14:39 DEBUG| [stdout] from /var/lib/
763 21:14:39 DEBUG| [stdout] /var/lib/
764 21:14:39 DEBUG| [stdout] 131 | void trace_#
765 21:14:39 DEBUG| [stdout] | ^~~~~~
766 21:14:39 DEBUG| [stdout] /var/lib/
767 21:14:39 DEBUG| [stdout] 43 | LTTNG_TRACEPOIN
768 21:14:39 DEBUG| [stdout] | ^~~~~~~
769 21:14:39 DEBUG| [stdout] /var/lib/
770 21:14:39 DEBUG| [stdout] 85 | LTTNG_TRACEPOIN
771 21:14:39 DEBUG| [stdout] | ^~~~~~~
772 21:14:39 DEBUG| [stdout] /var/lib/
773 21:14:39 DEBUG| [stdout] 104 | LTTNG_TRACEPOIN
774 21:14:39 DEBUG| [stdout] | ^~~~~~~
775 21:14:39 DEBUG| [stdout] In file included from ./include/
776 21:14:39 DEBUG| [stdout] from /var/lib/
777 21:14:39 DEBUG| [stdout] ./include/
778 21:14:39 DEBUG| [stdout] 243 | static inline void trace_##name(proto) \
779 21:14:39 DEBUG| [stdout] | ^~~~~~
780 21:14:39 DEBUG| [stdout] ./include/
781 21:14:39 DEBUG| [stdout] 406 | __DECLARE_
782 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~
783 21:14:39 DEBUG| [stdout] ./include/
784 21:14:39 DEBUG| [stdout] 542 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
785 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~
786 21:14:39 DEBUG| [stdout] ./include/
787 21:14:39 DEBUG| [stdout] 234 | TRACE_EVENT(
788 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~
789 21:14:39 DEBUG| [stdout] In file included from /var/lib/
790 21:14:39 DEBUG| [stdout] from /var/lib/
791 21:14:39 DEBUG| [stdout] from /var/lib/
792 21:14:39 DEBUG| [stdout] /var/lib/
793 21:14:39 DEBUG| [stdout] 131 | void trace_#
794 21:14:39 DEBUG| [stdout] | ^~~~~~
795 21:14:39 DEBUG| [stdout] /var/lib/
796 21:14:39 DEBUG| [stdout] 43 | LTTNG_TRACEPOIN
797 21:14:39 DEBUG| [stdout] | ^~~~~~~
798 21:14:39 DEBUG| [stdout] /var/lib/
799 21:14:39 DEBUG| [stdout] 85 | LTTNG_TRACEPOIN
800 21:14:39 DEBUG| [stdout] | ^~~~~~~
801 21:14:39 DEBUG| [stdout] /var/lib/
802 21:14:39 DEBUG| [stdout] 124 | LTTNG_TRACEPOIN
803 21:14:39 DEBUG| [stdout] | ^~~~~~~
804 21:14:39 DEBUG| [stdout] In file included from ./include/
805 21:14:39 DEBUG| [stdout] from /var/lib/
806 21:14:39 DEBUG| [stdout] ./include/
807 21:14:39 DEBUG| [stdout] 243 | static inline void trace_##name(proto) \
808 21:14:39 DEBUG| [stdout] | ^~~~~~
809 21:14:39 DEBUG| [stdout] ./include/
810 21:14:39 DEBUG| [stdout] 406 | __DECLARE_
811 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~
812 21:14:39 DEBUG| [stdout] ./include/
813 21:14:39 DEBUG| [stdout] 542 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
814 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~
815 21:14:39 DEBUG| [stdout] ./include/
816 21:14:39 DEBUG| [stdout] 282 | TRACE_EVENT(
817 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~
818 21:14:39 DEBUG| [stdout] make[2]: *** [scripts/
819 21:14:39 DEBUG| [stdout] make[1]: *** [scripts/
820 21:14:39 DEBUG| [stdout] make: *** [Makefile:1767: /var/lib/
821 21:14:39 DEBUG| [stdout] make: Leaving directory '/usr/src/
822 21:14:39 ERROR| Exception escaping from test:
823 Traceback (most recent call last):
824 File "/home/
825 _cherry_
826 File "/home/
827 return func(*p_args, **p_dargs)
828 File "/home/
829 raise error.TestError
Changed in lttng-modules (Ubuntu): | |
status: | New → Invalid |
status: | Invalid → New |
Proposed fix is attached.
Tested on a local vm with kernel bionic-5.4
ubuntu@ bionic- 5:~/lttng$ dpkg -l | grep lttng-modules 1ubuntu2~ 18.04.5 all Linux Trace Toolkit (LTTng) kernel modules (DKMS)
ii lttng-modules-dkms 2.10.8-