File: module-LOADED.test

package info (click to toggle)
kpatch 0.9.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,716 kB
  • sloc: ansic: 9,716; sh: 2,592; makefile: 260; asm: 35
file content (13 lines) | stat: -rwxr-xr-x 390 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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"