Skip to contentSkip to conversation

lttng-module compile failed with the v5.12 kernel

lttng-dev Xu, Yanfei via lttng-dev 1 participant 3 messages Mar 29, 2021 – Mar 30, 2021

lore
Share & tools
lore
#0 lore raw

Hi experts,

I found a file named lttng-statedump-impl.c in lttng-module is always compiled failed. The file use some functions which were export from kernel. But the v5.12 kernel unexport them by 'commit bc359d03c7ec ("block: add a disk_uevent helper")'.

The function are disk_part_iter_init()\disk_part_iter_next() \disk_part_iter_exit()

Thanks,
Yanfei
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

#1 lore raw
Quoted 7 lines · Yanfei via lttng-dev

Hi experts,

I found a file named lttng-statedump-impl.c in lttng-module is always compiled failed. The file use some functions which were export from kernel. But the v5.12 kernel unexport them by 'commit bc359d03c7ec ("block: add a disk_uevent helper")'.

Quoted 5 lines

The function are disk_part_iter_init()\disk_part_iter_next() \disk_part_iter_exit()

Thanks,
Yanfei

Hi,

Can you have a look at this patch, it needs more testing :

https://review.lttng.org/c/lttng-modules/+/5050

Thanks,

Michael
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

#2 lore raw
Quoted 13 lines · Michael Jeanson via lttng-dev

[Please note: This e-mail is from an EXTERNAL e-mail address]

Quoted 10 lines · Yanfei via lttng-dev

Hi experts,

I found a file named lttng-statedump-impl.c in lttng-module is always compiled failed. The file use some functions which were export from kernel. But the v5.12 kernel unexport them by 'commit bc359d03c7ec ("block: add a disk_uevent helper")'.

The function are disk_part_iter_init()\disk_part_iter_next() \disk_part_iter_exit()

Quoted 8 lines
Quoted 2 lines

Thanks,
Yanfei

Hi,

Can you have a look at this patch, it needs more testing :

https://review.lttng.org/c/lttng-modules/+/5050

Thanks, I have applied it to my project and it can perfectly solve the compile failure. Just a minor typo 'arounf' in src/wrapper/genhd.c

Regards,
Yanfei

Quoted 8 lines

Thanks,

Michael
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev