diff options
Diffstat (limited to 'src/seastar/dpdk/examples/bpf/dummy.c')
-rw-r--r-- | src/seastar/dpdk/examples/bpf/dummy.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/seastar/dpdk/examples/bpf/dummy.c b/src/seastar/dpdk/examples/bpf/dummy.c new file mode 100644 index 000000000..5851469e7 --- /dev/null +++ b/src/seastar/dpdk/examples/bpf/dummy.c @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Intel Corporation + */ + +/* + * eBPF program sample. + * does nothing always return success. + * used to measure BPF infrastructure overhead. + * To compile: + * clang -O2 -target bpf -c dummy.c + */ + +#include <stdint.h> +#include <stddef.h> + +uint64_t +entry(void *arg) +{ + return 1; +} |