diff options
author | 2021-08-14 10:57:16 +0900 | |
---|---|---|
committer | 2021-08-15 00:13:33 -0700 | |
commit | 3478cfcfcddff0f3aad82891be2992e51c4f7936 (patch) | |
tree | ff61e1fb09f3bda022c3e7034f8ca32413f14ab8 /include/linux/bpf_types.h | |
parent | bpf: af_unix: Implement BPF iterator for UNIX domain socket. (diff) | |
download | linux-rng-3478cfcfcddff0f3aad82891be2992e51c4f7936.tar.xz linux-rng-3478cfcfcddff0f3aad82891be2992e51c4f7936.zip |
bpf: Support "%c" in bpf_bprintf_prepare().
/proc/net/unix uses "%c" to print a single-byte character to escape '\0' in
the name of the abstract UNIX domain socket. The following selftest uses
it, so this patch adds support for "%c". Note that it does not support
wide character ("%lc" and "%llc") for simplicity.
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-3-kuniyu@amazon.co.jp
Diffstat (limited to 'include/linux/bpf_types.h')
0 files changed, 0 insertions, 0 deletions