mirror of
https://github.com/dynup/kpatch
synced 2025-05-01 15:37:57 +00:00
Add patches rebased on top of upstream 5.18.0. Integration tests for these can be ran as this: $ make PATCH_DIR="linux-5.18.0" KPATCH_BUILD_OPTS="--non-replace --sourcedir /path/to/src/linux-5.18.0" integration-slow Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
14 lines
390 B
Bash
Executable File
14 lines
390 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
|
|
sudo modprobe nfsd
|
|
sleep 5
|
|
grep -q kpatch /proc/fs/nfs/exports
|
|
|
|
# TODO: This will trigger a printk on newer kernels which have the .klp.arch
|
|
# removal. Don't actually do the grep until running on a newer kernel.
|
|
echo "file fs/nfsd/export.c +p" > /sys/kernel/debug/dynamic_debug/control
|
|
cat /proc/fs/nfs/exports > /dev/null
|
|
# dmesg | grep -q "kpatch: pr_debug"
|