On 10/17/19 11:26 AM, Zwb wrote:
When people want to identify which file system files are being opened,
read, and written to, they can use this helper with file descriptor as
input to achieve this goal. Other pseudo filesystems are also supported.

Signed-off-by: Zwb <[email protected]>

SOB requires that there is a proper name, see 
Documentation/process/submitting-patches.rst +431.

[...]
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index a65c3b0c6935..a4a5d432e572 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -2769,6 +2769,7 @@ union bpf_attr {
        FN(get_current_pid_tgid),       \
        FN(get_current_uid_gid),        \
        FN(get_current_comm),           \
+       FN(fd2path),                    \

Adding into the middle will break existing BPF programs. Helper description is 
also missing.

        FN(get_cgroup_classid),         \
        FN(skb_vlan_push),              \
        FN(skb_vlan_pop),               \

Reply via email to