RPM macros that list arches the full kernel is built on
Go to file
Eugene Syromiatnikov 594e5a5a30 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-02-08 16:49:55 +01:00
.gitignore New branch setup 2020-10-08 15:57:43 +00:00
brp-kmod-restore-perms Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
brp-kmod-set-exec-bit Enable extraction of debug information for kmods 2021-11-18 14:22:00 +01:00
find-provides.ksyms find-provides.ksyms, find-requires.ksyms: rewrite absolute CRC parsing 2023-02-08 16:49:55 +01:00
find-requires.ksyms find-provides.ksyms, find-requires.ksyms: rewrite absolute CRC parsing 2023-02-08 16:49:55 +01:00
firmware.prov Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
gating.yaml gating.yaml: switch to BaseOS CI 2022-02-17 05:06:21 +01:00
kabi.attr Re-instantiate support for old symvers path 2021-11-18 14:22:00 +01:00
kabi.sh Improve Provides: kernel() generation for built-in modules 2021-11-18 14:50:11 +01:00
kernel-srpm-macros.spec find-provides.ksyms, find-requires.ksyms: work around printed __crc_* type change 2022-02-17 04:41:45 +01:00
kmod.attr Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
kmodtool Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
macros.kernel-srpm RHEL 9.0.0 Alpha bootstrap 2020-10-15 14:42:20 +02:00
macros.kmp Switch kmodtool-generated spec to internal dependency generator 2021-11-18 14:49:04 +01:00
modalias.attr Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
modalias.prov modalias.prov: stricter module aliase/version mangling 2021-11-18 14:50:11 +01:00
provided_ksyms.attr Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
README.md RHEL 9.0.0 Alpha bootstrap 2020-10-15 14:42:20 +02:00
required_ksyms.attr Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
rpmsort rpmsort: update the FSF address 2021-11-18 14:50:11 +01:00
sources RHEL 9.0.0 Alpha bootstrap 2020-10-15 14:42:20 +02:00
symset-table Adopt kernel-rpm-macros from redhat-rpm-config 2021-05-13 17:52:56 +02:00

kernel-srpm-macros

The kernel-srpm-macros package