lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] [BUG lttng-modules] lttng-module compile failed with the v5.12 kernel
@ 2021-03-29  6:34 Xu, Yanfei via lttng-dev
  2021-03-29 13:54 ` Michael Jeanson via lttng-dev
  0 siblings, 1 reply; 3+ messages in thread
From: Xu, Yanfei via lttng-dev @ 2021-03-29  6:34 UTC (permalink / raw)
  To: 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()

Thanks,
Yanfei
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lttng-dev] [BUG lttng-modules] lttng-module compile failed with the v5.12 kernel
  2021-03-29  6:34 [lttng-dev] [BUG lttng-modules] lttng-module compile failed with the v5.12 kernel Xu, Yanfei via lttng-dev
@ 2021-03-29 13:54 ` Michael Jeanson via lttng-dev
  2021-03-30  2:53   ` Xu, Yanfei via lttng-dev
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Jeanson via lttng-dev @ 2021-03-29 13:54 UTC (permalink / raw)
  To: lttng-dev

On 2021-03-29 02 h 34, Xu, Yanfei via lttng-dev wrote:
> 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

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
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lttng-dev] [BUG lttng-modules] lttng-module compile failed with the v5.12 kernel
  2021-03-29 13:54 ` Michael Jeanson via lttng-dev
@ 2021-03-30  2:53   ` Xu, Yanfei via lttng-dev
  0 siblings, 0 replies; 3+ messages in thread
From: Xu, Yanfei via lttng-dev @ 2021-03-30  2:53 UTC (permalink / raw)
  To: Michael Jeanson, lttng-dev



On 3/29/21 9:54 PM, Michael Jeanson via lttng-dev wrote:
> [Please note: This e-mail is from an EXTERNAL e-mail address]
> 
> On 2021-03-29 02 h 34, Xu, Yanfei via lttng-dev wrote:
>> 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
> 
> 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

> 
> Thanks,
> 
> Michael
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-30  2:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  6:34 [lttng-dev] [BUG lttng-modules] lttng-module compile failed with the v5.12 kernel Xu, Yanfei via lttng-dev
2021-03-29 13:54 ` Michael Jeanson via lttng-dev
2021-03-30  2:53   ` Xu, Yanfei via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).