Commit 8268edbe authored by Liu Bo's avatar Liu Bo

urandomread.py: remove extra tail semicolon after TRACEPOINT_PROBE

A function definition doesn't need a tail semicolon.
Signed-off-by: default avatarLiu Bo <liub.liubo@gmail.com>
parent e01c993a
...@@ -33,7 +33,7 @@ struct urandom_read_args { ...@@ -33,7 +33,7 @@ struct urandom_read_args {
int printarg(struct urandom_read_args *args) { int printarg(struct urandom_read_args *args) {
bpf_trace_printk("%d\\n", args->got_bits); bpf_trace_printk("%d\\n", args->got_bits);
return 0; return 0;
}; }
""" """
# load BPF program # load BPF program
......
...@@ -20,7 +20,7 @@ TRACEPOINT_PROBE(random, urandom_read) { ...@@ -20,7 +20,7 @@ TRACEPOINT_PROBE(random, urandom_read) {
// args is from /sys/kernel/debug/tracing/events/random/urandom_read/format // args is from /sys/kernel/debug/tracing/events/random/urandom_read/format
bpf_trace_printk("%d\\n", args->got_bits); bpf_trace_printk("%d\\n", args->got_bits);
return 0; return 0;
}; }
""") """)
# header # header
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment