Skip to content

Commit

Permalink
Compilation failures due to fentry issue [Backport of delphix#33 to 6…
Browse files Browse the repository at this point in the history
….0.3.0]
  • Loading branch information
brad-lewis authored and Don Brady committed May 14, 2020
1 parent fff5d57 commit cb864d6
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 @@ -260,7 +260,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 @@ -132,7 +132,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")
b.attach_kprobe(event="vdev_queue_io_done", fn_name="vdev_queue_done")
Expand Down
3 changes: 2 additions & 1 deletion bpf/stbtrace/zpl.st
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ int zfs_write_done(struct pt_regs *ctx)
"""
KVER = os.popen('uname -r').read().rstrip()
b = BPF(text=bpf_text,
cflags=["-I/usr/src/zfs-" + KVER + "/include/spl"])
cflags=["-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 @@ -394,7 +394,8 @@ class Args:
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/spl",
"-DCC_USING_FENTRY"]
if script_arg:
cflags.append("-DOPTARG=\"" + script_arg + "\"")

Expand Down

0 comments on commit cb864d6

Please sign in to comment.