Skip to content

Commit

Permalink
Compilation failures due to fentry issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-lewis committed Jan 31, 2020
1 parent 3f6c4b1 commit 9ec4410
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bpf/standalone/zil.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@
"-I/usr/src/zfs-" + KVER + "/include/",
"-I/usr/src/zfs-" + KVER + "/include/spl",
"-I/usr/src/zfs-" + KVER + "/include/",
"-I/usr/src/zfs-" + KVER + "/include/linux"])
"-I/usr/src/zfs-" + KVER + "/include/linux",
"-DCC_USING_FENTRY"])

b.attach_kprobe(event="zfs_write", fn_name="zfs_write_entry")
b.attach_kretprobe(event="zfs_write", fn_name="zfs_write_return")
Expand Down
3 changes: 2 additions & 1 deletion bpf/stbtrace/zio.st
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ b = BPF(text=bpf_text, cflags=["-include",
"/usr/src/zfs-" + KVER + "/zfs_config.h",
"-I/usr/src/zfs-" + KVER + "/include/",
"-I/usr/src/zfs-" + KVER + "/include/spl/",
"-I/usr/src/zfs-" + KVER + "/include/linux"])
"-I/usr/src/zfs-" + KVER + "/include/linux",
"-DCC_USING_FENTRY"])

b.attach_kretprobe(event="vdev_queue_io_to_issue",
fn_name="vdev_queue_issue_return")
Expand Down
3 changes: 2 additions & 1 deletion bpf/stbtrace/zpl.st
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ b = BPF(text=bpf_text,
"-include",
"/usr/src/zfs-" + KVER + "/include/spl/sys/types.h",
"-I/usr/src/zfs-" + KVER + "/include/",
"-I/usr/src/zfs-" + KVER + "/include/spl/"])
"-I/usr/src/zfs-" + KVER + "/include/spl/",
"-DCC_USING_FENTRY"])

b.attach_kprobe(event="zfs_read", fn_name="zfs_read_start")
b.attach_kprobe(event="zfs_write", fn_name="zfs_write_start")
Expand Down
3 changes: 2 additions & 1 deletion cmd/estat.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ class Args:
"-include",
"/usr/src/zfs-" + KVER + "/include/spl/sys/types.h",
"-I/usr/src/zfs-" + KVER + "/include/",
"-I/usr/src/zfs-" + KVER + "/include/spl"]
"-I/usr/src/zfs-" + KVER + "/include/spl",
"-DCC_USING_FENTRY"]
if script_arg:
cflags.append("-DOPTARG=\"" + script_arg + "\"")

Expand Down

0 comments on commit 9ec4410

Please sign in to comment.