New upstream version 18.08
[deb_dpdk.git] / test / bpf / dummy.c
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
17 entry(void *arg)
18 {
19         return 1;
20 }