• Arnaldo Carvalho de Melo's avatar
    perf trace: Use vfs_getname syscall arg beautifier in more syscalls · 34221118
    Arnaldo Carvalho de Melo authored
    Those were covered and tested in this cset:
    
     access, chdir, chmod, chown, chroot, creat, getxattr,
     inotify_add_watch, lchown, lgetxattr, listxattr,
     lsetxattr, mkdir, mkdirat, mknod, rmdir, faccessat,
     newfstatat, openat, readlink, readlinkat, removexattr,
     setxattr, statfs, swapon, swapoff, truncate, unlinkat,
     utime, utimes, utimensat.
    
    E.g.:
    
      # trace -e statfs,access,mkdir mkdir /tmp/bla
       0.285 (0.020 ms): mkdir/2799 access(filename: /etc/ld.so.preload, mode: R         ) = -1 ENOENT No such file or directory
       1.070 (0.032 ms): mkdir/2799 statfs(pathname: /sys/fs/selinux, buf: 0x7ffeafbdc930) = 0
       1.087 (0.013 ms): mkdir/2799 statfs(pathname: /sys/fs/selinux, buf: 0x7ffeafbdc820) = 0
       1.189 (0.014 ms): mkdir/2799 access(filename: /etc/selinux/config                 ) = 0
       1.905 (0.610 ms): mkdir/2799 mkdir(pathname: /tmp/bla, mode: 511                  ) = 0
      #
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Borislav Petkov <bp@suse.de>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Milian Wolff <mail@milianw.de>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lkml.kernel.org/n/tip-wbqtnlktquun3wtpjdz3okul@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    
      and an empty message aborts the commit.
    34221118
builtin-trace.c 83.8 KB