Home
last modified time | relevance | path

Searched refs:prog_fd (Results 1 – 8 of 8) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/bpf/
Dbpf_prog04.c92 int map_fd, prog_fd; in run() local
95 prog_fd = load_prog(map_fd); in run()
97 if (prog_fd >= 0) { in run()
100 bpf_run_prog(prog_fd, msg, sizeof(MSG)); in run()
103 if (prog_fd >= 0) in run()
104 SAFE_CLOSE(prog_fd); in run()
Dbpf_prog01.c79 int map_fd, prog_fd; in run() local
84 prog_fd = load_prog(map_fd); in run()
86 bpf_run_prog(prog_fd, msg, sizeof(MSG)); in run()
87 SAFE_CLOSE(prog_fd); in run()
Dbpf_prog03.c117 int map_fd, prog_fd; in run() local
131 prog_fd = load_prog(map_fd); in run()
132 if (prog_fd == -1) in run()
137 bpf_run_prog(prog_fd, msg, sizeof(MSG)); in run()
138 SAFE_CLOSE(prog_fd); in run()
Dbpf_prog02.c79 int map_fd, prog_fd; in run() local
82 prog_fd = load_prog(map_fd); in run()
83 bpf_run_prog(prog_fd, msg, sizeof(MSG)); in run()
84 SAFE_CLOSE(prog_fd); in run()
Dbpf_prog05.c172 int prog_fd; in run() local
177 prog_fd = load_prog(); in run()
178 bpf_run_prog(prog_fd, msg, sizeof(MSG)); in run()
179 SAFE_CLOSE(prog_fd); in run()
Dbpf_common.c130 void bpf_run_prog(const int prog_fd, in bpf_run_prog() argument
137 &prog_fd, sizeof(prog_fd)); in bpf_run_prog()
Dbpf_common.h59 void bpf_run_prog(const int prog_fd,
/third_party/ltp/include/lapi/
Dbpf.h245 uint32_t prog_fd; member
293 uint32_t prog_fd; member