Lines Matching refs:info_linear
8380 struct bpf_prog_info_linear *info_linear; in libbpf_find_prog_btf_id() local
8385 info_linear = bpf_program__get_prog_info_linear(attach_prog_fd, 0); in libbpf_find_prog_btf_id()
8386 err = libbpf_get_error(info_linear); in libbpf_find_prog_btf_id()
8394 info = &info_linear->info; in libbpf_find_prog_btf_id()
8411 free(info_linear); in libbpf_find_prog_btf_id()
10386 struct bpf_prog_info_linear *info_linear; in bpf_program__get_prog_info_linear() local
10430 info_linear = malloc(sizeof(struct bpf_prog_info_linear) + data_len); in bpf_program__get_prog_info_linear()
10431 if (!info_linear) in bpf_program__get_prog_info_linear()
10435 info_linear->arrays = arrays; in bpf_program__get_prog_info_linear()
10436 memset(&info_linear->info, 0, sizeof(info)); in bpf_program__get_prog_info_linear()
10437 ptr = info_linear->data; in bpf_program__get_prog_info_linear()
10449 bpf_prog_info_set_offset_u32(&info_linear->info, in bpf_program__get_prog_info_linear()
10451 bpf_prog_info_set_offset_u32(&info_linear->info, in bpf_program__get_prog_info_linear()
10453 bpf_prog_info_set_offset_u64(&info_linear->info, in bpf_program__get_prog_info_linear()
10460 err = bpf_obj_get_info_by_fd(fd, &info_linear->info, &info_len); in bpf_program__get_prog_info_linear()
10463 free(info_linear); in bpf_program__get_prog_info_linear()
10477 v2 = bpf_prog_info_read_offset_u32(&info_linear->info, in bpf_program__get_prog_info_linear()
10483 v2 = bpf_prog_info_read_offset_u32(&info_linear->info, in bpf_program__get_prog_info_linear()
10490 info_linear->info_len = sizeof(struct bpf_prog_info); in bpf_program__get_prog_info_linear()
10491 info_linear->data_len = data_len; in bpf_program__get_prog_info_linear()
10493 return info_linear; in bpf_program__get_prog_info_linear()
10496 void bpf_program__bpil_addr_to_offs(struct bpf_prog_info_linear *info_linear) in bpf_program__bpil_addr_to_offs() argument
10504 if ((info_linear->arrays & (1UL << i)) == 0) in bpf_program__bpil_addr_to_offs()
10508 addr = bpf_prog_info_read_offset_u64(&info_linear->info, in bpf_program__bpil_addr_to_offs()
10510 offs = addr - ptr_to_u64(info_linear->data); in bpf_program__bpil_addr_to_offs()
10511 bpf_prog_info_set_offset_u64(&info_linear->info, in bpf_program__bpil_addr_to_offs()
10516 void bpf_program__bpil_offs_to_addr(struct bpf_prog_info_linear *info_linear) in bpf_program__bpil_offs_to_addr() argument
10524 if ((info_linear->arrays & (1UL << i)) == 0) in bpf_program__bpil_offs_to_addr()
10528 offs = bpf_prog_info_read_offset_u64(&info_linear->info, in bpf_program__bpil_offs_to_addr()
10530 addr = offs + ptr_to_u64(info_linear->data); in bpf_program__bpil_offs_to_addr()
10531 bpf_prog_info_set_offset_u64(&info_linear->info, in bpf_program__bpil_offs_to_addr()