RPM macros that list arches the full kernel is built on
Go to file
Eugene Syromiatnikov 4eeb063077 find-provides.ksyms, find-requires.ksyms: rewrite absolute CRC parsing
Avoid running sed on the whole "nm" output and also avoid "sed | awk"
pipe in favor of a single awk call.  Overall, this gives around 20%
speedup on some quick synthetic tests:

    $ time sh -c 'find ./lib/modules/5.14.0-258.el9.x86_64 -name "*.ko.xz" | find-provides.ksyms.old > /dev/null 2> /dev/null'
    sh -c   14.20s user 8.93s system 144% cpu 16.014 total
    $ time sh -c 'find ./lib/modules/5.14.0-258.el9.x86_64 -name "*.ko.xz" | find-provides.ksyms.new > /dev/null 2> /dev/null'
    sh -c   12.01s user 7.46s system 143% cpu 13.567 total
    $ time sh -c 'find ./lib/modules/5.14.0-258.el9.x86_64 -name "*.ko.xz" -exec sh -c "echo {} | find-provides.ksyms.old" \; > /dev/null 2> /dev/null'
    sh -c   16.31s user 10.77s system 134% cpu 20.092 total
    $ time sh -c 'find ./lib/modules/5.14.0-258.el9.x86_64 -name "*.ko.xz" -exec sh -c "echo {} | find-provides.ksyms.new" \; > /dev/null 2> /dev/null'
    sh -c   13.95s user 8.92s system 135% cpu 16.836 total

* find-provides.ksyms: Check presence of absolute __crc_* symbols with
"grep -q" exit code and not presence of sed output;  rewrite awk script to match
the __crc_* symbols instead of preprocessing the nm output with sed.
* find-requires.ksyms: Likewise.

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Resolves: #2135047
2023-03-07 14:52:22 +01:00
.gitignore Initial build 2020-07-21 14:06:48 -07:00
brp-kmod-restore-perms Add zstd kmod compression support 2021-11-18 16:44:20 +01:00
brp-kmod-set-exec-bit Enable extraction of debug information for kmods 2021-11-18 16:38:10 +01:00
find-provides.ksyms find-provides.ksyms, find-requires.ksyms: rewrite absolute CRC parsing 2023-03-07 14:52:22 +01:00
find-requires.ksyms find-provides.ksyms, find-requires.ksyms: rewrite absolute CRC parsing 2023-03-07 14:52:22 +01:00
firmware.prov Add zstd kmod compression support 2021-11-18 16:44:20 +01:00
kabi.attr Re-instantiate support for old symvers path 2021-11-18 16:33:11 +01:00
kabi.sh Improve Provides: kernel() generation for built-in modules 2021-11-18 16:44:20 +01:00
kernel-srpm-macros.spec Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild 2023-01-19 14:22:32 +00:00
kmod.attr Add zstd kmod compression support 2021-11-18 16:44:20 +01:00
kmodtool Add zstd kmod compression support 2021-11-18 16:44:20 +01:00
macros.kernel-srpm Initial build 2020-07-21 14:06:48 -07:00
macros.kmp macros.kmp: remove kernel-abi-stablelists from the dependency list 2021-11-18 17:55:06 +01:00
modalias.attr Add zstd kmod compression support 2021-11-18 16:44:20 +01:00
modalias.prov modalias.prov: stricter module aliase/version mangling 2021-11-18 16:44:20 +01:00
provided_ksyms.attr Add zstd kmod compression support 2021-11-18 16:44:20 +01:00
README.md Added the README 2020-07-21 21:00:28 +00:00
required_ksyms.attr Add zstd kmod compression support 2021-11-18 16:44:20 +01:00
rpmsort rpmsort: update the FSF address 2021-11-18 16:44:20 +01:00
sources Initial build 2020-07-21 14:06:48 -07:00
symset-table Adopt kernel-rpm-macros subpackage from redhat-rpm-config 2021-06-03 17:21:53 +02:00

kernel-srpm-macros

The kernel-srpm-macros package