Home
last modified time | relevance | path

Searched refs:wtr (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dstruct_ops.c182 struct json_writer *wtr);
186 * Then call "func(fd, info, data, wtr)" on each struct_ops map found.
189 struct json_writer *wtr) in do_search()
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 in do_search()
188 do_search(const char *name, work_func func, void *data, struct json_writer *wtr) do_search() argument
237 do_one_id(const char *id_str, work_func func, void *data, struct json_writer *wtr) do_one_id() argument
300 do_work_on_struct_ops(const char *search_type, const char *search_term, work_func func, void *data, struct json_writer *wtr) do_work_on_struct_ops() argument
315 __do_show(int fd, const struct bpf_map_info *info, void *data, struct json_writer *wtr) __do_show() argument
352 __do_dump(int fd, const struct bpf_map_info *info, void *data, struct json_writer *wtr) __do_dump() argument
404 json_writer_t *wtr = json_wtr; do_dump() local
444 __do_unregister(int fd, const struct bpf_map_info *info, void *data, struct json_writer *wtr) __do_unregister() argument
[all...]
H A 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_i in show_iter_json()
[all...]
H A Dmap.c468 static void show_map_header_json(struct bpf_map_info *info, json_writer_t *wtr) in show_map_header_json() argument
470 jsonw_uint_field(wtr, "id", info->id); in show_map_header_json()
472 jsonw_string_field(wtr, "type", map_type_name[info->type]); in show_map_header_json()
474 jsonw_uint_field(wtr, "type", info->type); in show_map_header_json()
477 jsonw_string_field(wtr, "name", info->name); in show_map_header_json()
479 jsonw_name(wtr, "flags"); in show_map_header_json()
480 jsonw_printf(wtr, "%d", info->map_flags); in show_map_header_json()
832 map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr, in map_dump() argument
850 if (wtr) { in map_dump()
858 jsonw_start_object(wtr); /* ma in map_dump()
903 json_writer_t *wtr = NULL, *btf_wtr = NULL; do_dump() local
[all...]
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dstruct_ops.c180 struct json_writer *wtr);
184 * Then call "func(fd, info, data, wtr)" on each struct_ops map found.
187 struct json_writer *wtr) in do_search()
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 in do_search()
186 do_search(const char *name, work_func func, void *data, struct json_writer *wtr) do_search() argument
235 do_one_id(const char *id_str, work_func func, void *data, struct json_writer *wtr) do_one_id() argument
298 do_work_on_struct_ops(const char *search_type, const char *search_term, work_func func, void *data, struct json_writer *wtr) do_work_on_struct_ops() argument
313 __do_show(int fd, const struct bpf_map_info *info, void *data, struct json_writer *wtr) __do_show() argument
350 __do_dump(int fd, const struct bpf_map_info *info, void *data, struct json_writer *wtr) __do_dump() argument
402 json_writer_t *wtr = json_wtr; do_dump() local
442 __do_unregister(int fd, const struct bpf_map_info *info, void *data, struct json_writer *wtr) __do_unregister() argument
[all...]
H A Dlink.c128 show_link_header_json(struct bpf_link_info *info, json_writer_t *wtr) in show_link_header_json() argument
132 jsonw_uint_field(wtr, "id", info->id); in show_link_header_json()
135 jsonw_string_field(wtr, "type", link_type_str); in show_link_header_json()
137 jsonw_uint_field(wtr, "type", info->type); in show_link_header_json()
142 static void show_link_attach_type_json(__u32 attach_type, json_writer_t *wtr) in show_link_attach_type_json() argument
148 jsonw_string_field(wtr, "attach_type", attach_type_str); in show_link_attach_type_json()
150 jsonw_uint_field(wtr, "attach_type", attach_type); in show_link_attach_type_json()
153 static void show_link_ifindex_json(__u32 ifindex, json_writer_t *wtr) in show_link_ifindex_json() argument
161 jsonw_string_field(wtr, "devname", devname); in show_link_ifindex_json()
162 jsonw_uint_field(wtr, "ifinde in show_link_ifindex_json()
201 show_iter_json(struct bpf_link_info *info, json_writer_t *wtr) show_iter_json() argument
223 netfilter_dump_json(const struct bpf_link_info *info, json_writer_t *wtr) netfilter_dump_json() argument
260 show_kprobe_multi_json(struct bpf_link_info *info, json_writer_t *wtr) show_kprobe_multi_json() argument
297 show_perf_event_kprobe_json(struct bpf_link_info *info, json_writer_t *wtr) show_perf_event_kprobe_json() argument
307 show_perf_event_uprobe_json(struct bpf_link_info *info, json_writer_t *wtr) show_perf_event_uprobe_json() argument
316 show_perf_event_tracepoint_json(struct bpf_link_info *info, json_writer_t *wtr) show_perf_event_tracepoint_json() argument
378 show_perf_event_event_json(struct bpf_link_info *info, json_writer_t *wtr) show_perf_event_event_json() 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, "%d", info->map_flags); in show_map_header_json()
823 map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr, in map_dump() argument
841 if (wtr) { in map_dump()
848 jsonw_start_object(wtr); /* ma in map_dump()
897 json_writer_t *wtr = NULL, *btf_wtr = NULL; do_dump() local
[all...]
H A Dmain.h272 void netfilter_dump_json(const struct bpf_link_info *info, json_writer_t *wtr);

Completed in 6 milliseconds