Lines Matching refs:wtr
182 struct json_writer *wtr);
189 struct json_writer *wtr) in do_search() argument
202 if (wtr) in do_search()
203 jsonw_start_array(wtr); in do_search()
206 err = func(fd, info, data, wtr); in do_search()
211 if (wtr) in do_search()
212 jsonw_end_array(wtr); in do_search()
217 if (!wtr && name && !res.nr_errs && !res.nr_maps) in do_search()
223 else if (!wtr && json_output && !res.nr_errs) in do_search()
238 struct json_writer *wtr) in do_one_id() argument
281 if (func(fd, info, data, wtr)) in do_one_id()
283 else if (!wtr && json_output) in do_one_id()
303 struct json_writer *wtr) in do_work_on_struct_ops() argument
307 return do_one_id(search_term, func, data, wtr); in do_work_on_struct_ops()
312 return do_search(search_term, func, data, wtr); in do_work_on_struct_ops()
316 struct json_writer *wtr) in __do_show() argument
318 if (wtr) { in __do_show()
319 jsonw_start_object(wtr); in __do_show()
320 jsonw_uint_field(wtr, "id", info->id); in __do_show()
321 jsonw_string_field(wtr, "name", info->name); in __do_show()
322 jsonw_string_field(wtr, "kernel_struct_ops", in __do_show()
324 jsonw_end_object(wtr); in __do_show()
353 struct json_writer *wtr) in __do_dump() argument
386 jsonw_start_object(wtr); in __do_dump()
387 jsonw_name(wtr, "bpf_map_info"); in __do_dump()
389 jsonw_end_object(wtr); in __do_dump()
391 jsonw_start_object(wtr); in __do_dump()
392 jsonw_name(wtr, struct_ops_name); in __do_dump()
394 jsonw_end_object(wtr); in __do_dump()
404 json_writer_t *wtr = json_wtr; in do_dump() local
422 wtr = jsonw_new(stdout); in do_dump()
423 if (!wtr) { in do_dump()
427 jsonw_pretty(wtr, true); in do_dump()
431 d.jw = wtr; in do_dump()
436 wtr); in do_dump()
439 jsonw_destroy(&wtr); in do_dump()
445 struct json_writer *wtr) in __do_unregister() argument