4 ms·
I’m curious how git bisect was applied here. Wouldn’t you have to compile the whole kernel somehow and then run your test program using that kernel? Is that rea
by bananabiscuit 5y ago
I’m curious how git bisect was applied here. Wouldn’t you have to compile the whole kernel somehow and then run your test program using that kernel? Is that really what was done here?
- CasperDern 5y agoThe kernel is relatively easy to compile and install, so I would think that's exactly what they did.
- rfoo 5y agoYes? This is faster and easier than you may think it to be. Building a reasonably small kernel only takes ~a minute. People usually have fully automated git-bisect-run scripts for build & test in qemu.
- bananabiscuit 5y agoOh, interesting, did not know it could be so fast.
- gengkev 5y agoFor me, at least, there's an important difference missing from the debate over the term "C/C++": compiling C code is always much faster than you would expect, but compiling C++ code is always much slower than you would expect...
- db48x 5y agoAnd yet there's an ongoing effort to optimize the kernel compile time by rearranging all of the headers. On a modern machine with plenty of cores a kernel build is pretty quick, but they're talking about slicing 20% or more off the top. It's always slower than we'd like.
- cjbprime 5y agoPerhaps more importantly than being fast, it is scriptable. ("git bisect run" can take a shell command to run and interpret the exit code of, so you could script everything including the kernel recompiles and walk away for a few hours.)
- max_k 5y agoYes, that's what I did.