Searched refs:prog_info (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 144 struct bpf_prog_info prog_info = {}; in test_bpf_obj_id() local 148 info_len = sizeof(prog_info); in test_bpf_obj_id() 172 prog_info.nr_map_ids = 1; in test_bpf_obj_id() 173 err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); in test_bpf_obj_id() 178 bzero(&prog_info, sizeof(prog_info)); in test_bpf_obj_id() 179 info_len = sizeof(prog_info); in test_bpf_obj_id() 182 prog_info.map_ids = prog_infos[i].map_ids; in test_bpf_obj_id() 183 prog_info.nr_map_ids = 2; in test_bpf_obj_id() 184 err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); in test_bpf_obj_id() 188 memcmp(&prog_info, &prog_infos[i], info_len) || in test_bpf_obj_id() [all …]
|
D | tp_attach_query.c | 13 struct bpf_prog_info prog_info; in test_tp_attach_query() local 43 bzero(&prog_info, sizeof(prog_info)); in test_tp_attach_query() 44 prog_info.jited_prog_len = 0; in test_tp_attach_query() 45 prog_info.xlated_prog_len = 0; in test_tp_attach_query() 46 prog_info.nr_map_ids = 0; in test_tp_attach_query() 47 info_len = sizeof(prog_info); in test_tp_attach_query() 48 err = bpf_obj_get_info_by_fd(prog_fd[i], &prog_info, &info_len); in test_tp_attach_query() 52 saved_prog_ids[i] = prog_info.id; in test_tp_attach_query()
|
/Linux-v5.4/tools/lib/bpf/ |
D | xsk.c | 388 struct bpf_prog_info prog_info = {}; in xsk_lookup_bpf_maps() local 392 err = bpf_obj_get_info_by_fd(xsk->prog_fd, &prog_info, &prog_len); in xsk_lookup_bpf_maps() 396 num_maps = prog_info.nr_map_ids; in xsk_lookup_bpf_maps() 398 map_ids = calloc(prog_info.nr_map_ids, sizeof(*map_ids)); in xsk_lookup_bpf_maps() 402 memset(&prog_info, 0, prog_len); in xsk_lookup_bpf_maps() 403 prog_info.nr_map_ids = num_maps; in xsk_lookup_bpf_maps() 404 prog_info.map_ids = (__u64)(unsigned long)map_ids; in xsk_lookup_bpf_maps() 406 err = bpf_obj_get_info_by_fd(xsk->prog_fd, &prog_info, &prog_len); in xsk_lookup_bpf_maps() 412 for (i = 0; i < prog_info.nr_map_ids; i++) { in xsk_lookup_bpf_maps()
|
/Linux-v5.4/include/uapi/linux/ |
D | cec-funcs.h | 372 __u8 prog_info, in cec_msg_timer_status() argument 381 (prog_info ? 0x10 : 0) | in cec_msg_timer_status() 382 (prog_info ? prog_info : prog_error); in cec_msg_timer_status() 383 if (prog_info == CEC_OP_PROG_INFO_NOT_ENOUGH_SPACE || in cec_msg_timer_status() 384 prog_info == CEC_OP_PROG_INFO_MIGHT_NOT_BE_ENOUGH_SPACE || in cec_msg_timer_status() 395 __u8 *prog_info, in cec_ops_timer_status() argument 403 *prog_info = msg->msg[2] & 0xf; in cec_ops_timer_status() 406 *prog_info = 0; in cec_ops_timer_status() 409 if (*prog_info == CEC_OP_PROG_INFO_NOT_ENOUGH_SPACE || in cec_ops_timer_status() 410 *prog_info == CEC_OP_PROG_INFO_MIGHT_NOT_BE_ENOUGH_SPACE || in cec_ops_timer_status()
|
/Linux-v5.4/tools/bpf/bpftool/ |
D | btf.c | 681 struct bpf_prog_info prog_info; in build_btf_tables() local 682 __u32 prog_len = sizeof(prog_info); in build_btf_tables() 687 err = build_btf_type_table(btf_prog_table, BPF_OBJ_PROG, &prog_info, in build_btf_tables()
|