xref: /dpdk/examples/bpf/dummy.c (revision 25d11a86c56d50947af33d0b79ede622809bd8b9)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 Intel Corporation
3  */
4 
5 /*
6  * eBPF program sample.
7  * does nothing always return success.
8  * used to measure BPF infrastructure overhead.
9  * To compile:
10  * clang -O2 -target bpf -c dummy.c
11  */
12 
13 #include <stdint.h>
14 #include <stddef.h>
15 
16 uint64_t
entry(void * arg)17 entry(void *arg)
18 {
19 	return 1;
20 }
21