Re: [PATCH] trace-cmd:show: be picky on user argument 'cpu'

2018-05-03 Thread Steven Rostedt
On Wed, 6 Dec 2017 06:12:12 +0100 Federico Vaga wrote: > Before this patch the following command worked without errors: > > trace-cmd show -c b > > This command opens the CPU0 files. From `strace(1)`: > > openat(AT_FDCWD,

Re: [PATCH] trace-cmd:show: be picky on user argument 'cpu'

2018-05-03 Thread Steven Rostedt
On Wed, 6 Dec 2017 06:12:12 +0100 Federico Vaga wrote: > Before this patch the following command worked without errors: > > trace-cmd show -c b > > This command opens the CPU0 files. From `strace(1)`: > > openat(AT_FDCWD, "/sys/kernel/tracing/per_cpu/cpu0/trace", O_RDONLY) = 3

[PATCH] trace-cmd:show: be picky on user argument 'cpu'

2017-12-05 Thread Federico Vaga
Before this patch the following command worked without errors: trace-cmd show -c b This command opens the CPU0 files. From `strace(1)`: openat(AT_FDCWD, "/sys/kernel/tracing/per_cpu/cpu0/trace", O_RDONLY) = 3 Signed-off-by: Federico Vaga --- trace-show.c | 9

[PATCH] trace-cmd:show: be picky on user argument 'cpu'

2017-12-05 Thread Federico Vaga
Before this patch the following command worked without errors: trace-cmd show -c b This command opens the CPU0 files. From `strace(1)`: openat(AT_FDCWD, "/sys/kernel/tracing/per_cpu/cpu0/trace", O_RDONLY) = 3 Signed-off-by: Federico Vaga --- trace-show.c | 9 - 1 file