Linux Perf
bpf.c File Reference
#include <errno.h>
#include <stdio.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <util/util.h>
#include <util/bpf-loader.h>
#include <util/evlist.h>
#include <linux/bpf.h>
#include <linux/filter.h>
#include <linux/kernel.h>
#include <api/fs/fs.h>
#include <bpf/bpf.h>
#include "tests.h"
#include "llvm.h"
#include "debug.h"
Include dependency graph for bpf.c:

Go to the source code of this file.

Macros

#define NR_ITERS   111
 
#define PERF_TEST_BPF_PATH   "/sys/fs/bpf/perf_test"
 

Functions

int test__bpf_subtest_get_nr (void)
 
const char * test__bpf_subtest_get_desc (int i __maybe_unused)
 
int test__bpf (struct test *test __maybe_unused, int i __maybe_unused)
 

Macro Definition Documentation

◆ NR_ITERS

#define NR_ITERS   111

Definition at line 18 of file bpf.c.

◆ PERF_TEST_BPF_PATH

#define PERF_TEST_BPF_PATH   "/sys/fs/bpf/perf_test"

Definition at line 19 of file bpf.c.

Function Documentation

◆ test__bpf()

int test__bpf ( struct test *test  __maybe_unused,
int i  __maybe_unused 
)

Definition at line 356 of file bpf.c.

◆ test__bpf_subtest_get_desc()

const char* test__bpf_subtest_get_desc ( int i  __maybe_unused)

Definition at line 351 of file bpf.c.

◆ test__bpf_subtest_get_nr()

int test__bpf_subtest_get_nr ( void  )

Definition at line 346 of file bpf.c.