/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_ksym.c | 41 BPF_SEQ_PRINTF(seq, "ADDR TYPE NAME MODULE_NAME KIND MAX_SIZE\n"); in dump_ksym() 45 BPF_SEQ_PRINTF(seq, "0x%x\n", iter->value - last_sym_value); in dump_ksym() 47 BPF_SEQ_PRINTF(seq, "\n"); in dump_ksym() 57 BPF_SEQ_PRINTF(seq, "0x%llx %c %s [ %s ] ", in dump_ksym() 60 BPF_SEQ_PRINTF(seq, "0x%llx %c %s ", value, type, iter->name); in dump_ksym() 63 BPF_SEQ_PRINTF(seq, "MOD "); in dump_ksym() 65 BPF_SEQ_PRINTF(seq, "FTRACE_MOD "); in dump_ksym() 67 BPF_SEQ_PRINTF(seq, "BPF "); in dump_ksym() 69 BPF_SEQ_PRINTF(seq, "KPROBE "); in dump_ksym()
|
D | bpf_iter_task.c | 21 BPF_SEQ_PRINTF(seq, "%s\n", info); in dump_task() 31 BPF_SEQ_PRINTF(seq, " tgid gid\n"); in dump_task() 33 BPF_SEQ_PRINTF(seq, "%8d %8d\n", task->tgid, task->pid); in dump_task() 52 BPF_SEQ_PRINTF(seq, "%s\n", info); in dump_task_sleepable() 62 BPF_SEQ_PRINTF(seq, "%s\n", info); in dump_task_sleepable() 71 BPF_SEQ_PRINTF(seq, "%s\n", info); in dump_task_sleepable() 78 BPF_SEQ_PRINTF(seq, "%s\n", info); in dump_task_sleepable() 84 BPF_SEQ_PRINTF(seq, " tgid gid data\n"); in dump_task_sleepable() 86 BPF_SEQ_PRINTF(seq, "%8d %8d %8d\n", task->tgid, task->pid, user_data); in dump_task_sleepable()
|
D | bpf_iter_ipv6_route.c | 32 BPF_SEQ_PRINTF(seq, "%pi6 %02x ", &rt->fib6_dst.addr, rt->fib6_dst.plen); in dump_ipv6_route() 35 BPF_SEQ_PRINTF(seq, "%pi6 %02x ", &rt->fib6_src.addr, in dump_ipv6_route() 38 BPF_SEQ_PRINTF(seq, "00000000000000000000000000000000 00 "); in dump_ipv6_route() 42 BPF_SEQ_PRINTF(seq, "%pi6 ", &fib6_nh->fib_nh_gw6); in dump_ipv6_route() 44 BPF_SEQ_PRINTF(seq, "00000000000000000000000000000000 "); in dump_ipv6_route() 49 BPF_SEQ_PRINTF(seq, "%08x %08x %08x %08x %8s\n", rt->fib6_metric, in dump_ipv6_route() 52 BPF_SEQ_PRINTF(seq, "%08x %08x %08x %08x\n", rt->fib6_metric, in dump_ipv6_route()
|
D | bpf_iter_unix.c | 38 BPF_SEQ_PRINTF(seq, "Num RefCount Protocol Flags Type St Inode Path\n"); in dump_unix() 40 BPF_SEQ_PRINTF(seq, "%pK: %08X %08X %08X %04X %02X %8lu", in dump_unix() 53 BPF_SEQ_PRINTF(seq, " %s", unix_sk->addr->name->sun_path); in dump_unix() 63 BPF_SEQ_PRINTF(seq, " @"); in dump_unix() 70 BPF_SEQ_PRINTF(seq, "%c", in dump_unix() 77 BPF_SEQ_PRINTF(seq, "\n"); in dump_unix()
|
D | bpf_iter_task_vma.c | 47 BPF_SEQ_PRINTF(seq, "%08llx-%08llx %s ", vma->vm_start, vma->vm_end, perm_str); in proc_maps() 54 BPF_SEQ_PRINTF(seq, "%08llx ", vma->vm_pgoff << 12); in proc_maps() 55 BPF_SEQ_PRINTF(seq, "%02x:%02x %u", MAJOR(dev), MINOR(dev), in proc_maps() 57 BPF_SEQ_PRINTF(seq, "\t%s\n", d_path_buf); in proc_maps() 59 BPF_SEQ_PRINTF(seq, "%08llx 00:00 0\n", 0ULL); in proc_maps()
|
D | bpf_iter_tcp4.c | 123 BPF_SEQ_PRINTF(seq, "%4d: %08X:%04X %08X:%04X ", in dump_tcp_sock() 125 BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d ", in dump_tcp_sock() 134 BPF_SEQ_PRINTF(seq, "%pK %lu %lu %u %u %d\n", in dump_tcp_sock() 161 BPF_SEQ_PRINTF(seq, "%4d: %08X:%04X %08X:%04X ", in dump_tw_sock() 164 BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5d %8d %d %d %pK\n", in dump_tw_sock() 184 BPF_SEQ_PRINTF(seq, "%4d: %08X:%04X %08X:%04X ", in dump_req_sock() 188 BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5d %8d %d %d %pK\n", in dump_req_sock() 211 BPF_SEQ_PRINTF(seq, " sl " in dump_tcp4()
|
D | bpf_iter_netlink.c | 28 BPF_SEQ_PRINTF(seq, "sk Eth Pid Groups " in dump_netlink() 33 BPF_SEQ_PRINTF(seq, "%pK %-3d ", s, s->sk_protocol); in dump_netlink() 43 BPF_SEQ_PRINTF(seq, "%-10u %08x %-8d %-8d %-5d %-8d ", in dump_netlink() 60 BPF_SEQ_PRINTF(seq, "%-8u %-8lu\n", s->sk_drops.counter, ino); in dump_netlink()
|
D | bpf_iter_tcp6.c | 123 BPF_SEQ_PRINTF(seq, "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X ", in dump_tcp6_sock() 129 BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d ", in dump_tcp6_sock() 138 BPF_SEQ_PRINTF(seq, "%pK %lu %lu %u %u %d\n", in dump_tcp6_sock() 166 BPF_SEQ_PRINTF(seq, "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X ", in dump_tw_sock() 173 BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5d %8d %d %d %pK\n", in dump_tw_sock() 196 BPF_SEQ_PRINTF(seq, "%4d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X ", in dump_req_sock() 204 BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5d %8d %d %d %pK\n", in dump_req_sock() 227 BPF_SEQ_PRINTF(seq, " sl " in dump_tcp6()
|
D | bpf_iter_bpf_map.c | 16 BPF_SEQ_PRINTF(seq, " %%%%%% END %%%%%%\n"); in dump_bpf_map() 21 BPF_SEQ_PRINTF(seq, " id refcnt usercnt locked_vm\n"); in dump_bpf_map() 23 BPF_SEQ_PRINTF(seq, "%8u %8ld %8ld %10lu\n", map->id, map->refcnt.counter, in dump_bpf_map()
|
D | cgroup_iter.c | 25 BPF_SEQ_PRINTF(seq, "epilogue\n"); in cgroup_id_printer() 31 BPF_SEQ_PRINTF(seq, "prologue\n"); in cgroup_id_printer() 33 BPF_SEQ_PRINTF(seq, "%8llu\n", cgroup_id(cgrp)); in cgroup_id_printer()
|
D | bpf_iter_bpf_hash_map.c | 103 BPF_SEQ_PRINTF(seq, "map dump starts\n"); in dump_bpf_hash_map() 106 BPF_SEQ_PRINTF(seq, "map dump ends\n"); in dump_bpf_hash_map() 110 BPF_SEQ_PRINTF(seq, "%d: (%x %d %x) (%llx)\n", map->id, in dump_bpf_hash_map() 120 BPF_SEQ_PRINTF(ctx->meta->seq, "map dump starts\n"); in sleepable_dummy_dump()
|
D | bpf_iter_task_stack.c | 27 BPF_SEQ_PRINTF(seq, "pid: %8u num_entries: %8u\n", task->pid, in dump_task_stack() 31 BPF_SEQ_PRINTF(seq, "[<0>] %pB\n", (void *)entries[i]); in dump_task_stack() 33 BPF_SEQ_PRINTF(seq, "\n"); in dump_task_stack()
|
D | bpf_iter_udp4.c | 40 BPF_SEQ_PRINTF(seq, in dump_udp4() 57 BPF_SEQ_PRINTF(seq, "%5d: %08X:%04X %08X:%04X ", in dump_udp4() 60 BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %u\n", in dump_udp4()
|
D | bpf_iter_udp6.c | 48 BPF_SEQ_PRINTF(seq, IPV6_SEQ_DGRAM_HEADER); in dump_udp6() 61 BPF_SEQ_PRINTF(seq, "%5d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X ", in dump_udp6() 68 BPF_SEQ_PRINTF(seq, "%02X %08X:%08X %02X:%08lX %08X %5u %8d %lu %d %pK %u\n", in dump_udp6()
|
D | bpf_iter_task_file.c | 26 BPF_SEQ_PRINTF(seq, " tgid gid fd file\n"); in dump_task_file() 37 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd, in dump_task_file()
|
D | cgroup_hierarchical_stats.c | 148 BPF_SEQ_PRINTF(seq, "cg_id: %llu, attach_counter: 0\n", in BPF_PROG() 151 BPF_SEQ_PRINTF(seq, "cg_id: %llu, attach_counter: %llu\n", in BPF_PROG()
|
D | map_percpu_stats.c | 19 BPF_SEQ_PRINTF(seq, "%lld", bpf_map_sum_elem_count(map)); in dump_bpf_map()
|
D | bpf_iter_task_btf.c | 28 BPF_SEQ_PRINTF(seq, "Raw BTF task\n"); in dump_task_struct()
|
D | bpf_iter_vma_offset.c | 34 BPF_SEQ_PRINTF(seq, "OK\n"); in get_vma_offset()
|
/linux-6.6.21/kernel/bpf/preload/iterators/ |
D | iterators.bpf.c | 89 BPF_SEQ_PRINTF(seq, " id name max_entries cur_entries\n"); in dump_bpf_map() 91 BPF_SEQ_PRINTF(seq, "%4u %-16s %10d %10lld\n", in dump_bpf_map() 111 BPF_SEQ_PRINTF(seq, " id name attached\n"); in dump_bpf_prog() 113 BPF_SEQ_PRINTF(seq, "%4u %-16s %s %s\n", aux->id, in dump_bpf_prog()
|
/linux-6.6.21/Documentation/bpf/ |
D | bpf_iterators.rst | 140 BPF_SEQ_PRINTF(seq, " tgid gid fd file\n"); 151 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd, 163 You can use either ``bpf_seq_printf()`` (and BPF_SEQ_PRINTF helper macro) or 286 BPF_SEQ_PRINTF(seq, " tgid pid fd file\n"); 288 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd, 437 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd,
|
/linux-6.6.21/tools/lib/bpf/ |
D | bpf_helpers.h | 224 #define BPF_SEQ_PRINTF(seq, fmt, args...) \ macro
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | README.rst | 147 ; BPF_SEQ_PRINTF(seq, "%pi6 %02x ", &rt->fib6_dst.addr, rt->fib6_dst.plen); 160 ; BPF_SEQ_PRINTF(seq, "%pK %-3d ", s, s->sk_protocol);
|