/Linux-v6.6/tools/bpf/bpftool/ |
D | perf.c | 68 jsonw_start_object(json_wtr); in print_perf_json() 69 jsonw_int_field(json_wtr, "pid", pid); in print_perf_json() 70 jsonw_int_field(json_wtr, "fd", fd); in print_perf_json() 71 jsonw_uint_field(json_wtr, "prog_id", prog_id); in print_perf_json() 74 jsonw_string_field(json_wtr, "fd_type", "raw_tracepoint"); in print_perf_json() 75 jsonw_string_field(json_wtr, "tracepoint", buf); in print_perf_json() 78 jsonw_string_field(json_wtr, "fd_type", "tracepoint"); in print_perf_json() 79 jsonw_string_field(json_wtr, "tracepoint", buf); in print_perf_json() 82 jsonw_string_field(json_wtr, "fd_type", "kprobe"); in print_perf_json() 84 jsonw_string_field(json_wtr, "func", buf); in print_perf_json() [all …]
|
D | netlink_dumper.h | 10 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 …]
|
D | map_perf_ring.c | 70 jsonw_start_object(json_wtr); in print_bpf_output() 71 jsonw_name(json_wtr, "type"); in print_bpf_output() 72 jsonw_uint(json_wtr, e->header.type); in print_bpf_output() 73 jsonw_name(json_wtr, "cpu"); in print_bpf_output() 74 jsonw_uint(json_wtr, cpu); in print_bpf_output() 75 jsonw_name(json_wtr, "index"); in print_bpf_output() 76 jsonw_uint(json_wtr, idx); in print_bpf_output() 78 jsonw_name(json_wtr, "timestamp"); in print_bpf_output() 79 jsonw_uint(json_wtr, e->time); in print_bpf_output() 80 jsonw_name(json_wtr, "data"); in print_bpf_output() [all …]
|
D | main.c | 26 json_writer_t *json_wtr; variable 40 jsonw_destroy(&json_wtr); in clean_and_exit() 55 jsonw_null(json_wtr); in do_help() 145 jsonw_start_object(json_wtr); /* root object */ in do_version() 147 jsonw_name(json_wtr, "version"); in do_version() 149 jsonw_printf(json_wtr, "\"%s\"", BPFTOOL_VERSION); in do_version() 151 jsonw_printf(json_wtr, "\"%d.%d.%d\"", BPFTOOL_MAJOR_VERSION, in do_version() 154 jsonw_name(json_wtr, "libbpf_version"); in do_version() 155 jsonw_printf(json_wtr, "\"%d.%d\"", in do_version() 158 jsonw_name(json_wtr, "features"); in do_version() [all …]
|
D | link.c | 139 jsonw_uint_field(json_wtr, "prog_id", info->prog_id); in show_link_header_json() 225 jsonw_uint_field(json_wtr, "pf", in netfilter_dump_json() 227 jsonw_uint_field(json_wtr, "hook", in netfilter_dump_json() 229 jsonw_int_field(json_wtr, "prio", in netfilter_dump_json() 231 jsonw_uint_field(json_wtr, "flags", in netfilter_dump_json() 265 jsonw_bool_field(json_wtr, "retprobe", in show_kprobe_multi_json() 267 jsonw_uint_field(json_wtr, "func_cnt", info->kprobe_multi.count); in show_kprobe_multi_json() 268 jsonw_name(json_wtr, "funcs"); in show_kprobe_multi_json() 269 jsonw_start_array(json_wtr); in show_kprobe_multi_json() 279 jsonw_start_object(json_wtr); in show_kprobe_multi_json() [all …]
|
D | jit_disasm.c | 53 jsonw_string_field(json_wtr, "operation", s); in printf_json() 55 jsonw_name(json_wtr, "operands"); in printf_json() 56 jsonw_start_array(json_wtr); in printf_json() 60 jsonw_string(json_wtr, s); in printf_json() 176 jsonw_string_field(json_wtr, "operation", s); in printf_json() 177 jsonw_name(json_wtr, "operands"); in printf_json() 178 jsonw_start_array(json_wtr); in printf_json() 183 jsonw_string(json_wtr, s); in printf_json() 338 jsonw_start_array(json_wtr); in disasm_print_insn() 350 jsonw_start_object(json_wtr); in disasm_print_insn() [all …]
|
D | map.c | 135 jsonw_start_object(json_wtr); in print_entry_json() 138 jsonw_name(json_wtr, "key"); in print_entry_json() 140 jsonw_name(json_wtr, "value"); in print_entry_json() 143 jsonw_uint_field(json_wtr, "inner_map_id", in print_entry_json() 148 .jw = json_wtr, in print_entry_json() 152 jsonw_name(json_wtr, "formatted"); in print_entry_json() 161 jsonw_name(json_wtr, "key"); in print_entry_json() 164 jsonw_name(json_wtr, "values"); in print_entry_json() 165 jsonw_start_array(json_wtr); in print_entry_json() 167 jsonw_start_object(json_wtr); in print_entry_json() [all …]
|
D | cgroup.c | 133 jsonw_start_object(json_wtr); in show_bpf_prog() 134 jsonw_uint_field(json_wtr, "id", info.id); in show_bpf_prog() 136 jsonw_string_field(json_wtr, "attach_type", attach_type_str); in show_bpf_prog() 138 jsonw_uint_field(json_wtr, "attach_type", attach_type); in show_bpf_prog() 140 jsonw_string_field(json_wtr, "attach_flags", attach_flags_str); in show_bpf_prog() 141 jsonw_string_field(json_wtr, "name", prog_name); in show_bpf_prog() 143 jsonw_string_field(json_wtr, "attach_btf_name", attach_btf_name); in show_bpf_prog() 144 jsonw_uint_field(json_wtr, "attach_btf_obj_id", info.attach_btf_obj_id); in show_bpf_prog() 145 jsonw_uint_field(json_wtr, "attach_btf_id", info.attach_btf_id); in show_bpf_prog() 146 jsonw_end_object(json_wtr); in show_bpf_prog() [all …]
|
D | prog.c | 206 jsonw_name(json_wtr, "map_ids"); in show_prog_maps() 207 jsonw_start_array(json_wtr); in show_prog_maps() 209 jsonw_uint(json_wtr, map_ids[i]); in show_prog_maps() 210 jsonw_end_array(json_wtr); in show_prog_maps() 342 .jw = json_wtr, in show_prog_metadata() 354 jsonw_name(json_wtr, "metadata"); in show_prog_metadata() 355 jsonw_start_object(json_wtr); in show_prog_metadata() 359 jsonw_name(json_wtr, name + BPF_METADATA_PREFIX_LEN); in show_prog_metadata() 367 jsonw_end_object(json_wtr); in show_prog_metadata() 418 jsonw_uint_field(json_wtr, "id", info->id); in print_prog_header_json() [all …]
|
D | xlated_dumper.c | 141 jsonw_vprintf_enquote(json_wtr, chomped_fmt, args); in print_insn_json() 236 jsonw_start_array(json_wtr); in dump_xlated_json() 245 jsonw_start_object(json_wtr); in dump_xlated_json() 253 jsonw_name(json_wtr, "proto"); in dump_xlated_json() 254 jsonw_string(json_wtr, func_sig); in dump_xlated_json() 270 jsonw_name(json_wtr, "disasm"); in dump_xlated_json() 274 jsonw_name(json_wtr, "opcodes"); in dump_xlated_json() 275 jsonw_start_object(json_wtr); in dump_xlated_json() 277 jsonw_name(json_wtr, "code"); in dump_xlated_json() 278 jsonw_printf(json_wtr, "\"0x%02hhx\"", insn[i].code); in dump_xlated_json() [all …]
|
D | btf.c | 105 json_writer_t *w = json_wtr; in dump_btf_type() 411 jsonw_end_object(json_wtr); in dump_btf_type() 425 jsonw_start_object(json_wtr); in dump_btf_raw() 426 jsonw_name(json_wtr, "types"); in dump_btf_raw() 427 jsonw_start_array(json_wtr); in dump_btf_raw() 451 jsonw_end_array(json_wtr); in dump_btf_raw() 452 jsonw_end_object(json_wtr); in dump_btf_raw() 899 jsonw_start_object(json_wtr); /* btf object */ in show_btf_json() 900 jsonw_uint_field(json_wtr, "id", info->id); in show_btf_json() 901 jsonw_uint_field(json_wtr, "size", info->btf_size); in show_btf_json() [all …]
|
D | feature.c | 81 jsonw_bool_field(json_wtr, feat_name, res); in print_bool_feature() 97 jsonw_null_field(json_wtr, name); in print_kernel_option() 103 jsonw_int_field(json_wtr, name, res); in print_kernel_option() 105 jsonw_string_field(json_wtr, name, value); in print_kernel_option() 125 jsonw_name(json_wtr, json_title); in print_start_section() 126 jsonw_start_object(json_wtr); in print_start_section() 137 jsonw_end_object(json_wtr); in print_end_section() 203 jsonw_int_field(json_wtr, "unprivileged_bpf_disabled", res); in probe_unprivileged_disabled() 232 jsonw_int_field(json_wtr, "bpf_jit_enable", res); in probe_jit_enable() 262 jsonw_int_field(json_wtr, "bpf_jit_harden", res); in probe_jit_harden() [all …]
|
D | common.c | 46 jsonw_start_object(json_wtr); in p_err() 47 jsonw_name(json_wtr, "error"); in p_err() 48 jsonw_vprintf_enquote(json_wtr, fmt, ap); in p_err() 49 jsonw_end_object(json_wtr); in p_err() 453 jsonw_start_array(json_wtr); in print_data_json() 455 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json() 456 jsonw_end_array(json_wtr); in print_data_json() 463 jsonw_start_array(json_wtr); in print_hex_data_json() 465 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json() 466 jsonw_end_array(json_wtr); in print_hex_data_json() [all …]
|
D | tracelog.c | 118 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()
|
D | netlink_dumper.c | 52 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()
|
D | struct_ops.c | 229 jsonw_null(json_wtr); in do_search() 289 jsonw_null(json_wtr); in do_one_id() 345 NULL, json_wtr); in do_show() 402 json_writer_t *wtr = json_wtr; in do_dump() 596 jsonw_null(json_wtr); in do_register() 604 jsonw_null(json_wtr); in do_help()
|
D | net.c | 693 jsonw_null(json_wtr); in do_attach() 731 jsonw_null(json_wtr); in do_detach() 827 netfilter_dump_json(&nf_link_info[id], json_wtr); in show_link_netfilter() 870 jsonw_start_array(json_wtr); in do_show() 899 jsonw_end_array(json_wtr); in do_show() 903 jsonw_null(json_wtr); in do_show() 915 jsonw_null(json_wtr); in do_help()
|
D | main.h | 77 extern json_writer_t *json_wtr; 122 json_writer_t *json_wtr);
|
D | btf_dumper.c | 807 jsonw_string_field(json_wtr, "src", ltrim(line)); in btf_dump_linfo_json() 813 jsonw_string_field(json_wtr, "file", file); in btf_dump_linfo_json() 816 jsonw_int_field(json_wtr, "line_num", in btf_dump_linfo_json() 820 jsonw_int_field(json_wtr, "line_col", in btf_dump_linfo_json()
|
D | gen.c | 1615 jsonw_null(json_wtr); in do_help()
|