aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/bpftrace/zfs-trace.sh
blob: 13230b78c3c384a1e789f94788d8405c7be04af6 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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" \
	"$@"