projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97c3361
)
samples/bpf: fix xdp_monitor user output for tracepoint exception
author
Jesper Dangaard Brouer
<brouer@redhat.com>
Tue, 17 Apr 2018 14:08:06 +0000
(16:08 +0200)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Wed, 18 Apr 2018 12:48:06 +0000
(14:48 +0200)
The variable rec_i contains an XDP action code not an error.
Thus, using err2str() was wrong, it should have been action2str().
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/xdp_monitor_user.c
patch
|
blob
|
history
diff --git
a/samples/bpf/xdp_monitor_user.c
b/samples/bpf/xdp_monitor_user.c
index eec14520d5135f26bcfbdbf7b6d737274d14cd0c..894bc64c2cac651851c0603e8f51af45a3692a45 100644
(file)
--- a/
samples/bpf/xdp_monitor_user.c
+++ b/
samples/bpf/xdp_monitor_user.c
@@
-330,7
+330,7
@@
static void stats_print(struct stats_record *stats_rec,
pps = calc_pps_u64(r, p, t);
if (pps > 0)
printf(fmt1, "Exception", i,
- 0.0, pps,
err
2str(rec_i));
+ 0.0, pps,
action
2str(rec_i));
}
pps = calc_pps_u64(&rec->total, &prev->total, t);
if (pps > 0)