Lines Matching refs:wtr

128 show_link_header_json(struct bpf_link_info *info, json_writer_t *wtr)
132 jsonw_uint_field(wtr, "id", info->id);
135 jsonw_string_field(wtr, "type", link_type_str);
137 jsonw_uint_field(wtr, "type", info->type);
142 static void show_link_attach_type_json(__u32 attach_type, json_writer_t *wtr)
148 jsonw_string_field(wtr, "attach_type", attach_type_str);
150 jsonw_uint_field(wtr, "attach_type", attach_type);
153 static void show_link_ifindex_json(__u32 ifindex, json_writer_t *wtr)
161 jsonw_string_field(wtr, "devname", devname);
162 jsonw_uint_field(wtr, "ifindex", ifindex);
201 static void show_iter_json(struct bpf_link_info *info, json_writer_t *wtr)
205 jsonw_string_field(wtr, "target_name", target_name);
208 jsonw_uint_field(wtr, "map_id", info->iter.map.map_id);
211 jsonw_uint_field(wtr, "tid", info->iter.task.tid);
213 jsonw_uint_field(wtr, "pid", info->iter.task.pid);
217 jsonw_lluint_field(wtr, "cgroup_id", info->iter.cgroup.cgroup_id);
218 jsonw_string_field(wtr, "order",
223 void netfilter_dump_json(const struct bpf_link_info *info, json_writer_t *wtr)
260 show_kprobe_multi_json(struct bpf_link_info *info, json_writer_t *wtr)
297 show_perf_event_kprobe_json(struct bpf_link_info *info, json_writer_t *wtr)
299 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_KRETPROBE);
300 jsonw_uint_field(wtr, "addr", info->perf_event.kprobe.addr);
301 jsonw_string_field(wtr, "func",
303 jsonw_uint_field(wtr, "offset", info->perf_event.kprobe.offset);
307 show_perf_event_uprobe_json(struct bpf_link_info *info, json_writer_t *wtr)
309 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_URETPROBE);
310 jsonw_string_field(wtr, "file",
312 jsonw_uint_field(wtr, "offset", info->perf_event.uprobe.offset);
316 show_perf_event_tracepoint_json(struct bpf_link_info *info, json_writer_t *wtr)
318 jsonw_string_field(wtr, "tracepoint",
378 show_perf_event_event_json(struct bpf_link_info *info, json_writer_t *wtr)
386 jsonw_string_field(wtr, "event_type", perf_type);
388 jsonw_uint_field(wtr, "event_type", type);
392 jsonw_string_field(wtr, "event_config", perf_config);
394 jsonw_uint_field(wtr, "event_config", config);