commit | 9eeb3aa33ae005526f672b394c1791578463513f | [log] [tgz] |
---|---|---|
author | Hengqi Chen <hengqi.chen@gmail.com> | Thu Oct 21 21:47:51 2021 +0800 |
committer | Alexei Starovoitov <ast@kernel.org> | Thu Oct 21 15:11:06 2021 -0700 |
tree | 0c70fe4027644192a334d3bd60bbbcb8e4f7758d | |
parent | 44ce0ac11e4e6dd1aee2e41e7d74f95f3b961cfb [diff] |
bpf: Add bpf_skc_to_unix_sock() helper The helper is used in tracing programs to cast a socket pointer to a unix_sock pointer. The return value could be NULL if the casting is illegal. Suggested-by: Yonghong Song <yhs@fb.com> Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20211021134752.1223426-2-hengqi.chen@gmail.com