Lines Matching refs:wtr

128 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, "ifindex", ifindex); in show_link_ifindex_json()
201 static void show_iter_json(struct bpf_link_info *info, json_writer_t *wtr) in show_iter_json() argument
205 jsonw_string_field(wtr, "target_name", target_name); in show_iter_json()
208 jsonw_uint_field(wtr, "map_id", info->iter.map.map_id); in show_iter_json()
211 jsonw_uint_field(wtr, "tid", info->iter.task.tid); in show_iter_json()
213 jsonw_uint_field(wtr, "pid", info->iter.task.pid); in show_iter_json()
217 jsonw_lluint_field(wtr, "cgroup_id", info->iter.cgroup.cgroup_id); in show_iter_json()
218 jsonw_string_field(wtr, "order", in show_iter_json()
223 void netfilter_dump_json(const struct bpf_link_info *info, json_writer_t *wtr) in netfilter_dump_json() argument
286 show_kprobe_multi_json(struct bpf_link_info *info, json_writer_t *wtr) in show_kprobe_multi_json() argument
338 show_uprobe_multi_json(struct bpf_link_info *info, json_writer_t *wtr) in show_uprobe_multi_json() argument
364 show_perf_event_kprobe_json(struct bpf_link_info *info, json_writer_t *wtr) in show_perf_event_kprobe_json() argument
366 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_KRETPROBE); in show_perf_event_kprobe_json()
367 jsonw_uint_field(wtr, "addr", info->perf_event.kprobe.addr); in show_perf_event_kprobe_json()
368 jsonw_string_field(wtr, "func", in show_perf_event_kprobe_json()
370 jsonw_uint_field(wtr, "offset", info->perf_event.kprobe.offset); in show_perf_event_kprobe_json()
371 jsonw_uint_field(wtr, "missed", info->perf_event.kprobe.missed); in show_perf_event_kprobe_json()
372 jsonw_uint_field(wtr, "cookie", info->perf_event.kprobe.cookie); in show_perf_event_kprobe_json()
376 show_perf_event_uprobe_json(struct bpf_link_info *info, json_writer_t *wtr) in show_perf_event_uprobe_json() argument
378 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_URETPROBE); in show_perf_event_uprobe_json()
379 jsonw_string_field(wtr, "file", in show_perf_event_uprobe_json()
381 jsonw_uint_field(wtr, "offset", info->perf_event.uprobe.offset); in show_perf_event_uprobe_json()
382 jsonw_uint_field(wtr, "cookie", info->perf_event.uprobe.cookie); in show_perf_event_uprobe_json()
386 show_perf_event_tracepoint_json(struct bpf_link_info *info, json_writer_t *wtr) in show_perf_event_tracepoint_json() argument
388 jsonw_string_field(wtr, "tracepoint", in show_perf_event_tracepoint_json()
390 jsonw_uint_field(wtr, "cookie", info->perf_event.tracepoint.cookie); in show_perf_event_tracepoint_json()
449 show_perf_event_event_json(struct bpf_link_info *info, json_writer_t *wtr) in show_perf_event_event_json() argument
457 jsonw_string_field(wtr, "event_type", perf_type); in show_perf_event_event_json()
459 jsonw_uint_field(wtr, "event_type", type); in show_perf_event_event_json()
463 jsonw_string_field(wtr, "event_config", perf_config); in show_perf_event_event_json()
465 jsonw_uint_field(wtr, "event_config", config); in show_perf_event_event_json()
467 jsonw_uint_field(wtr, "cookie", info->perf_event.event.cookie); in show_perf_event_event_json()