Searched refs:load_attr (Results 1 – 3 of 3) sorted by relevance
937 struct bpf_prog_load_opts *load_attr, int prog_idx) in bpf_gen__prog_load() argument952 attr.expected_attach_type = load_attr->expected_attach_type; in bpf_gen__prog_load()953 attr.attach_btf_id = load_attr->attach_btf_id; in bpf_gen__prog_load()954 attr.prog_ifindex = load_attr->prog_ifindex; in bpf_gen__prog_load()957 attr.prog_flags = load_attr->prog_flags; in bpf_gen__prog_load()959 attr.func_info_rec_size = load_attr->func_info_rec_size; in bpf_gen__prog_load()960 attr.func_info_cnt = load_attr->func_info_cnt; in bpf_gen__prog_load()961 func_info = add_data(gen, load_attr->func_info, in bpf_gen__prog_load()964 attr.line_info_rec_size = load_attr->line_info_rec_size; in bpf_gen__prog_load()965 attr.line_info_cnt = load_attr->line_info_cnt; in bpf_gen__prog_load()[all …]
65 struct bpf_prog_load_opts *load_attr, int prog_idx);
7404 LIBBPF_OPTS(bpf_prog_load_opts, load_attr); in bpf_object_load_prog()7441 load_attr.attach_prog_fd = prog->attach_prog_fd; in bpf_object_load_prog()7442 load_attr.attach_btf_obj_fd = prog->attach_btf_obj_fd; in bpf_object_load_prog()7443 load_attr.attach_btf_id = prog->attach_btf_id; in bpf_object_load_prog()7444 load_attr.kern_version = kern_version; in bpf_object_load_prog()7445 load_attr.prog_ifindex = prog->prog_ifindex; in bpf_object_load_prog()7449 load_attr.prog_btf_fd = btf__fd(obj->btf); in bpf_object_load_prog()7450 load_attr.func_info = prog->func_info; in bpf_object_load_prog()7451 load_attr.func_info_rec_size = prog->func_info_rec_size; in bpf_object_load_prog()7452 load_attr.func_info_cnt = prog->func_info_cnt; in bpf_object_load_prog()[all …]