/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 120 jsonw_printf(d->jw, "%p", (void *)value); in btf_dumper_ptr() 122 jsonw_printf(d->jw, "%lu", value); in btf_dumper_ptr() 263 jsonw_printf(jw, "0x%llx", lower_num); in btf_int128_print() 265 jsonw_printf(jw, "0x%llx%016llx", upper_num, lower_num); in btf_int128_print() 268 jsonw_printf(jw, "\"0x%llx\"", lower_num); in btf_int128_print() 270 jsonw_printf(jw, "\"0x%llx%016llx\"", upper_num, lower_num); in btf_int128_print() 384 jsonw_printf(jw, "%llu", *(__u64 *)data); in btf_dumper_int() 386 jsonw_printf(jw, "%u", *(__u32 *)data); in btf_dumper_int() 388 jsonw_printf(jw, "%hu", *(__u16 *)data); in btf_dumper_int() 390 jsonw_printf(j in btf_dumper_int() [all...] |
H A D | json_writer.c | 166 void jsonw_printf(json_writer_t *self, const char *fmt, ...) in jsonw_printf() function 206 jsonw_printf(self, "%s", val ? "true" : "false"); in jsonw_bool() 211 jsonw_printf(self, "null"); in jsonw_null() 216 jsonw_printf(self, fmt, num); in jsonw_float_fmt() 222 jsonw_printf(self, "%g", num); in jsonw_float() 228 jsonw_printf(self, "%hu", num); in jsonw_hu() 233 jsonw_printf(self, "%"PRIu64, num); in jsonw_uint() 238 jsonw_printf(self, "%llu", num); in jsonw_lluint() 243 jsonw_printf(self, "%"PRId64, num); in jsonw_int()
|
H A D | jit_disasm.c | 157 jsonw_printf(json_wtr, "\"0x%x\"", pc); in disasm_print_insn() 181 jsonw_printf(json_wtr, "\"0x%02hhx\"", in disasm_print_insn()
|
H A D | json_writer.h | 39 void __printf(2, 3) jsonw_printf(json_writer_t *self, const char *fmt, ...);
|
H A D | xlated_dumper.c | 265 jsonw_printf(json_wtr, "\"0x%02hhx\"", insn[i].code); in dump_xlated_json() 268 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].src_reg); in dump_xlated_json() 271 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].dst_reg); in dump_xlated_json()
|
H A D | main.c | 88 jsonw_printf(json_wtr, "\"%s\"", BPFTOOL_VERSION); in do_version()
|
H A D | common.c | 377 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json() 387 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json()
|
H A D | prog.c | 364 jsonw_printf(json_wtr, "\"" BPF_TAG_FMT "\"", in print_prog_header_json() 390 jsonw_printf(json_wtr, "%s", buf); in print_prog_json()
|
H A D | map.c | 480 jsonw_printf(wtr, "%d", info->map_flags); in show_map_header_json()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | json_writer.c | 166 void jsonw_printf(json_writer_t *self, const char *fmt, ...) in jsonw_printf() function 206 jsonw_printf(self, "%s", val ? "true" : "false"); in jsonw_bool() 211 jsonw_printf(self, "null"); in jsonw_null() 216 jsonw_printf(self, fmt, num); in jsonw_float_fmt() 222 jsonw_printf(self, "%g", num); in jsonw_float() 228 jsonw_printf(self, "%hu", num); in jsonw_hu() 233 jsonw_printf(self, "%"PRIu64, num); in jsonw_uint() 238 jsonw_printf(self, "%llu", num); in jsonw_lluint() 243 jsonw_printf(self, "%"PRId64, num); in jsonw_int()
|
H A D | json_writer.h | 40 void __printf(2, 3) jsonw_printf(json_writer_t *self, const char *fmt, ...);
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | json_writer.c | 166 void jsonw_printf(json_writer_t *self, const char *fmt, ...) in jsonw_printf() function 206 jsonw_printf(self, "%s", val ? "true" : "false"); in jsonw_bool() 211 jsonw_printf(self, "null"); in jsonw_null() 216 jsonw_printf(self, fmt, num); in jsonw_float_fmt() 222 jsonw_printf(self, "%g", num); in jsonw_float() 228 jsonw_printf(self, "%hu", num); in jsonw_hu() 233 jsonw_printf(self, "%"PRIu64, num); in jsonw_uint() 238 jsonw_printf(self, "%llu", num); in jsonw_lluint() 243 jsonw_printf(self, "%"PRId64, num); in jsonw_int()
|
H A D | btf_dumper.c | 130 jsonw_printf(d->jw, "%p", (void *)value); in btf_dumper_ptr() 132 jsonw_printf(d->jw, "%lu", value); in btf_dumper_ptr() 299 jsonw_printf(jw, "0x%llx", lower_num); in btf_int128_print() 301 jsonw_printf(jw, "0x%llx%016llx", upper_num, lower_num); in btf_int128_print() 304 jsonw_printf(jw, "\"0x%llx\"", lower_num); in btf_int128_print() 306 jsonw_printf(jw, "\"0x%llx%016llx\"", upper_num, lower_num); in btf_int128_print() 420 jsonw_printf(jw, "%llu", *(__u64 *)data); in btf_dumper_int() 422 jsonw_printf(jw, "%u", *(__u32 *)data); in btf_dumper_int() 424 jsonw_printf(jw, "%hu", *(__u16 *)data); in btf_dumper_int() 426 jsonw_printf(j in btf_dumper_int() [all...] |
H A D | main.c | 149 jsonw_printf(json_wtr, "\"%s\"", BPFTOOL_VERSION); in do_version() 151 jsonw_printf(json_wtr, "\"%d.%d.%d\"", BPFTOOL_MAJOR_VERSION, in do_version() 155 jsonw_printf(json_wtr, "\"%d.%d\"", in do_version()
|
H A D | json_writer.h | 40 void __printf(2, 3) jsonw_printf(json_writer_t *self, const char *fmt, ...);
|
H A D | xlated_dumper.c | 278 jsonw_printf(json_wtr, "\"0x%02hhx\"", insn[i].code); in dump_xlated_json() 281 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].src_reg); in dump_xlated_json() 284 jsonw_printf(json_wtr, "\"0x%hhx\"", insn[i].dst_reg); in dump_xlated_json()
|
H A D | jit_disasm.c | 355 jsonw_printf(json_wtr, "\"0x%x\"", pc); in disasm_print_insn() 380 jsonw_printf(json_wtr, "\"0x%02hhx\"", in disasm_print_insn()
|
H A D | common.c | 455 jsonw_printf(json_wtr, "%d", data[i]); in print_data_json() 465 jsonw_printf(json_wtr, "\"0x%02hhx\"", data[i]); in print_hex_data_json()
|
H A D | prog.c | 432 jsonw_printf(json_wtr, "\"" BPF_TAG_FMT "\"", in print_prog_header_json() 460 jsonw_printf(json_wtr, "%s", buf); in print_prog_json()
|
H A D | map.c | 465 jsonw_printf(wtr, "%d", info->map_flags); in show_map_header_json()
|