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