Home
last modified time | relevance | path

Searched refs:bpf_object (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v4.19/tools/perf/util/
Dbpf-loader.h47 struct bpf_object;
55 struct bpf_object *bpf__prepare_load(const char *filename, bool source);
59 struct bpf_object *bpf__prepare_load_buffer(void *obj_buf, size_t obj_buf_sz,
64 int bpf__probe(struct bpf_object *obj);
65 int bpf__unprobe(struct bpf_object *obj);
66 int bpf__strerror_probe(struct bpf_object *obj, int err,
69 int bpf__load(struct bpf_object *obj);
70 int bpf__strerror_load(struct bpf_object *obj, int err,
72 int bpf__foreach_event(struct bpf_object *obj,
75 int bpf__config_obj(struct bpf_object *obj, struct parse_events_term *term,
[all …]
Dbpf-loader.c56 struct bpf_object *
59 struct bpf_object *obj; in bpf__prepare_load_buffer()
77 struct bpf_object *bpf__prepare_load(const char *filename, bool source) in bpf__prepare_load()
79 struct bpf_object *obj; in bpf__prepare_load()
122 struct bpf_object *obj, *tmp; in bpf__clear()
643 int bpf__probe(struct bpf_object *obj) in bpf__probe()
704 int bpf__unprobe(struct bpf_object *obj) in bpf__unprobe()
744 int bpf__load(struct bpf_object *obj) in bpf__load()
758 int bpf__foreach_event(struct bpf_object *obj, in bpf__foreach_event()
1182 bpf__obj_config_map(struct bpf_object *obj, in bpf__obj_config_map()
[all …]
Dparse-events.h153 struct bpf_object;
156 struct bpf_object *obj,
Dparse-events.l186 bpf_object [^,{}]+\.(o|bpf)[a-zA-Z0-9._]*
234 {bpf_object} |
359 {bpf_object} { if (!isbpf(yyscanner)) { USER_REJECT }; return str(yyscanner, PE_BPF_OBJECT); }
Dparse-events.c652 struct bpf_object *obj, in parse_events_load_bpf_obj()
705 struct bpf_object *obj, in parse_events_config_bpf()
787 struct bpf_object *obj; in parse_events_load_bpf()
/Linux-v4.19/tools/lib/bpf/
Dlibbpf.h67 struct bpf_object;
74 struct bpf_object *bpf_object__open(const char *path);
75 struct bpf_object *bpf_object__open_xattr(struct bpf_object_open_attr *attr);
76 struct bpf_object *bpf_object__open_buffer(void *obj_buf,
79 int bpf_object__pin(struct bpf_object *object, const char *path);
80 void bpf_object__close(struct bpf_object *object);
83 int bpf_object__load(struct bpf_object *obj);
84 int bpf_object__unload(struct bpf_object *obj);
85 const char *bpf_object__name(struct bpf_object *obj);
86 unsigned int bpf_object__kversion(struct bpf_object *obj);
[all …]
Dlibbpf.c162 struct bpf_object *obj;
183 struct bpf_object { struct
315 bpf_object__add_program(struct bpf_object *obj, void *data, size_t size, in bpf_object__add_program()
350 bpf_object__init_prog_names(struct bpf_object *obj) in bpf_object__init_prog_names()
402 static struct bpf_object *bpf_object__new(const char *path, in bpf_object__new()
406 struct bpf_object *obj; in bpf_object__new()
408 obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1); in bpf_object__new()
434 static void bpf_object__elf_finish(struct bpf_object *obj) in bpf_object__elf_finish()
452 static int bpf_object__elf_init(struct bpf_object *obj) in bpf_object__elf_init()
514 bpf_object__check_endianness(struct bpf_object *obj) in bpf_object__check_endianness()
[all …]
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_libbpf_open.c58 int test_walk_progs(struct bpf_object *obj, bool verbose) in test_walk_progs()
72 int test_walk_maps(struct bpf_object *obj, bool verbose) in test_walk_maps()
88 struct bpf_object *bpfobj = NULL; in test_open_file()
Dtest_progs.c86 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map()
103 struct bpf_object *obj; in test_pkt_access()
134 struct bpf_object *obj; in test_xdp()
174 struct bpf_object *obj; in test_xdp_adjust_tail()
230 struct bpf_object *obj; in test_l4lb()
319 struct bpf_object *obj; in test_xdp_noinline()
378 struct bpf_object *obj; in test_tcp_estats()
424 struct bpf_object *objs[nr_iters]; in test_bpf_obj_id()
664 struct bpf_object *obj; in test_pkt_md_access()
760 struct bpf_object *obj[num_progs]; in test_tp_attach_query()
[all …]
Dtest_tcpbpf_user.c57 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map()
76 struct bpf_object *obj; in main()
Dget_cgroup_id_user.c35 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map()
55 struct bpf_object *obj; in main()
Dtest_dev_cgroup.c28 struct bpf_object *obj; in main()
Dtest_lirc_mode2_user.c49 struct bpf_object *obj; in main()
Dtest_socket_cookie.c141 struct bpf_object *pobj; in run_test()
Dtest_select_reuseport.c38 static struct bpf_object *obj;
Dtest_sock_addr.c690 struct bpf_object *obj; in load_path()
/Linux-v4.19/tools/perf/tests/
Dbpf.c105 static int do_test(struct bpf_object *obj, int (*func)(void), in do_test()
206 static struct bpf_object *
209 struct bpf_object *obj; in prepare_bpf()
224 struct bpf_object *obj; in __test__bpf()
Dllvm.c14 struct bpf_object *obj; in test__bpf_parsing()
/Linux-v4.19/samples/bpf/
Dxdp1_user.c79 struct bpf_object *obj; in main()
Dxdp_fwd_user.c71 struct bpf_object *obj; in main()
Dxdp_adjust_tail_user.c76 struct bpf_object *obj; in main()
Dxdp_sample_pkts_user.c105 struct bpf_object *obj; in main()
Dxdp_rxq_info_user.c452 struct bpf_object *obj; in main()
Dxdpsock_user.c898 struct bpf_object *obj; in main()
/Linux-v4.19/tools/bpf/bpftool/
Dprog.c708 struct bpf_object *obj; in do_load()

12