Lines Matching refs:load_attr
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()
7453 load_attr.line_info = prog->line_info; in bpf_object_load_prog()
7454 load_attr.line_info_rec_size = prog->line_info_rec_size; in bpf_object_load_prog()
7455 load_attr.line_info_cnt = prog->line_info_cnt; in bpf_object_load_prog()
7457 load_attr.log_level = log_level; in bpf_object_load_prog()
7458 load_attr.prog_flags = prog->prog_flags; in bpf_object_load_prog()
7459 load_attr.fd_array = obj->fd_array; in bpf_object_load_prog()
7461 load_attr.token_fd = obj->token_fd; in bpf_object_load_prog()
7463 load_attr.prog_flags |= BPF_F_TOKEN_FD; in bpf_object_load_prog()
7467 err = prog->sec_def->prog_prepare_load_fn(prog, &load_attr, prog->sec_def->cookie); in bpf_object_load_prog()
7478 load_attr.expected_attach_type = prog->expected_attach_type; in bpf_object_load_prog()
7482 license, insns, insns_cnt, &load_attr, in bpf_object_load_prog()
7516 load_attr.log_buf = log_buf; in bpf_object_load_prog()
7517 load_attr.log_size = log_buf_size; in bpf_object_load_prog()
7518 load_attr.log_level = log_level; in bpf_object_load_prog()
7520 ret = bpf_prog_load(prog->type, prog_name, license, insns, insns_cnt, &load_attr); in bpf_object_load_prog()