Lines Matching refs:json_wtr
26 json_writer_t *json_wtr; variable
40 jsonw_destroy(&json_wtr); in clean_and_exit()
55 jsonw_null(json_wtr); in do_help()
145 jsonw_start_object(json_wtr); /* root object */ in do_version()
147 jsonw_name(json_wtr, "version"); in do_version()
149 jsonw_printf(json_wtr, "\"%s\"", BPFTOOL_VERSION); in do_version()
151 jsonw_printf(json_wtr, "\"%d.%d.%d\"", BPFTOOL_MAJOR_VERSION, in do_version()
154 jsonw_name(json_wtr, "libbpf_version"); in do_version()
155 jsonw_printf(json_wtr, "\"%d.%d\"", in do_version()
158 jsonw_name(json_wtr, "features"); in do_version()
159 jsonw_start_object(json_wtr); /* features */ in do_version()
160 jsonw_bool_field(json_wtr, "libbfd", has_libbfd); in do_version()
161 jsonw_bool_field(json_wtr, "llvm", has_llvm); in do_version()
162 jsonw_bool_field(json_wtr, "skeletons", has_skeletons); in do_version()
163 jsonw_bool_field(json_wtr, "bootstrap", bootstrap); in do_version()
164 jsonw_end_object(json_wtr); /* features */ in do_version()
166 jsonw_end_object(json_wtr); /* root object */ in do_version()
356 jsonw_start_array(json_wtr); in do_batch()
401 jsonw_start_object(json_wtr); in do_batch()
402 jsonw_name(json_wtr, "command"); in do_batch()
403 jsonw_start_array(json_wtr); in do_batch()
405 jsonw_string(json_wtr, n_argv[i]); in do_batch()
406 jsonw_end_array(json_wtr); in do_batch()
407 jsonw_name(json_wtr, "output"); in do_batch()
413 jsonw_end_object(json_wtr); in do_batch()
433 jsonw_end_array(json_wtr); in do_batch()
489 json_wtr = jsonw_new(stdout); in main()
490 if (!json_wtr) { in main()
496 jsonw_pretty(json_wtr, pretty_output); in main()
542 jsonw_destroy(&json_wtr); in main()