diff options
author | Kuniyuki Iwashima <kuniyu@amazon.co.jp> | 2021-08-14 10:57:17 +0900 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-08-15 00:19:06 -0700 |
commit | 04e928180c14332fb15a1b8c64418b602978a51e (patch) | |
tree | c96b6d5b4e844e7d9280eb5fa3ad1d42ac4019c0 /scripts/spelling.txt | |
parent | 3478cfcfcddff0f3aad82891be2992e51c4f7936 (diff) |
selftest/bpf: Implement sample UNIX domain socket iterator program.
The iterator can output almost the same result compared to /proc/net/unix.
The header line is aligned, and the Inode column uses "%8lu" because "%5lu"
can be easily overflown.
# cat /sys/fs/bpf/unix
Num RefCount Protocol Flags Type St Inode Path
ffff963c06689800: 00000002 00000000 00010000 0001 01 18697 private/defer
ffff963c7c979c00: 00000002 00000000 00000000 0001 01 598245 @Hello@World@
# cat /proc/net/unix
Num RefCount Protocol Flags Type St Inode Path
ffff963c06689800: 00000002 00000000 00010000 0001 01 18697 private/defer
ffff963c7c979c00: 00000002 00000000 00000000 0001 01 598245 @Hello@World@
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210814015718.42704-4-kuniyu@amazon.co.jp
Diffstat (limited to 'scripts/spelling.txt')
0 files changed, 0 insertions, 0 deletions