/Linux-v5.4/tools/bpf/bpftool/ |
D | perf.c | 66 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 …]
|
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 | 78 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 …]
|
D | jit_disasm.c | 61 jsonw_string_field(json_wtr, "operation", s); in fprintf_json() 62 jsonw_name(json_wtr, "operands"); in fprintf_json() 63 jsonw_start_array(json_wtr); in fprintf_json() 68 jsonw_string(json_wtr, s); in fprintf_json() 139 jsonw_start_array(json_wtr); in disasm_print_insn() 151 jsonw_start_object(json_wtr); in disasm_print_insn() 155 jsonw_name(json_wtr, "pc"); in disasm_print_insn() 156 jsonw_printf(json_wtr, "\"0x%x\"", pc); in disasm_print_insn() 171 jsonw_null(json_wtr); in disasm_print_insn() 172 jsonw_end_array(json_wtr); in disasm_print_insn() [all …]
|
D | map.c | 210 jsonw_start_object(json_wtr); in print_entry_json() 213 jsonw_name(json_wtr, "key"); in print_entry_json() 215 jsonw_name(json_wtr, "value"); in print_entry_json() 220 .jw = json_wtr, in print_entry_json() 224 jsonw_name(json_wtr, "formatted"); in print_entry_json() 233 jsonw_name(json_wtr, "key"); in print_entry_json() 236 jsonw_name(json_wtr, "values"); in print_entry_json() 237 jsonw_start_array(json_wtr); in print_entry_json() 239 jsonw_start_object(json_wtr); in print_entry_json() 241 jsonw_int_field(json_wtr, "cpu", i); in print_entry_json() [all …]
|
D | main.c | 24 json_writer_t *json_wtr; variable 37 jsonw_destroy(&json_wtr); in clean_and_exit() 52 jsonw_null(json_wtr); in do_help() 72 jsonw_start_object(json_wtr); in do_version() 73 jsonw_name(json_wtr, "version"); in do_version() 74 jsonw_printf(json_wtr, "\"%s\"", BPFTOOL_VERSION); in do_version() 75 jsonw_end_object(json_wtr); in do_version() 267 jsonw_start_array(json_wtr); in do_batch() 310 jsonw_start_object(json_wtr); in do_batch() 311 jsonw_name(json_wtr, "command"); in do_batch() [all …]
|
D | cgroup.c | 87 jsonw_start_object(json_wtr); in show_bpf_prog() 88 jsonw_uint_field(json_wtr, "id", info.id); in show_bpf_prog() 89 jsonw_string_field(json_wtr, "attach_type", in show_bpf_prog() 91 jsonw_string_field(json_wtr, "attach_flags", in show_bpf_prog() 93 jsonw_string_field(json_wtr, "name", info.name); in show_bpf_prog() 94 jsonw_end_object(json_wtr); in show_bpf_prog() 196 jsonw_start_array(json_wtr); in do_show() 213 jsonw_end_array(json_wtr); in do_show() 264 jsonw_start_object(json_wtr); in do_show_tree_fn() 265 jsonw_string_field(json_wtr, "cgroup", fpath); in do_show_tree_fn() [all …]
|
D | feature.c | 67 jsonw_bool_field(json_wtr, feat_name, res); in print_bool_feature() 84 jsonw_null_field(json_wtr, name); in print_kernel_option() 90 jsonw_int_field(json_wtr, name, res); in print_kernel_option() 92 jsonw_string_field(json_wtr, name, value); in print_kernel_option() 106 jsonw_name(json_wtr, json_title); in print_start_section() 107 jsonw_start_object(json_wtr); in print_start_section() 121 jsonw_end_object(json_wtr); in print_end_then_start_section() 164 jsonw_int_field(json_wtr, "unprivileged_bpf_disabled", res); in probe_unprivileged_disabled() 190 jsonw_int_field(json_wtr, "bpf_jit_enable", res); in probe_jit_enable() 220 jsonw_int_field(json_wtr, "bpf_jit_harden", res); in probe_jit_harden() [all …]
|
D | prog.c | 184 jsonw_name(json_wtr, "map_ids"); in show_prog_maps() 185 jsonw_start_array(json_wtr); in show_prog_maps() 187 jsonw_uint(json_wtr, map_ids[i]); in show_prog_maps() 188 jsonw_end_array(json_wtr); in show_prog_maps() 201 jsonw_start_object(json_wtr); in print_prog_json() 202 jsonw_uint_field(json_wtr, "id", info->id); in print_prog_json() 204 jsonw_string_field(json_wtr, "type", in print_prog_json() 207 jsonw_uint_field(json_wtr, "type", info->type); in print_prog_json() 210 jsonw_string_field(json_wtr, "name", info->name); in print_prog_json() 212 jsonw_name(json_wtr, "tag"); in print_prog_json() [all …]
|
D | xlated_dumper.c | 134 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 …]
|
D | common.c | 38 jsonw_start_object(json_wtr); in p_err() 39 jsonw_name(json_wtr, "error"); in p_err() 40 jsonw_vprintf_enquote(json_wtr, fmt, ap); in p_err() 41 jsonw_end_object(json_wtr); in p_err() 340 jsonw_start_array(json_wtr); in print_data_json() 342 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json() 343 jsonw_end_array(json_wtr); in print_data_json() 350 jsonw_start_array(json_wtr); in print_hex_data_json() 352 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json() 353 jsonw_end_array(json_wtr); in print_hex_data_json() [all …]
|
D | btf.c | 87 json_writer_t *w = json_wtr; in dump_btf_type() 314 jsonw_end_object(json_wtr); in dump_btf_type() 328 jsonw_start_object(json_wtr); in dump_btf_raw() 329 jsonw_name(json_wtr, "types"); in dump_btf_raw() 330 jsonw_start_array(json_wtr); in dump_btf_raw() 348 jsonw_end_array(json_wtr); in dump_btf_raw() 349 jsonw_end_object(json_wtr); in dump_btf_raw() 737 jsonw_start_object(json_wtr); /* btf object */ in show_btf_json() 738 jsonw_uint_field(json_wtr, "id", info->id); in show_btf_json() 739 jsonw_uint_field(json_wtr, "size", info->btf_size); in show_btf_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 | net.c | 341 jsonw_null(json_wtr); in do_attach() 378 jsonw_null(json_wtr); in do_detach() 415 jsonw_start_array(json_wtr); in do_show() 439 jsonw_end_array(json_wtr); in do_show() 443 jsonw_null(json_wtr); in do_show() 455 jsonw_null(json_wtr); in do_help()
|
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 | btf_dumper.c | 600 jsonw_string_field(json_wtr, "src", ltrim(line)); in btf_dump_linfo_json() 606 jsonw_string_field(json_wtr, "file", file); in btf_dump_linfo_json() 609 jsonw_int_field(json_wtr, "line_num", in btf_dump_linfo_json() 613 jsonw_int_field(json_wtr, "line_col", in btf_dump_linfo_json()
|
D | main.h | 92 extern json_writer_t *json_wtr;
|