On Wed, Mar 4, 2026 at 5:39 PM Joe Lawrence <[email protected]> wrote: [...] > > > > Gah, sorry about those internal links. > > Try: > > https://joe-lawrence.github.io/klp-build-selftest-artifacts/report.html > https://joe-lawrence.github.io/klp-build-selftest-artifacts/report.txt
Thanks! These look pretty good! [...] > It is strange, but for my experiment, I wanted minimal disruption to the > tree. For the "real" changeset, upstream + some testing CONFIG_ sounds > good to me. > > > > That said, patching a dummy patched-tree isn't be perfect either, > > > particularly in the runtime sense. You're not testing a release kernel, > > > but something slightly different. > > > > This should not be a problem. The goal is to test the klp-build toolchain. > > > > Right, perhaps klp-build testing always targets a slightly modified > kernel (or at least CONFIG_) while livepatching testing operates against > the stock tree? Agreed. > > > (Tangent: kpatch-build implemented a unit test scheme that cached object > > > files for even greater speed and fixed testing. I haven't thought about > > > how a similar idea might work for klp-build.) > > > > I think it is a good idea to have similar .o file tests for klp-diff > > in klp-build. > > > > kpatch-build uses a git submodule (a joy to work with /s), but maybe > upstream tree can fetch the binary objects from some external > (github/etc.) source? I wonder if there is any kselftest precident for > this, we'll need to investigate that. Ah, right. I forgot that carrying .o files in the upstream kernel is a bit weird. That may indeed be a blocker. [...] > > > > > > 8- Probably more I've already forgotten about :) Cross-compilation may > > > be interesting for build testing in the future. For the full AI created > > > commentary, there's > > > https://github.com/joe-lawrence/linux/blob/klp-build-selftests/README.md > > > > Yes, cross-compilation can be really useful. > > > > Agreed (I think Josh may be working on arm64 klp-build?) how many > dimensions of testing are we up to now :) We currently cross compile arm64 livepatch on x86_64 hosts with kpatch-build. We don't have to do the same with klp-build. But it is good to have the option. :) Thanks, Song
