Skip to content

Commit

Permalink
Merge pull request iovisor#1583 from liubogithub/urandomfix
Browse files Browse the repository at this point in the history
Fix two issues in examples
  • Loading branch information
yonghong-song committed Feb 11, 2018
2 parents 3c468a4 + 7c34c05 commit 82970a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/tracing/sync_timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# load BPF program
b = BPF(text="""
#include <uapi/linux/ptrace.h>
#include <linux/blkdev.h>
BPF_HASH(last);
Expand Down
2 changes: 1 addition & 1 deletion examples/tracing/urandomread-explicit.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
int printarg(struct urandom_read_args *args) {
bpf_trace_printk("%d\\n", args->got_bits);
return 0;
};
}
"""

# load BPF program
Expand Down
2 changes: 1 addition & 1 deletion examples/tracing/urandomread.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// args is from /sys/kernel/debug/tracing/events/random/urandom_read/format
bpf_trace_printk("%d\\n", args->got_bits);
return 0;
};
}
""")

# header
Expand Down

0 comments on commit 82970a6

Please sign in to comment.