1. 14 10月, 2013 1 次提交
    • R
      perf trace: Improve the error messages · 87f91868
      Ramkumar Ramachandra 提交于
      Currently, execution of 'perf trace' reports the following cryptic
      message to the user:
      
      $ perf trace
      Couldn't read the raw_syscalls tracepoints information!
      
      Typically this happens because the user does not have permissions to
      read the debugfs filesystem. Also handle the case when the kernel was
      not compiled with debugfs support or when it isn't mounted.
      
      Now, the tool prints detailed error messages:
      
      $ perf trace
      Error:	Unable to find debugfs
      Hint:	Was your kernel was compiled with debugfs support?
      Hint:	Is the debugfs filesystem mounted?
      Hint:	Try 'sudo mount -t debugfs nodev /sys/kernel/debug'
      
      $ perf trace
      Error:	No permissions to read /sys/kernel/debug//tracing/events/raw_syscalls
      Hint:	Try 'sudo mount -o remount,mode=755 /sys/kernel/debug/'
      Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Link: http://lkml.kernel.org/r/1380863851-14460-1-git-send-email-artagnon@gmail.com
      [ Added ready to use commands to fix the issues as extra hints, use the
        current debugfs mount point when reporting permission error, use
        strerror_r instead of the deprecated sys_errlist, as reported by David Ahern ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      87f91868
  2. 11 10月, 2013 28 次提交
  3. 10 10月, 2013 11 次提交