repo.or.cz
/
zfs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix invalid pointer access in trace_dbuf.h
[zfs.git]
/
contrib
/
bpftrace
/
zfs-trace.sh
blob
0165335c474b0ad6de65e04e5719d7472b382561
1
#!/bin/sh
2
3
read -r
ZVER
< /
sys
/
module
/
zfs
/
version
4
ZVER
=
"
${ZVER%%-*}
"
5
KVER
=
$
(
uname
-r
)
6
7
exec
bpftrace \
8
--include
"/usr/src/zfs-
$ZVER
/
$KVER
/zfs_config.h"
\
9
-I
"/usr/src/zfs-
$ZVER
/include"
\
10
-I
"/usr/src/zfs-
$ZVER
/include/spl"
\
11
"$@"