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 (11 lines) | stat: -rwxr-xr-x 356 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -o errexit

sudo modprobe xfs
sleep 5
grep -q kpatch /sys/fs/xfs/stats/stats
# 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/xfs/xfs_stats.c +p" > /sys/kernel/debug/dynamic_debug/control
# dmesg | grep -q "kpatch: pr_debug"