Lines Matching refs:json_wtr
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()
169 jsonw_int_field(json_wtr, "cpu", i); in print_entry_json()
171 jsonw_name(json_wtr, "value"); in print_entry_json()
175 jsonw_end_object(json_wtr); in print_entry_json()
177 jsonw_end_array(json_wtr); in print_entry_json()
181 .jw = json_wtr, in print_entry_json()
185 jsonw_name(json_wtr, "formatted"); in print_entry_json()
190 jsonw_end_object(json_wtr); in print_entry_json()
225 jsonw_start_object(json_wtr); /* entry */ in print_entry_error()
226 jsonw_name(json_wtr, "key"); in print_entry_error()
228 jsonw_name(json_wtr, "value"); in print_entry_error()
229 jsonw_start_object(json_wtr); /* error */ in print_entry_error()
230 jsonw_string_field(json_wtr, "error", strerror(lookup_errno)); in print_entry_error()
231 jsonw_end_object(json_wtr); /* error */ in print_entry_error()
232 jsonw_end_object(json_wtr); /* entry */ in print_entry_error()
476 jsonw_start_object(json_wtr); in show_map_close_json()
478 show_map_header_json(info, json_wtr); in show_map_close_json()
482 jsonw_uint_field(json_wtr, "bytes_key", info->key_size); in show_map_close_json()
483 jsonw_uint_field(json_wtr, "bytes_value", info->value_size); in show_map_close_json()
484 jsonw_uint_field(json_wtr, "max_entries", info->max_entries); in show_map_close_json()
487 jsonw_int_field(json_wtr, "bytes_memlock", atoll(memlock)); in show_map_close_json()
500 jsonw_string_field(json_wtr, "owner_prog_type", in show_map_close_json()
503 jsonw_uint_field(json_wtr, "owner_prog_type", in show_map_close_json()
507 jsonw_bool_field(json_wtr, "owner_jited", in show_map_close_json()
519 jsonw_int_field(json_wtr, "frozen", frozen); in show_map_close_json()
522 jsonw_int_field(json_wtr, "btf_id", info->btf_id); in show_map_close_json()
527 jsonw_name(json_wtr, "pinned"); in show_map_close_json()
528 jsonw_start_array(json_wtr); in show_map_close_json()
530 jsonw_string(json_wtr, entry->pvalue); in show_map_close_json()
531 jsonw_end_array(json_wtr); in show_map_close_json()
534 emit_obj_refs_json(refs_table, info->id, json_wtr); in show_map_close_json()
536 jsonw_end_object(json_wtr); in show_map_close_json()
647 jsonw_start_array(json_wtr); /* root array */ in do_show_subset()
666 jsonw_end_array(json_wtr); /* root array */ in do_show_subset()
699 jsonw_start_array(json_wtr); in do_show()
732 jsonw_end_array(json_wtr); in do_show()
917 wtr = json_wtr; in do_dump()
1027 jsonw_null(json_wtr); in do_update()
1095 jsonw_null(json_wtr); in do_lookup()
1159 jsonw_start_object(json_wtr); in do_getnext()
1161 jsonw_name(json_wtr, "key"); in do_getnext()
1164 jsonw_null_field(json_wtr, "key"); in do_getnext()
1166 jsonw_name(json_wtr, "next_key"); in do_getnext()
1168 jsonw_end_object(json_wtr); in do_getnext()
1225 jsonw_null(json_wtr); in do_delete()
1235 jsonw_null(json_wtr); in do_pin()
1347 jsonw_null(json_wtr); in do_create()
1379 jsonw_null(json_wtr); in do_pop_dequeue()
1423 jsonw_null(json_wtr); in do_freeze()
1431 jsonw_null(json_wtr); in do_help()