| 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | # |
| 4 | # Module.symvers records the build-tree path of the object that exports a |
| 5 | # symbol, not the name the module has at runtime: "arch/x86/kvm/kvm-intel", |
| 6 | # where the kernel knows the module as "kvm_intel". |
| 7 | # |
| 8 | # The klp symbol name embeds the owning object, and livepatch matches it |
| 9 | # against loaded modules by name. Left unnormalized it names a module that |
| 10 | # does not exist, and the relocation is never resolved -- at load time, with no |
| 11 | # build-time complaint. |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | # A path with directory components, a dash, and no extension. |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | # Directories stripped, dash to underscore. |
| 24 | |
| 25 | |
| 26 |