Em Fri, Apr 08, 2016 at 03:07:22PM +0000, Wang Nan escreveu:
Before this patch, strange error message is provided if passed aHumm, perhaps we should instead refrain from setting filters to non
non-tracepoint event to 'perf trace':
# perf trace -a --ev cycles sleep 1
Failed to set filter "common_pid != 27500" on event cycles with 22 (Invalid argument)
This is because 'perf trace' accepts all valid events during cmdline
parsing, but in fact user can only provide tracepoints, because it
needs filter.
This patch validate evlist, report error earlier:
# ./perf trace -a --ev cycles sleep 1
Only support tracepoint events!
tracepoint events? I.e. I don't see why we whouldn't support, say,
software events...
/me trying some now, i.e.:
# trace --ev minor-faults --no-syscalls
But it has some issues...
- Arnaldo