Lines Matching refs:json_wtr

206 		jsonw_name(json_wtr, "map_ids");
207 jsonw_start_array(json_wtr);
209 jsonw_uint(json_wtr, map_ids[i]);
210 jsonw_end_array(json_wtr);
342 .jw = json_wtr,
354 jsonw_name(json_wtr, "metadata");
355 jsonw_start_object(json_wtr);
359 jsonw_name(json_wtr, name + BPF_METADATA_PREFIX_LEN);
367 jsonw_end_object(json_wtr);
418 jsonw_uint_field(json_wtr, "id", info->id);
422 jsonw_string_field(json_wtr, "type", prog_type_str);
424 jsonw_uint_field(json_wtr, "type", info->type);
428 jsonw_string_field(json_wtr, "name", prog_name);
431 jsonw_name(json_wtr, "tag");
432 jsonw_printf(json_wtr, "\"" BPF_TAG_FMT "\"",
436 jsonw_bool_field(json_wtr, "gpl_compatible", info->gpl_compatible);
438 jsonw_uint_field(json_wtr, "run_time_ns", info->run_time_ns);
439 jsonw_uint_field(json_wtr, "run_cnt", info->run_cnt);
442 jsonw_uint_field(json_wtr, "recursion_misses", info->recursion_misses);
449 jsonw_start_object(json_wtr);
459 jsonw_name(json_wtr, "loaded_at");
460 jsonw_printf(json_wtr, "%s", buf);
461 jsonw_uint_field(json_wtr, "uid", info->created_by_uid);
464 jsonw_bool_field(json_wtr, "orphaned", orphaned);
465 jsonw_uint_field(json_wtr, "bytes_xlated", info->xlated_prog_len);
468 jsonw_bool_field(json_wtr, "jited", true);
469 jsonw_uint_field(json_wtr, "bytes_jited", info->jited_prog_len);
471 jsonw_bool_field(json_wtr, "jited", false);
476 jsonw_int_field(json_wtr, "bytes_memlock", atoll(memlock));
483 jsonw_int_field(json_wtr, "btf_id", info->btf_id);
488 jsonw_name(json_wtr, "pinned");
489 jsonw_start_array(json_wtr);
491 jsonw_string(json_wtr, entry->pvalue);
492 jsonw_end_array(json_wtr);
495 emit_obj_refs_json(refs_table, info->id, json_wtr);
499 jsonw_end_object(json_wtr);
617 jsonw_start_array(json_wtr); /* root array */
628 jsonw_end_array(json_wtr); /* root array */
659 jsonw_start_array(json_wtr);
690 jsonw_end_array(json_wtr);
764 jsonw_null(json_wtr);
789 jsonw_start_array(json_wtr);
811 jsonw_start_object(json_wtr);
813 jsonw_name(json_wtr, "proto");
814 jsonw_string(json_wtr, func_sig);
816 jsonw_name(json_wtr, "name");
817 jsonw_string(json_wtr, sym_name);
818 jsonw_name(json_wtr, "insns");
834 jsonw_end_object(json_wtr);
840 jsonw_end_array(json_wtr);
956 jsonw_start_array(json_wtr); /* root array */
979 jsonw_start_object(json_wtr); /* prog object */
981 jsonw_name(json_wtr, "insns");
989 jsonw_end_object(json_wtr); /* prog object */
998 jsonw_end_array(json_wtr); /* root array */
1015 jsonw_null(json_wtr);
1083 jsonw_null(json_wtr);
1105 jsonw_null(json_wtr);
1232 jsonw_name(json_wtr, json_key);
1410 jsonw_start_object(json_wtr); /* root */
1425 jsonw_uint_field(json_wtr, "retval", test_attr.retval);
1426 jsonw_uint_field(json_wtr, "duration", test_attr.duration);
1427 jsonw_end_object(json_wtr); /* root */
1824 jsonw_null(json_wtr);
2141 jsonw_start_array(json_wtr);
2145 jsonw_start_object(json_wtr);
2146 jsonw_string_field(json_wtr, "metric", metrics[m].name);
2147 jsonw_lluint_field(json_wtr, "run_cnt", profile_total_count);
2148 jsonw_lluint_field(json_wtr, "value", metrics[m].val.counter);
2149 jsonw_lluint_field(json_wtr, "enabled", metrics[m].val.enabled);
2150 jsonw_lluint_field(json_wtr, "running", metrics[m].val.running);
2152 jsonw_end_object(json_wtr);
2154 jsonw_end_array(json_wtr);
2451 jsonw_null(json_wtr);