Home
last modified time | relevance | path

Searched refs:BPF_SNPRINTF (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
A Dtest_snprintf.c50 num_ret = BPF_SNPRINTF(num_out, sizeof(num_out), in handler()
54 ip_ret = BPF_SNPRINTF(ip_out, sizeof(ip_out), "%pi4 %pI6", in handler()
57 sym_ret = BPF_SNPRINTF(sym_out, sizeof(sym_out), "%ps %pS %pB", in handler()
60 addr_ret = BPF_SNPRINTF(addr_out, sizeof(addr_out), "%pK %px %p", in handler()
63 str_ret = BPF_SNPRINTF(str_out, sizeof(str_out), "%s % 9c %+2c %-3c %04c %0c %+05s", in handler()
66 over_ret = BPF_SNPRINTF(over_out, sizeof(over_out), "%%overflow"); in handler()
68 pad_ret = BPF_SNPRINTF(pad_out, sizeof(pad_out), "%5d %0900000X", 4, 4); in handler()
70 noarg_ret = BPF_SNPRINTF(noarg_out, sizeof(noarg_out), "simple case"); in handler()
72 nobuf_ret = BPF_SNPRINTF(NULL, 0, "only interested in length %d", 60); in handler()
/linux/tools/lib/bpf/
A Dbpf_helpers.h205 #define BPF_SNPRINTF(out, out_size, fmt, args...) \ macro

Completed in 4 milliseconds