Lines Matching refs:json_wtr
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()
243 jsonw_name(json_wtr, "value"); in print_entry_json()
247 jsonw_end_object(json_wtr); in print_entry_json()
249 jsonw_end_array(json_wtr); in print_entry_json()
253 .jw = json_wtr, in print_entry_json()
257 jsonw_name(json_wtr, "formatted"); in print_entry_json()
262 jsonw_end_object(json_wtr); in print_entry_json()
490 jsonw_start_object(json_wtr); in show_map_close_json()
492 jsonw_uint_field(json_wtr, "id", info->id); in show_map_close_json()
494 jsonw_string_field(json_wtr, "type", in show_map_close_json()
497 jsonw_uint_field(json_wtr, "type", info->type); in show_map_close_json()
500 jsonw_string_field(json_wtr, "name", info->name); in show_map_close_json()
502 jsonw_name(json_wtr, "flags"); in show_map_close_json()
503 jsonw_printf(json_wtr, "%d", info->map_flags); in show_map_close_json()
507 jsonw_uint_field(json_wtr, "bytes_key", info->key_size); in show_map_close_json()
508 jsonw_uint_field(json_wtr, "bytes_value", info->value_size); in show_map_close_json()
509 jsonw_uint_field(json_wtr, "max_entries", info->max_entries); in show_map_close_json()
512 jsonw_int_field(json_wtr, "bytes_memlock", atoi(memlock)); in show_map_close_json()
523 jsonw_string_field(json_wtr, "owner_prog_type", in show_map_close_json()
526 jsonw_uint_field(json_wtr, "owner_prog_type", in show_map_close_json()
530 jsonw_bool_field(json_wtr, "owner_jited", in show_map_close_json()
542 jsonw_int_field(json_wtr, "frozen", frozen); in show_map_close_json()
545 jsonw_int_field(json_wtr, "btf_id", info->btf_id); in show_map_close_json()
550 jsonw_name(json_wtr, "pinned"); in show_map_close_json()
551 jsonw_start_array(json_wtr); in show_map_close_json()
554 jsonw_string(json_wtr, obj->path); in show_map_close_json()
556 jsonw_end_array(json_wtr); in show_map_close_json()
559 jsonw_end_object(json_wtr); in show_map_close_json()
671 jsonw_start_array(json_wtr); in do_show()
704 jsonw_end_array(json_wtr); in do_show()
744 jsonw_start_object(json_wtr); in dump_map_elem()
745 jsonw_name(json_wtr, "key"); in dump_map_elem()
747 jsonw_name(json_wtr, "value"); in dump_map_elem()
748 jsonw_start_object(json_wtr); in dump_map_elem()
749 jsonw_string_field(json_wtr, "error", strerror(lookup_errno)); in dump_map_elem()
750 jsonw_end_object(json_wtr); in dump_map_elem()
751 jsonw_end_object(json_wtr); in dump_map_elem()
803 jsonw_start_array(json_wtr); in do_dump()
832 jsonw_end_array(json_wtr); in do_dump()
915 jsonw_null(json_wtr); in do_update()
987 jsonw_null(json_wtr); in do_lookup()
1051 jsonw_start_object(json_wtr); in do_getnext()
1053 jsonw_name(json_wtr, "key"); in do_getnext()
1056 jsonw_null_field(json_wtr, "key"); in do_getnext()
1058 jsonw_name(json_wtr, "next_key"); in do_getnext()
1060 jsonw_end_object(json_wtr); in do_getnext()
1117 jsonw_null(json_wtr); in do_delete()
1127 jsonw_null(json_wtr); in do_pin()
1218 jsonw_null(json_wtr); in do_create()
1245 jsonw_null(json_wtr); in do_pop_dequeue()
1289 jsonw_null(json_wtr); in do_freeze()
1297 jsonw_null(json_wtr); in do_help()