[lttng-dev] [PATCH] compaction: make tracepoints condtional on CONFIG_COMPACTION

Michael Jeanson mjeanson at efficios.com
Wed Aug 10 11:20:25 EDT 2022


On 2022-08-03 15 h 23, Bruce Ashfield via lttng-dev wrote:
> Hi all,
> 
> This was found during the update of the yocto project reference
> kernel to 5.19. Out of all the supported architectures, only
> mips failed during the build of lttng-modules.
> 
> Specifically, it seems like the lack of CONFIG_COMPACTION being
> enabled in the kernel was the significant issue. Only one of the
> tracepoints blew up, but I can't see how any of them would be
> valid in this scenario, or why it would be limited to mips.
> 
> While I don't think this is the right fix, this is what got me
> up and passing sanity testing, so I wanted to send the change
> and see what the actual, correct fix would be :)
> 
> Cheers,
> 
> Bruce

Hi Bruce,

Thanks for reporting this issue, I propose a simpler fix [1] of just 
disabling the build of the compaction probe module when 
CONFIG_COMPACTION is disabled in the kernel configuration.

Can you confirm this patch fixes the issue on your side?

Thanks,

Michael

[1] https://review.lttng.org/c/lttng-modules/+/8660


More information about the lttng-dev mailing list