Home
last modified time | relevance | path

Searched refs:jsonw_printf (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/tools/bpf/bpftool/
Dbtf_dumper.c29 jsonw_printf(jw, "%p", *(unsigned long *)data); in btf_dumper_ptr()
31 jsonw_printf(jw, "%u", *(unsigned long *)data); in btf_dumper_ptr()
48 jsonw_printf(jw, "%d", *(int *)data); in btf_dumper_enum()
107 jsonw_printf(jw, "0x%llx", print_num); in btf_dumper_int_bits()
109 jsonw_printf(jw, "%llu", print_num); in btf_dumper_int_bits()
132 jsonw_printf(jw, "%lu", *(__u64 *)data); in btf_dumper_int()
134 jsonw_printf(jw, "%u", *(__u32 *)data); in btf_dumper_int()
136 jsonw_printf(jw, "%hu", *(__u16 *)data); in btf_dumper_int()
138 jsonw_printf(jw, "%hhu", *(__u8 *)data); in btf_dumper_int()
145 jsonw_printf(jw, "%ld", *(long long *)data); in btf_dumper_int()
[all …]
Djson_writer.c167 void jsonw_printf(json_writer_t *self, const char *fmt, ...) in jsonw_printf() function
207 jsonw_printf(self, "%s", val ? "true" : "false"); in jsonw_bool()
212 jsonw_printf(self, "null"); in jsonw_null()
217 jsonw_printf(self, fmt, num); in jsonw_float_fmt()
223 jsonw_printf(self, "%g", num); in jsonw_float()
229 jsonw_printf(self, "%hu", num); in jsonw_hu()
234 jsonw_printf(self, "%"PRIu64, num); in jsonw_uint()
239 jsonw_printf(self, "%llu", num); in jsonw_lluint()
244 jsonw_printf(self, "%"PRId64, num); in jsonw_int()
Djit_disasm.c141 jsonw_printf(json_wtr, "\"0x%x\"", pc); in disasm_print_insn()
162 jsonw_printf(json_wtr, "\"0x%02hhx\"", in disasm_print_insn()
Dxlated_dumper.c266 jsonw_printf(json_wtr, "\"0x%02hhx\"", insn[i].code); in dump_xlated_json()
269 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].src_reg); in dump_xlated_json()
272 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].dst_reg); in dump_xlated_json()
Djson_writer.h38 void jsonw_printf(json_writer_t *self, const char *fmt, ...);
Dcommon.c343 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json()
353 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json()
Dmain.c101 jsonw_printf(json_wtr, "\"%s\"", BPFTOOL_VERSION); in do_version()
Dprog.c242 jsonw_printf(json_wtr, "\"" BPF_TAG_FMT "\"", in print_prog_json()
257 jsonw_printf(json_wtr, "%s", buf); in print_prog_json()
Dmap.c498 jsonw_printf(json_wtr, "%d", info->map_flags); in show_map_close_json()