Re: [PATCH] perf tool: more user-friendly errors from trace

2013-10-03 Thread Ramkumar Ramachandra
Arnaldo Carvalho de Melo wrote: > [acme@zoo ~]$ mount | grep debugfs > [acme@zoo ~]$ > [acme@zoo ~]$ perf trace usleep 1 > Is debugfs mounted? Try 'sudo mount -t debugfs nodev /sys/kernel/debug' > [acme@zoo ~]$ sudo mkdir /d > [acme@zoo ~]$ sudo mount -t debugfs nodev /d > [acme@zoo ~]$ mount | gre

Re: [PATCH] perf tool: more user-friendly errors from trace

2013-10-03 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 03, 2013 at 11:18:49AM -0600, David Ahern escreveu: > On 10/3/13 10:58 AM, Arnaldo Carvalho de Melo wrote: > >What about the one attached instead? It > Isnt' strerror(errno) preferred over sys_errlist[errno]? I found it much simpler to index the array, but can change to using strerror

Re: [PATCH] perf tool: more user-friendly errors from trace

2013-10-03 Thread David Ahern
On 10/3/13 10:58 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Oct 03, 2013 at 01:58:11PM +0530, Ramkumar Ramachandra escreveu: Currently, execution of 'perf trace' reports the following cryptic message to the user: $ perf trace Couldn't read the raw_syscalls tracepoints information! Now, it pri

Re: [PATCH] perf tool: more user-friendly errors from trace

2013-10-03 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 03, 2013 at 01:58:11PM +0530, Ramkumar Ramachandra escreveu: > Currently, execution of 'perf trace' reports the following cryptic > message to the user: > > $ perf trace > Couldn't read the raw_syscalls tracepoints information! > > Now, it prints a detailed message: What about the on

[PATCH] perf tool: more user-friendly errors from trace

2013-10-03 Thread 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! Now, it prints a detailed message: $ perf trace Error: No permissions to read $debugfs/tracing/events/raw_syscalls Hint: Change the perm