• A
    perf trace augmented_syscalls: Augment bind's 'myaddr' sockaddr arg · 02ef2884
    Arnaldo Carvalho de Melo 提交于
    One more, to reuse the augmented_sockaddr_syscall_enter() macro
    introduced from the augmentation of connect's sockaddr arg, also to get
    a subset of the struct arg augmentations done using the manual method,
    before switching to something automatic, using tracefs's format file or,
    even better, BTF containing the syscall args structs.
    
      # perf trace -e tools/perf/examples/bpf/augmented_syscalls.c
         0.000 sshd/11479 bind(fd: 3<socket:[170336]>, umyaddr: { .family: NETLINK }, addrlen: 12)
         1.752 sshd/11479 bind(fd: 3<socket:[170336]>, umyaddr: { .family: INET, port: 22, addr: 0.0.0.0 }, addrlen: 16)
         1.924 sshd/11479 bind(fd: 4<socket:[170338]>, umyaddr: { .family: INET6, port: 22, addr: :: }, addrlen: 28)
      ^C#
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Wang Nan <wangnan0@huawei.com>
    Link: https://lkml.kernel.org/n/tip-a2drqpahpmc7uwb3n3gj2plu@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    02ef2884
augmented_syscalls.c 4.4 KB