Home
last modified time | relevance | path

Searched refs:prog_id (Results 1 – 22 of 22) sorted by relevance

/external/iproute2/ip/
Diplink_xdp.c87 __u32 prog_id = 0; in xdp_dump_json() local
92 prog_id = rta_getattr_u32(tb[IFLA_XDP_PROG_ID]); in xdp_dump_json()
96 if (prog_id) in xdp_dump_json()
97 bpf_dump_prog_info(NULL, prog_id); in xdp_dump_json()
104 __u32 prog_id = 0; in xdp_dump() local
129 prog_id = rta_getattr_u32(tb[IFLA_XDP_PROG_ID]); in xdp_dump()
131 if (prog_id && !link) in xdp_dump()
132 fprintf(fp, "/id:%u", prog_id); in xdp_dump()
137 if (prog_id) { in xdp_dump()
139 bpf_dump_prog_info(fp, prog_id); in xdp_dump()
/external/bcc/tests/python/
Dtest_brb.c9 u32 prog_id; member
14 u32 prog_id; member
70 meta.prog_id = meta.rx_port_id = 0; in pem()
72 meta.prog_id = skb->cb[0]; in pem()
76 if (!meta.prog_id) { in pem()
84 skb->cb[0] = dest_p->prog_id; in pem()
86 jump.call(skb, dest_p->prog_id); in pem()
210 skb->cb[0] = dest_p->prog_id; in br_common()
212 jump.call(skb, dest_p->prog_id); in br_common()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_skb_cgroup_id_user.c80 int get_map_fd_by_prog_id(int prog_id) in get_map_fd_by_prog_id() argument
88 prog_fd = bpf_prog_get_fd_by_id(prog_id); in get_map_fd_by_prog_id()
90 log_err("Failed to get fd by prog id %d", prog_id); in get_map_fd_by_prog_id()
116 int check_ancestor_cgroup_ids(int prog_id) in check_ancestor_cgroup_ids() argument
128 map_fd = get_map_fd_by_prog_id(prog_id); in check_ancestor_cgroup_ids()
Dtest_progs.c1549 __u32 len, prog_id, fd_type; in test_task_fd_query_rawtp() local
1565 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
1579 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
1591 err = bpf_task_fd_query(getpid(), efd, 0, 0, &len, &prog_id, in test_task_fd_query_rawtp()
1603 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
1628 __u32 len, prog_id, fd_type; in test_task_fd_query_tp_core() local
1671 err = bpf_task_fd_query(getpid(), pmu_fd, 0, buf, &len, &prog_id, in test_task_fd_query_tp_core()
/external/bcc/introspection/
Dbps.c178 static int print_one_prog(uint32_t prog_id) in print_one_prog() argument
189 prog_fd = bpf_prog_get_fd_by_id(prog_id); in print_one_prog()
192 fprintf(stderr, "BID:%u not found\n", prog_id); in print_one_prog()
207 nr_map_ids, prog_id); in print_one_prog()
219 prog_id, strerror(errno), errno); in print_one_prog()
/external/virglrenderer/src/
Dvrend_blitter.c699 GLuint prog_id; in vrend_renderer_blit_gl() local
750 prog_id = glCreateProgram(); in vrend_renderer_blit_gl()
751 glAttachShader(prog_id, blit_ctx->vs); in vrend_renderer_blit_gl()
761 glAttachShader(prog_id, fs_id); in vrend_renderer_blit_gl()
763 glLinkProgram(prog_id); in vrend_renderer_blit_gl()
764 glGetProgramiv(prog_id, GL_LINK_STATUS, &lret); in vrend_renderer_blit_gl()
768 glGetProgramInfoLog(prog_id, 65536, &len, infolog); in vrend_renderer_blit_gl()
771 glDeleteProgram(prog_id); in vrend_renderer_blit_gl()
775 glUseProgram(prog_id); in vrend_renderer_blit_gl()
808 pos_loc = glGetAttribLocation(prog_id, "arg0"); in vrend_renderer_blit_gl()
[all …]
Dvrend_renderer.c986 static void set_stream_out_varyings(int prog_id, struct vrend_shader_info *sinfo) in set_stream_out_varyings() argument
1037 glTransformFeedbackVaryings(prog_id, n_outputs, in set_stream_out_varyings()
1200 GLuint prog_id; in add_cs_shader_program() local
1202 prog_id = glCreateProgram(); in add_cs_shader_program()
1203 glAttachShader(prog_id, cs->id); in add_cs_shader_program()
1204 glLinkProgram(prog_id); in add_cs_shader_program()
1206 glGetProgramiv(prog_id, GL_LINK_STATUS, &lret); in add_cs_shader_program()
1210 glGetProgramInfoLog(prog_id, 65536, &len, infolog); in add_cs_shader_program()
1215 glDeleteProgram(prog_id); in add_cs_shader_program()
1222 sprog->id = prog_id; in add_cs_shader_program()
[all …]
/external/strace/tests-mx32/
Dbpf.c823 .prog_id = 0xdeadbeef
825 .size = offsetofend(struct BPF_PROG_GET_FD_BY_ID_struct, prog_id),
830 .prog_id = 0xbadc0ded,
838 .prog_id = 0xbadc0ded,
/external/strace/tests-m32/
Dbpf.c823 .prog_id = 0xdeadbeef
825 .size = offsetofend(struct BPF_PROG_GET_FD_BY_ID_struct, prog_id),
830 .prog_id = 0xbadc0ded,
838 .prog_id = 0xbadc0ded,
/external/strace/tests/
Dbpf.c823 .prog_id = 0xdeadbeef
825 .size = offsetofend(struct BPF_PROG_GET_FD_BY_ID_struct, prog_id),
830 .prog_id = 0xbadc0ded,
838 .prog_id = 0xbadc0ded,
/external/strace/
Dbpf_attr_check.c422 static_assert(SoM(struct BPF_PROG_GET_FD_BY_ID_struct, prog_id) == SoM(union bpf_attr, prog_id),
424 …_assert(offsetof(struct BPF_PROG_GET_FD_BY_ID_struct, prog_id) == offsetof(union bpf_attr, prog_id
Dbpf_attr.h196 uint32_t prog_id; member
Dbpf.c401 PRINT_FIELD_U("{", attr, prog_id); in BEGIN_BPF_CMD_DECODER()
Dconfig.h.in1540 /* Define to 1 if `prog_id' is a member of `union bpf_attr'. */
Dconfigure11285 ac_fn_c_check_member "$LINENO" "union bpf_attr" "prog_id" "ac_cv_member_union_bpf_attr_prog_id" "#i…
/external/strace/m4/
Dbpf_attr.m459 union bpf_attr.prog_id,
/external/kernel-headers/original/uapi/linux/
Dbpf.h402 __u32 prog_id; member
448 __u32 prog_id; /* output: prod_id */ member
/external/bcc/src/cc/compat/linux/
Dbpf.h367 __u32 prog_id; member
413 __u32 prog_id; /* output: prod_id */ member
/external/bcc/src/cc/includes/compat/linux/
Dbpf.h367 __u32 prog_id; member
413 __u32 prog_id; /* output: prod_id */ member
/external/iproute2/include/uapi/linux/
Dbpf.h242 __u32 prog_id; member
/external/bcc/src/cc/
Dlibbpf.c1457 attr.prog_id = id; in bpf_prog_get_fd_by_id()
/external/iproute2/lib/
Dbpf.c160 attr.prog_id = id; in bpf_prog_fd_by_id()