Home
last modified time | relevance | path

Searched refs:json_wtr (Results 1 – 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dperf.c66 jsonw_start_object(json_wtr); in print_perf_json()
67 jsonw_int_field(json_wtr, "pid", pid); in print_perf_json()
68 jsonw_int_field(json_wtr, "fd", fd); in print_perf_json()
69 jsonw_uint_field(json_wtr, "prog_id", prog_id); in print_perf_json()
72 jsonw_string_field(json_wtr, "fd_type", "raw_tracepoint"); in print_perf_json()
73 jsonw_string_field(json_wtr, "tracepoint", buf); in print_perf_json()
76 jsonw_string_field(json_wtr, "fd_type", "tracepoint"); in print_perf_json()
77 jsonw_string_field(json_wtr, "tracepoint", buf); in print_perf_json()
80 jsonw_string_field(json_wtr, "fd_type", "kprobe"); in print_perf_json()
82 jsonw_string_field(json_wtr, "func", buf); in print_perf_json()
[all …]
Dnetlink_dumper.h10 jsonw_start_object(json_wtr); \
16 jsonw_name(json_wtr, name); \
17 jsonw_start_object(json_wtr); \
26 jsonw_start_object(json_wtr); \
34 jsonw_end_object(json_wtr); \
42 jsonw_end_object(json_wtr); \
48 jsonw_end_object(json_wtr); \
56 jsonw_name(json_wtr, name); \
57 jsonw_start_array(json_wtr); \
66 jsonw_end_array(json_wtr); \
[all …]
Dmap_perf_ring.c78 jsonw_start_object(json_wtr); in print_bpf_output()
79 jsonw_name(json_wtr, "type"); in print_bpf_output()
80 jsonw_uint(json_wtr, e->header.type); in print_bpf_output()
81 jsonw_name(json_wtr, "cpu"); in print_bpf_output()
82 jsonw_uint(json_wtr, cpu); in print_bpf_output()
83 jsonw_name(json_wtr, "index"); in print_bpf_output()
84 jsonw_uint(json_wtr, idx); in print_bpf_output()
86 jsonw_name(json_wtr, "timestamp"); in print_bpf_output()
87 jsonw_uint(json_wtr, e->time); in print_bpf_output()
88 jsonw_name(json_wtr, "data"); in print_bpf_output()
[all …]
Djit_disasm.c62 jsonw_string_field(json_wtr, "operation", s); in fprintf_json()
63 jsonw_name(json_wtr, "operands"); in fprintf_json()
64 jsonw_start_array(json_wtr); in fprintf_json()
69 jsonw_string(json_wtr, s); in fprintf_json()
140 jsonw_start_array(json_wtr); in disasm_print_insn()
152 jsonw_start_object(json_wtr); in disasm_print_insn()
156 jsonw_name(json_wtr, "pc"); in disasm_print_insn()
157 jsonw_printf(json_wtr, "\"0x%x\"", pc); in disasm_print_insn()
172 jsonw_null(json_wtr); in disasm_print_insn()
173 jsonw_end_array(json_wtr); in disasm_print_insn()
[all …]
Dmain.c24 json_writer_t *json_wtr; variable
39 jsonw_destroy(&json_wtr); in clean_and_exit()
54 jsonw_null(json_wtr); in do_help()
85 jsonw_start_object(json_wtr); /* root object */ in do_version()
87 jsonw_name(json_wtr, "version"); in do_version()
88 jsonw_printf(json_wtr, "\"%s\"", BPFTOOL_VERSION); in do_version()
90 jsonw_name(json_wtr, "features"); in do_version()
91 jsonw_start_object(json_wtr); /* features */ in do_version()
92 jsonw_bool_field(json_wtr, "libbfd", has_libbfd); in do_version()
93 jsonw_bool_field(json_wtr, "skeletons", has_skeletons); in do_version()
[all …]
Dlink.c68 jsonw_uint_field(json_wtr, "prog_id", info->prog_id); in show_link_header_json()
118 jsonw_start_object(json_wtr); in show_link_close_json()
120 show_link_header_json(info, json_wtr); in show_link_close_json()
124 jsonw_string_field(json_wtr, "tp_name", in show_link_close_json()
133 jsonw_string_field(json_wtr, "prog_type", in show_link_close_json()
136 jsonw_uint_field(json_wtr, "prog_type", in show_link_close_json()
140 json_wtr); in show_link_close_json()
143 jsonw_lluint_field(json_wtr, "cgroup_id", in show_link_close_json()
145 show_link_attach_type_json(info->cgroup.attach_type, json_wtr); in show_link_close_json()
148 show_iter_json(info, json_wtr); in show_link_close_json()
[all …]
Dcgroup.c67 jsonw_start_object(json_wtr); in show_bpf_prog()
68 jsonw_uint_field(json_wtr, "id", info.id); in show_bpf_prog()
70 jsonw_string_field(json_wtr, "attach_type", in show_bpf_prog()
73 jsonw_uint_field(json_wtr, "attach_type", attach_type); in show_bpf_prog()
74 jsonw_string_field(json_wtr, "attach_flags", in show_bpf_prog()
76 jsonw_string_field(json_wtr, "name", info.name); in show_bpf_prog()
77 jsonw_end_object(json_wtr); in show_bpf_prog()
210 jsonw_start_array(json_wtr); in do_show()
227 jsonw_end_array(json_wtr); in do_show()
270 jsonw_start_object(json_wtr); in do_show_tree_fn()
[all …]
Dmap.c161 jsonw_start_object(json_wtr); in print_entry_json()
164 jsonw_name(json_wtr, "key"); in print_entry_json()
166 jsonw_name(json_wtr, "value"); in print_entry_json()
171 .jw = json_wtr, in print_entry_json()
175 jsonw_name(json_wtr, "formatted"); in print_entry_json()
184 jsonw_name(json_wtr, "key"); in print_entry_json()
187 jsonw_name(json_wtr, "values"); in print_entry_json()
188 jsonw_start_array(json_wtr); in print_entry_json()
190 jsonw_start_object(json_wtr); in print_entry_json()
192 jsonw_int_field(json_wtr, "cpu", i); in print_entry_json()
[all …]
Dprog.c144 jsonw_name(json_wtr, "map_ids"); in show_prog_maps()
145 jsonw_start_array(json_wtr); in show_prog_maps()
147 jsonw_uint(json_wtr, map_ids[i]); in show_prog_maps()
148 jsonw_end_array(json_wtr); in show_prog_maps()
280 .jw = json_wtr, in show_prog_metadata()
292 jsonw_name(json_wtr, "metadata"); in show_prog_metadata()
293 jsonw_start_object(json_wtr); in show_prog_metadata()
297 jsonw_name(json_wtr, name + BPF_METADATA_PREFIX_LEN); in show_prog_metadata()
305 jsonw_end_object(json_wtr); in show_prog_metadata()
353 jsonw_uint_field(json_wtr, "id", info->id); in print_prog_header_json()
[all …]
Dxlated_dumper.c134 jsonw_vprintf_enquote(json_wtr, chomped_fmt, args); in print_insn_json()
223 jsonw_start_array(json_wtr); in dump_xlated_json()
232 jsonw_start_object(json_wtr); in dump_xlated_json()
240 jsonw_name(json_wtr, "proto"); in dump_xlated_json()
241 jsonw_string(json_wtr, func_sig); in dump_xlated_json()
257 jsonw_name(json_wtr, "disasm"); in dump_xlated_json()
261 jsonw_name(json_wtr, "opcodes"); in dump_xlated_json()
262 jsonw_start_object(json_wtr); in dump_xlated_json()
264 jsonw_name(json_wtr, "code"); in dump_xlated_json()
265 jsonw_printf(json_wtr, "\"0x%02hhx\"", insn[i].code); in dump_xlated_json()
[all …]
Dfeature.c75 jsonw_bool_field(json_wtr, feat_name, res); in print_bool_feature()
91 jsonw_null_field(json_wtr, name); in print_kernel_option()
97 jsonw_int_field(json_wtr, name, res); in print_kernel_option()
99 jsonw_string_field(json_wtr, name, value); in print_kernel_option()
119 jsonw_name(json_wtr, json_title); in print_start_section()
120 jsonw_start_object(json_wtr); in print_start_section()
131 jsonw_end_object(json_wtr); in print_end_section()
171 jsonw_int_field(json_wtr, "unprivileged_bpf_disabled", res); in probe_unprivileged_disabled()
197 jsonw_int_field(json_wtr, "bpf_jit_enable", res); in probe_jit_enable()
227 jsonw_int_field(json_wtr, "bpf_jit_harden", res); in probe_jit_harden()
[all …]
Dbtf.c103 json_writer_t *w = json_wtr; in dump_btf_type()
335 jsonw_end_object(json_wtr); in dump_btf_type()
349 jsonw_start_object(json_wtr); in dump_btf_raw()
350 jsonw_name(json_wtr, "types"); in dump_btf_raw()
351 jsonw_start_array(json_wtr); in dump_btf_raw()
369 jsonw_end_array(json_wtr); in dump_btf_raw()
370 jsonw_end_object(json_wtr); in dump_btf_raw()
776 jsonw_start_object(json_wtr); /* btf object */ in show_btf_json()
777 jsonw_uint_field(json_wtr, "id", info->id); in show_btf_json()
778 jsonw_uint_field(json_wtr, "size", info->btf_size); in show_btf_json()
[all …]
Dcommon.c77 jsonw_start_object(json_wtr); in p_err()
78 jsonw_name(json_wtr, "error"); in p_err()
79 jsonw_vprintf_enquote(json_wtr, fmt, ap); in p_err()
80 jsonw_end_object(json_wtr); in p_err()
375 jsonw_start_array(json_wtr); in print_data_json()
377 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json()
378 jsonw_end_array(json_wtr); in print_data_json()
385 jsonw_start_array(json_wtr); in print_hex_data_json()
387 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json()
388 jsonw_end_array(json_wtr); in print_hex_data_json()
[all …]
Dtracelog.c118 jsonw_end_array(json_wtr); in exit_tracelog()
119 jsonw_destroy(&json_wtr); in exit_tracelog()
134 jsonw_start_array(json_wtr); in do_tracelog()
158 jsonw_string(json_wtr, buff); in do_tracelog()
Dstruct_ops.c231 jsonw_null(json_wtr); in do_search()
291 jsonw_null(json_wtr); in do_one_id()
347 NULL, json_wtr); in do_show()
404 json_writer_t *wtr = json_wtr; in do_dump()
556 jsonw_null(json_wtr); in do_register()
564 jsonw_null(json_wtr); in do_help()
Dnetlink_dumper.c52 jsonw_name(json_wtr, "multi_attachments"); in do_xdp_dump_one()
53 jsonw_start_array(json_wtr); in do_xdp_dump_one()
59 jsonw_end_array(json_wtr); in do_xdp_dump_one()
Dnet.c605 jsonw_null(json_wtr); in do_attach()
643 jsonw_null(json_wtr); in do_detach()
680 jsonw_start_array(json_wtr); in do_show()
704 jsonw_end_array(json_wtr); in do_show()
708 jsonw_null(json_wtr); in do_show()
720 jsonw_null(json_wtr); in do_help()
Dmain.h86 extern json_writer_t *json_wtr;
146 json_writer_t *json_wtr);
Dbtf_dumper.c767 jsonw_string_field(json_wtr, "src", ltrim(line)); in btf_dump_linfo_json()
773 jsonw_string_field(json_wtr, "file", file); in btf_dump_linfo_json()
776 jsonw_int_field(json_wtr, "line_num", in btf_dump_linfo_json()
780 jsonw_int_field(json_wtr, "line_col", in btf_dump_linfo_json()
Dgen.c597 jsonw_null(json_wtr); in do_help()