-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.lib_exports.o: No such file or directory #686
Comments
Note that |
Adding a |
According to upstream commit 9da2f584b54 So I think we should include a new regex pattern in kpatch-gcc to exclude it. (And shouldn't the |
|
Upstream kernel commit 7f2084fa55e6 ("[kbuild] handle exports in lib-y objects reliably") (v4.9+) added temporary dummy .lib_exports.o objects to the kernel build. As these ephemeral files don't contain any code, update the kpatch-gcc glob pattern to ignore them. (glob pattern suggested by flaming-toast) Fixes dynup#686.
@joe-lawrence Yeah, we cannot patch lib/ functions because they are simply not hookable by ftrace, and they're compiled without the -pg profiling option. See commit 2464a609ded "ftrace: do not trace library functions". And yes, it would be nice to document it somewhere :-) |
It's pretty much self-documenting, as if you try to create a patch for a lib/ function it will fail with |
@jpoimboe - I was thinking of the Limitations section of README.md, not the kpatch-build tool. |
@joe-lawrence Yeah, that would probably be a good idea. And it should mention that any function with a missing 'fentry' call can't be patched. |
Building meminfo-cmdline-rebuild-SLOW.patch against an upstream 4.10 kernel tree, I get the following error:
That file is listed in the changed objects file, but doesn't exist when kpatch-build tries to make copies.
The text was updated successfully, but these errors were encountered: