commit b7e3c816175d251eb022bb899ab171850694eaff parent b184aa2dfa60f724fe717e97722744f7d6d25929 Author: Andreas Gruhler <andreas.gruhler@adfinis.com> Date: Sun, 14 May 2023 11:30:53 +0200 fix: comment Diffstat:
M | samples/xdp/hello-xdp.bcc.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/samples/xdp/hello-xdp.bcc.c b/samples/xdp/hello-xdp.bcc.c @@ -14,7 +14,8 @@ SEC("xdp") int hello_xdp(struct xdp_md *ctx) { - // libpf version of BCCs bpf_trace_printk() + // helper macro to print out debug messages, wrapper for bpf_trace_printk() + // /usr/include/bpf/bpf_helpers.h bpf_printk("received packet"); // XDP_PASS : let the packet pass // XDP_DROP : you shall not pass