aboutsummaryrefslogtreecommitdiffstats
path: root/test/bpf/dummy.c
blob: 5851469e7911a904a2e23d14d035276f4189110c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}