mirror of
https://github.com/dynup/kpatch
synced 2025-03-03 01:07:42 +00:00
This adds support for shadow variables, which allow you to add new "shadow" fields to existing data structures. To allow patches to call the shadow functions in the core module, I had to add a funky hack to use --warn-unresolved-symbols when linking, which allows the patched vmlinux to link with the missing symbols. I also added greps to the log file to ensure that only unresolved symbols to kpatch_shadow_* are allowed. We can remove this hack once the core module gets moved into the kernel tree. Fixes #314.
4 lines
45 B
Bash
Executable File
4 lines
45 B
Bash
Executable File
#!/bin/bash
|
|
|
|
grep -q newpid: /proc/$$/status
|