Home
last modified time | relevance | path

Searched refs:linum (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_skc_cls_ingress.c82 skel->bss->linum = 0; in reset_test()
87 if (skel->bss->linum) in print_err_line()
88 printf("bpf prog error at line %u\n", skel->bss->linum); in print_err_line()
133 CHECK(skel->bss->linum, "bpf prog detected error", "at line %u\n", in test_conn()
134 skel->bss->linum); in test_conn()
193 CHECK(skel->bss->linum, "bpf prog detected error", "at line %u\n", in test_syncookie()
194 skel->bss->linum); in test_syncookie()
H A Dsock_fields.c106 __u32 idx, ingress_linum, egress_linum, linum; in check_result() local
120 err = bpf_map_lookup_elem(linum_map_fd, &idx, &linum); in check_result()
122 ASSERT_EQ(linum, 0, "failure in read_sk_dst_port on line"); in check_result()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_skc_cls_ingress.c65 skel->bss->linum = 0; in reset_test()
70 if (skel->bss->linum) in print_err_line()
71 printf("bpf prog error at line %u\n", skel->bss->linum); in print_err_line()
116 CHECK(skel->bss->linum, "bpf prog detected error", "at line %u\n", in test_conn()
117 skel->bss->linum); in test_conn()
176 CHECK(skel->bss->linum, "bpf prog detected error", "at line %u\n", in test_syncookie()
177 skel->bss->linum); in test_syncookie()
H A Dsock_fields.c105 __u32 idx, ingress_linum, egress_linum, linum; in check_result() local
119 err = bpf_map_lookup_elem(linum_map_fd, &idx, &linum); in check_result()
121 ASSERT_EQ(linum, 0, "failure in read_sk_dst_port on line"); in check_result()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dxlated_dumper.h35 bool opcodes, bool linum);
37 bool opcodes, bool linum);
40 bool opcodes, bool linum);
H A Dmain.h181 bool linum);
190 bool linum) in disasm_print_insn()
229 const char *prefix, bool linum);
231 const struct bpf_line_info *linfo, bool linum);
233 const struct bpf_line_info *linfo, bool linum);
185 disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, const char *arch, const char *disassembler_options, const struct btf *btf, const struct bpf_prog_linfo *prog_linfo, __u64 func_ksym, unsigned int func_idx, bool linum) disasm_print_insn() argument
H A Dcfg.c385 bool opcodes, bool linum) in draw_bb_node()
406 opcodes, linum); in draw_bb_node()
434 bool opcodes, bool linum) in func_output_bb_def()
439 draw_bb_node(func, bb, dd, opcodes, linum); in func_output_bb_def()
460 cfg_dump(struct cfg *cfg, struct dump_data *dd, bool opcodes, bool linum) in cfg_dump() argument
468 func_output_bb_def(func, dd, opcodes, linum); in cfg_dump()
476 bool opcodes, bool linum) in dump_xlated_cfg()
485 cfg_dump(&cfg, dd, opcodes, linum); in dump_xlated_cfg()
384 draw_bb_node(struct func_node *func, struct bb_node *bb, struct dump_data *dd, bool opcodes, bool linum) draw_bb_node() argument
433 func_output_bb_def(struct func_node *func, struct dump_data *dd, bool opcodes, bool linum) func_output_bb_def() argument
475 dump_xlated_cfg(struct dump_data *dd, void *buf, unsigned int len, bool opcodes, bool linum) dump_xlated_cfg() argument
H A Dxlated_dumper.c219 bool opcodes, bool linum) in dump_xlated_json()
265 btf_dump_linfo_json(btf, linfo, linum); in dump_xlated_json()
304 bool opcodes, bool linum) in dump_xlated_plain()
345 linum); in dump_xlated_plain()
369 bool opcodes, bool linum) in dump_xlated_for_graph()
413 btf_dump_linfo_dotlabel(btf, linfo, linum); in dump_xlated_for_graph()
218 dump_xlated_json(struct dump_data *dd, void *buf, unsigned int len, bool opcodes, bool linum) dump_xlated_json() argument
303 dump_xlated_plain(struct dump_data *dd, void *buf, unsigned int len, bool opcodes, bool linum) dump_xlated_plain() argument
367 dump_xlated_for_graph(struct dump_data *dd, void *buf_start, void *buf_end, unsigned int start_idx, bool opcodes, bool linum) dump_xlated_for_graph() argument
H A Dcfg.h10 bool opcodes, bool linum);
H A Djit_disasm.c324 bool linum) in disasm_print_insn()
353 btf_dump_linfo_json(btf, linfo, linum); in disasm_print_insn()
359 linum); in disasm_print_insn()
319 disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, const char *arch, const char *disassembler_options, const struct btf *btf, const struct bpf_prog_linfo *prog_linfo, __u64 func_ksym, unsigned int func_idx, bool linum) disasm_print_insn() argument
H A Dbtf_dumper.c771 const char *prefix, bool linum) in btf_dump_linfo_plain()
782 if (linum) { in btf_dump_linfo_plain()
785 /* More forgiving on file because linum option is in btf_dump_linfo_plain()
802 const struct bpf_line_info *linfo, bool linum) in btf_dump_linfo_json()
809 if (linum) { in btf_dump_linfo_json()
875 const struct bpf_line_info *linfo, bool linum) in btf_dump_linfo_dotlabel()
883 if (linum) { in btf_dump_linfo_dotlabel()
887 /* More forgiving on file because linum option is in btf_dump_linfo_dotlabel()
769 btf_dump_linfo_plain(const struct btf *btf, const struct bpf_line_info *linfo, const char *prefix, bool linum) btf_dump_linfo_plain() argument
801 btf_dump_linfo_json(const struct btf *btf, const struct bpf_line_info *linfo, bool linum) btf_dump_linfo_json() argument
874 btf_dump_linfo_dotlabel(const struct btf *btf, const struct bpf_line_info *linfo, bool linum) btf_dump_linfo_dotlabel() argument
H A Dprog.c698 char *filepath, bool opcodes, bool visual, bool linum) in prog_dump()
824 linum)) in prog_dump()
853 dump_xlated_json(&dd, buf, member_len, opcodes, linum); in prog_dump()
855 dump_xlated_cfg(&dd, buf, member_len, opcodes, linum); in prog_dump()
857 dump_xlated_plain(&dd, buf, member_len, opcodes, linum); in prog_dump()
879 bool linum = false; in do_dump() local
933 } else if (is_prefix(*argv, "linum")) { in do_dump()
934 linum = true; in do_dump()
942 if (filepath && (opcodes || visual || linum)) { in do_dump()
943 p_err("'file' is not compatible with 'opcodes', 'visual', or 'linum'"); in do_dump()
697 prog_dump(struct bpf_prog_info *info, enum dump_mode mode, char *filepath, bool opcodes, bool visual, bool linum) prog_dump() argument
[all...]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dxlated_dumper.h33 bool opcodes, bool linum);
35 bool opcodes, bool linum);
H A Dmain.h200 bool linum);
209 bool linum) in disasm_print_insn()
248 const char *prefix, bool linum);
250 const struct bpf_line_info *linfo, bool linum);
204 disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, const char *arch, const char *disassembler_options, const struct btf *btf, const struct bpf_prog_linfo *prog_linfo, __u64 func_ksym, unsigned int func_idx, bool linum) disasm_print_insn() argument
H A Djit_disasm.c81 bool linum) in disasm_print_insn()
155 btf_dump_linfo_json(btf, linfo, linum); in disasm_print_insn()
161 linum); in disasm_print_insn()
76 disasm_print_insn(unsigned char *image, ssize_t len, int opcodes, const char *arch, const char *disassembler_options, const struct btf *btf, const struct bpf_prog_linfo *prog_linfo, __u64 func_ksym, unsigned int func_idx, bool linum) disasm_print_insn() argument
H A Dxlated_dumper.c206 bool opcodes, bool linum) in dump_xlated_json()
252 btf_dump_linfo_json(btf, linfo, linum); in dump_xlated_json()
291 bool opcodes, bool linum) in dump_xlated_plain()
332 linum); in dump_xlated_plain()
205 dump_xlated_json(struct dump_data *dd, void *buf, unsigned int len, bool opcodes, bool linum) dump_xlated_json() argument
290 dump_xlated_plain(struct dump_data *dd, void *buf, unsigned int len, bool opcodes, bool linum) dump_xlated_plain() argument
H A Dbtf_dumper.c731 const char *prefix, bool linum) in btf_dump_linfo_plain()
742 if (linum) { in btf_dump_linfo_plain()
745 /* More forgiving on file because linum option is in btf_dump_linfo_plain()
762 const struct bpf_line_info *linfo, bool linum) in btf_dump_linfo_json()
769 if (linum) { in btf_dump_linfo_json()
729 btf_dump_linfo_plain(const struct btf *btf, const struct bpf_line_info *linfo, const char *prefix, bool linum) btf_dump_linfo_plain() argument
761 btf_dump_linfo_json(const struct btf *btf, const struct bpf_line_info *linfo, bool linum) btf_dump_linfo_json() argument
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_btf_skc_cls_ingress.c23 __u32 linum = 0; variable
25 #define LOG() ({ if (!linum) linum = __LINE__; })
H A Dtest_sock_fields.c116 linum = __LINE__; \
117 bpf_map_update_elem(&linum_map, &linum_idx, &linum, BPF_ANY); \
128 __u32 linum, linum_idx; in egress_read_sock_fields() local
221 __u32 linum, linum_idx; in ingress_read_sock_fields() local
275 __u32 linum, linum_idx; in read_sk_dst_port() local
H A Dtest_select_reuseport_kern.c61 linum = __LINE__; \
68 __u32 linum, index = 0, flags = 0, index_zero = 0; in _select_by_skb_data() local
179 bpf_map_update_elem(&linum_map, &index_zero, &linum, BPF_ANY); in _select_by_skb_data()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_btf_skc_cls_ingress.c23 __u32 linum = 0; variable
25 #define LOG() ({ if (!linum) linum = __LINE__; })
H A Dtest_sock_fields.c116 linum = __LINE__; \
117 bpf_map_update_elem(&linum_map, &linum_idx, &linum, BPF_ANY); \
128 __u32 linum, linum_idx; in egress_read_sock_fields() local
221 __u32 linum, linum_idx; in ingress_read_sock_fields() local
284 __u32 linum, linum_idx; in read_sk_dst_port() local
H A Dtest_select_reuseport_kern.c59 linum = __LINE__; \
66 __u32 linum, index = 0, flags = 0, index_zero = 0; in _select_by_skb_data() local
177 bpf_map_update_elem(&linum_map, &index_zero, &linum, BPF_ANY); in _select_by_skb_data()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_tcp_hdr_options.h37 unsigned int linum; member
141 __linum_err.linum = __LINE__; \
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_tcp_hdr_options.h37 unsigned int linum; member
142 __linum_err.linum = __LINE__; \

Completed in 16 milliseconds

12