Home
last modified time | relevance | path

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

/tools/bpf/bpftool/
Dstruct_ops.c182 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
[all …]
Dlink.c60 show_link_header_json(struct bpf_link_info *info, json_writer_t *wtr) in show_link_header_json() argument
62 jsonw_uint_field(wtr, "id", info->id); in show_link_header_json()
64 jsonw_string_field(wtr, "type", link_type_name[info->type]); in show_link_header_json()
66 jsonw_uint_field(wtr, "type", info->type); in show_link_header_json()
71 static void show_link_attach_type_json(__u32 attach_type, json_writer_t *wtr) in show_link_attach_type_json() argument
74 jsonw_string_field(wtr, "attach_type", in show_link_attach_type_json()
77 jsonw_uint_field(wtr, "attach_type", attach_type); in show_link_attach_type_json()
86 static void show_iter_json(struct bpf_link_info *info, json_writer_t *wtr) in show_iter_json() argument
90 jsonw_string_field(wtr, "target_name", target_name); in show_iter_json()
93 jsonw_uint_field(wtr, "map_id", info->iter.map.map_id); in show_iter_json()
Dmap.c469 static void show_map_header_json(struct bpf_map_info *info, json_writer_t *wtr) in show_map_header_json() argument
471 jsonw_uint_field(wtr, "id", info->id); in show_map_header_json()
473 jsonw_string_field(wtr, "type", map_type_name[info->type]); in show_map_header_json()
475 jsonw_uint_field(wtr, "type", info->type); in show_map_header_json()
478 jsonw_string_field(wtr, "name", info->name); in show_map_header_json()
480 jsonw_name(wtr, "flags"); in show_map_header_json()
481 jsonw_printf(wtr, "%d", info->map_flags); in show_map_header_json()
834 map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr, in map_dump() argument
852 if (wtr) { in map_dump()
860 jsonw_start_object(wtr); /* map object */ in map_dump()
[all …]