Home
last modified time | relevance | path

Searched refs:wtr (Results 1 – 2 of 2) sorted by relevance

/linux/tools/bpf/bpftool/
H A Dstruct_ops.c180 struct json_writer *wtr);
187 struct json_writer *wtr) in do_search() argument
200 if (wtr) in do_search()
201 jsonw_start_array(wtr); in do_search()
204 err = func(fd, info, data, wtr); in do_search()
209 if (wtr) in do_search()
210 jsonw_end_array(wtr); in do_search()
215 if (!wtr && name && !res.nr_errs && !res.nr_maps) in do_search()
221 else if (!wtr && json_output && !res.nr_errs) in do_search()
236 struct json_writer *wtr) in do_one_id() argument
[all …]
H A Dmap.c450 static void show_map_header_json(struct bpf_map_info *info, json_writer_t *wtr) in show_map_header_json() argument
454 jsonw_uint_field(wtr, "id", info->id); in show_map_header_json()
457 jsonw_string_field(wtr, "type", map_type_str); in show_map_header_json()
459 jsonw_uint_field(wtr, "type", info->type); in show_map_header_json()
462 jsonw_string_field(wtr, "name", info->name); in show_map_header_json()
464 jsonw_name(wtr, "flags"); in show_map_header_json()
465 jsonw_printf(wtr, "%u", info->map_flags); in show_map_header_json()
826 map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr, in map_dump() argument
844 if (wtr) { in map_dump()
851 jsonw_start_object(wtr); /* ma in map_dump()
900 json_writer_t *wtr = NULL, *btf_wtr = NULL; do_dump() local
[all...]