Lines Matching refs:json_wtr
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()
422 jsonw_string_field(json_wtr, "type", prog_type_str); in print_prog_header_json()
424 jsonw_uint_field(json_wtr, "type", info->type); in print_prog_header_json()
428 jsonw_string_field(json_wtr, "name", prog_name); in print_prog_header_json()
431 jsonw_name(json_wtr, "tag"); in print_prog_header_json()
432 jsonw_printf(json_wtr, "\"" BPF_TAG_FMT "\"", in print_prog_header_json()
436 jsonw_bool_field(json_wtr, "gpl_compatible", info->gpl_compatible); in print_prog_header_json()
438 jsonw_uint_field(json_wtr, "run_time_ns", info->run_time_ns); in print_prog_header_json()
439 jsonw_uint_field(json_wtr, "run_cnt", info->run_cnt); in print_prog_header_json()
442 jsonw_uint_field(json_wtr, "recursion_misses", info->recursion_misses); in print_prog_header_json()
449 jsonw_start_object(json_wtr); in print_prog_json()
459 jsonw_name(json_wtr, "loaded_at"); in print_prog_json()
460 jsonw_printf(json_wtr, "%s", buf); in print_prog_json()
461 jsonw_uint_field(json_wtr, "uid", info->created_by_uid); in print_prog_json()
464 jsonw_uint_field(json_wtr, "bytes_xlated", info->xlated_prog_len); in print_prog_json()
467 jsonw_bool_field(json_wtr, "jited", true); in print_prog_json()
468 jsonw_uint_field(json_wtr, "bytes_jited", info->jited_prog_len); in print_prog_json()
470 jsonw_bool_field(json_wtr, "jited", false); in print_prog_json()
475 jsonw_int_field(json_wtr, "bytes_memlock", atoll(memlock)); in print_prog_json()
482 jsonw_int_field(json_wtr, "btf_id", info->btf_id); in print_prog_json()
487 jsonw_name(json_wtr, "pinned"); in print_prog_json()
488 jsonw_start_array(json_wtr); in print_prog_json()
490 jsonw_string(json_wtr, entry->pvalue); in print_prog_json()
491 jsonw_end_array(json_wtr); in print_prog_json()
494 emit_obj_refs_json(refs_table, info->id, json_wtr); in print_prog_json()
498 jsonw_end_object(json_wtr); in print_prog_json()
613 jsonw_start_array(json_wtr); /* root array */ in do_show_subset()
624 jsonw_end_array(json_wtr); /* root array */ in do_show_subset()
655 jsonw_start_array(json_wtr); in do_show()
686 jsonw_end_array(json_wtr); in do_show()
760 jsonw_null(json_wtr); in prog_dump()
785 jsonw_start_array(json_wtr); in prog_dump()
807 jsonw_start_object(json_wtr); in prog_dump()
809 jsonw_name(json_wtr, "proto"); in prog_dump()
810 jsonw_string(json_wtr, func_sig); in prog_dump()
812 jsonw_name(json_wtr, "name"); in prog_dump()
813 jsonw_string(json_wtr, sym_name); in prog_dump()
814 jsonw_name(json_wtr, "insns"); in prog_dump()
830 jsonw_end_object(json_wtr); in prog_dump()
836 jsonw_end_array(json_wtr); in prog_dump()
952 jsonw_start_array(json_wtr); /* root array */ in do_dump()
975 jsonw_start_object(json_wtr); /* prog object */ in do_dump()
977 jsonw_name(json_wtr, "insns"); in do_dump()
985 jsonw_end_object(json_wtr); /* prog object */ in do_dump()
994 jsonw_end_array(json_wtr); /* root array */ in do_dump()
1011 jsonw_null(json_wtr); in do_pin()
1079 jsonw_null(json_wtr); in do_attach()
1101 jsonw_null(json_wtr); in do_detach()
1228 jsonw_name(json_wtr, json_key); in print_run_output()
1406 jsonw_start_object(json_wtr); /* root */ in do_run()
1421 jsonw_uint_field(json_wtr, "retval", test_attr.retval); in do_run()
1422 jsonw_uint_field(json_wtr, "duration", test_attr.duration); in do_run()
1423 jsonw_end_object(json_wtr); /* root */ in do_run()
1817 jsonw_null(json_wtr); in load_with_options()
2134 jsonw_start_array(json_wtr); in profile_print_readings_json()
2138 jsonw_start_object(json_wtr); in profile_print_readings_json()
2139 jsonw_string_field(json_wtr, "metric", metrics[m].name); in profile_print_readings_json()
2140 jsonw_lluint_field(json_wtr, "run_cnt", profile_total_count); in profile_print_readings_json()
2141 jsonw_lluint_field(json_wtr, "value", metrics[m].val.counter); in profile_print_readings_json()
2142 jsonw_lluint_field(json_wtr, "enabled", metrics[m].val.enabled); in profile_print_readings_json()
2143 jsonw_lluint_field(json_wtr, "running", metrics[m].val.running); in profile_print_readings_json()
2145 jsonw_end_object(json_wtr); in profile_print_readings_json()
2147 jsonw_end_array(json_wtr); in profile_print_readings_json()
2444 jsonw_null(json_wtr); in do_help()