Searched refs:json_writer_t (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.10/tools/bpf/bpftool/ |
D | json_writer.h | 20 typedef struct json_writer json_writer_t; typedef 23 json_writer_t *jsonw_new(FILE *f); 25 void jsonw_destroy(json_writer_t **self_p); 28 void jsonw_pretty(json_writer_t *self, bool on); 31 void jsonw_reset(json_writer_t *self); 34 void jsonw_name(json_writer_t *self, const char *name); 37 void __printf(2, 0) jsonw_vprintf_enquote(json_writer_t *self, const char *fmt, 39 void __printf(2, 3) jsonw_printf(json_writer_t *self, const char *fmt, ...); 40 void jsonw_string(json_writer_t *self, const char *value); 41 void jsonw_bool(json_writer_t *self, bool value); [all …]
|
D | json_writer.c | 29 static void jsonw_indent(json_writer_t *self) in jsonw_indent() 37 static void jsonw_eol(json_writer_t *self) in jsonw_eol() 47 static void jsonw_eor(json_writer_t *self) in jsonw_eor() 57 static void jsonw_puts(json_writer_t *self, const char *str) in jsonw_puts() 93 json_writer_t *jsonw_new(FILE *f) in jsonw_new() 95 json_writer_t *self = malloc(sizeof(*self)); in jsonw_new() 106 void jsonw_destroy(json_writer_t **self_p) in jsonw_destroy() 108 json_writer_t *self = *self_p; in jsonw_destroy() 117 void jsonw_pretty(json_writer_t *self, bool on) in jsonw_pretty() 122 void jsonw_reset(json_writer_t *self) in jsonw_reset() [all …]
|
D | main.h | 86 extern json_writer_t *json_wtr; 146 json_writer_t *json_wtr); 229 json_writer_t *jw;
|
D | link.c | 60 show_link_header_json(struct bpf_link_info *info, json_writer_t *wtr) 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() 86 static void show_iter_json(struct bpf_link_info *info, json_writer_t *wtr) in show_iter_json()
|
D | pids.c | 22 void emit_obj_refs_json(struct obj_refs_table *table, __u32 id, json_writer_t *json_writer) {} in emit_obj_refs_json() 179 json_writer_t *json_writer) in emit_obj_refs_json()
|
D | map.c | 147 static json_writer_t *get_btf_writer(void) in get_btf_writer() 149 json_writer_t *jw = jsonw_new(stdout); in get_btf_writer() 468 static void show_map_header_json(struct bpf_map_info *info, json_writer_t *wtr) in show_map_header_json() 749 json_writer_t *btf_wtr) in dump_map_elem() 832 map_dump(int fd, struct bpf_map_info *info, json_writer_t *wtr, in map_dump() 903 json_writer_t *wtr = NULL, *btf_wtr = NULL; in do_dump() 1040 json_writer_t *btf_wtr; in print_key_value()
|
D | btf_dumper.c | 241 static void btf_int128_print(json_writer_t *jw, const void *data, in btf_int128_print() 316 const void *data, json_writer_t *jw, in btf_dumper_bitfield() 343 const void *data, json_writer_t *jw, in btf_dumper_int_bits() 360 const void *data, json_writer_t *jw, in btf_dumper_int()
|
D | main.c | 24 json_writer_t *json_wtr;
|
D | struct_ops.c | 404 json_writer_t *wtr = json_wtr; in do_dump()
|
D | btf.c | 103 json_writer_t *w = json_wtr; in dump_btf_type()
|
D | prog.c | 307 json_writer_t *btf_wtr = jsonw_new(stdout); in show_prog_metadata()
|