Lines Matching refs:json_wtr

144 		jsonw_name(json_wtr, "map_ids");
145 jsonw_start_array(json_wtr);
147 jsonw_uint(json_wtr, map_ids[i]);
148 jsonw_end_array(json_wtr);
280 .jw = json_wtr,
292 jsonw_name(json_wtr, "metadata");
293 jsonw_start_object(json_wtr);
297 jsonw_name(json_wtr, name + BPF_METADATA_PREFIX_LEN);
305 jsonw_end_object(json_wtr);
353 jsonw_uint_field(json_wtr, "id", info->id);
355 jsonw_string_field(json_wtr, "type",
358 jsonw_uint_field(json_wtr, "type", info->type);
361 jsonw_string_field(json_wtr, "name", info->name);
363 jsonw_name(json_wtr, "tag");
364 jsonw_printf(json_wtr, "\"" BPF_TAG_FMT "\"",
368 jsonw_bool_field(json_wtr, "gpl_compatible", info->gpl_compatible);
370 jsonw_uint_field(json_wtr, "run_time_ns", info->run_time_ns);
371 jsonw_uint_field(json_wtr, "run_cnt", info->run_cnt);
379 jsonw_start_object(json_wtr);
389 jsonw_name(json_wtr, "loaded_at");
390 jsonw_printf(json_wtr, "%s", buf);
391 jsonw_uint_field(json_wtr, "uid", info->created_by_uid);
394 jsonw_uint_field(json_wtr, "bytes_xlated", info->xlated_prog_len);
397 jsonw_bool_field(json_wtr, "jited", true);
398 jsonw_uint_field(json_wtr, "bytes_jited", info->jited_prog_len);
400 jsonw_bool_field(json_wtr, "jited", false);
405 jsonw_int_field(json_wtr, "bytes_memlock", atoi(memlock));
412 jsonw_int_field(json_wtr, "btf_id", info->btf_id);
417 jsonw_name(json_wtr, "pinned");
418 jsonw_start_array(json_wtr);
421 jsonw_string(json_wtr, obj->path);
423 jsonw_end_array(json_wtr);
426 emit_obj_refs_json(&refs_table, info->id, json_wtr);
430 jsonw_end_object(json_wtr);
539 jsonw_start_array(json_wtr); /* root array */
550 jsonw_end_array(json_wtr); /* root array */
574 jsonw_start_array(json_wtr);
605 jsonw_end_array(json_wtr);
673 jsonw_null(json_wtr);
700 jsonw_start_array(json_wtr);
722 jsonw_start_object(json_wtr);
724 jsonw_name(json_wtr, "proto");
725 jsonw_string(json_wtr, func_sig);
727 jsonw_name(json_wtr, "name");
728 jsonw_string(json_wtr, sym_name);
729 jsonw_name(json_wtr, "insns");
744 jsonw_end_object(json_wtr);
750 jsonw_end_array(json_wtr);
757 jsonw_null(json_wtr);
864 jsonw_start_array(json_wtr); /* root array */
873 jsonw_start_object(json_wtr); /* prog object */
875 jsonw_name(json_wtr, "insns");
884 jsonw_end_object(json_wtr); /* prog object */
894 jsonw_end_array(json_wtr); /* root array */
910 jsonw_null(json_wtr);
978 jsonw_null(json_wtr);
1000 jsonw_null(json_wtr);
1127 jsonw_name(json_wtr, json_key);
1306 jsonw_start_object(json_wtr); /* root */
1321 jsonw_uint_field(json_wtr, "retval", test_attr.retval);
1322 jsonw_uint_field(json_wtr, "duration", test_attr.duration);
1323 jsonw_end_object(json_wtr); /* root */
1622 jsonw_null(json_wtr);
1809 jsonw_start_array(json_wtr);
1813 jsonw_start_object(json_wtr);
1814 jsonw_string_field(json_wtr, "metric", metrics[m].name);
1815 jsonw_lluint_field(json_wtr, "run_cnt", profile_total_count);
1816 jsonw_lluint_field(json_wtr, "value", metrics[m].val.counter);
1817 jsonw_lluint_field(json_wtr, "enabled", metrics[m].val.enabled);
1818 jsonw_lluint_field(json_wtr, "running", metrics[m].val.running);
1820 jsonw_end_object(json_wtr);
1822 jsonw_end_array(json_wtr);
2096 jsonw_null(json_wtr);