1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2021 Facebook */
5 #include <bpf/bpf_helpers.h>
8 char _license[] SEC("license") = "GPL";
13 static int empty_callback(__u32 index, void *data)
18 SEC("fentry/" SYS_PREFIX "sys_getpgid")
19 int benchmark(void *ctx)
21 for (int i = 0; i < 1000; i++) {
22 bpf_loop(nr_loops, empty_callback, NULL, 0);
24 __sync_add_and_fetch(&hits, nr_loops);