zfs-builds-mm/zfs-2.0.0-rc4/contrib/bpftrace/zfs-trace.sh
2020-10-22 14:20:35 +02:00

10 lines
227 B
Bash
Executable file

#!/bin/sh
ZVER=$(cat /sys/module/zfs/version | cut -f 1 -d '-')
KVER=$(uname -r)
bpftrace \
--include "/usr/src/zfs-$ZVER/$KVER/zfs_config.h" \
-I "/usr/src/zfs-$ZVER/include" \
-I "/usr/src/zfs-$ZVER/include/spl" \
"$@"