numam-dpdk/test/bpf/dummy.c
Konstantin Ananyev 9dfc06c26a test/bpf: add samples
Add few simple eBPF programs as an example.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-05-12 00:38:10 +02:00

21 lines
337 B
C

/* 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;
}