|
@@ -377,8 +377,12 @@ static int run_perf_stat(int argc __used, const char **argv)
|
|
|
|
|
|
list_for_each_entry(counter, &evsel_list->entries, node) {
|
|
list_for_each_entry(counter, &evsel_list->entries, node) {
|
|
if (create_perf_stat_counter(counter) < 0) {
|
|
if (create_perf_stat_counter(counter) < 0) {
|
|
- if (errno == EINVAL || errno == ENOSYS || errno == ENOENT)
|
|
|
|
|
|
+ if (errno == EINVAL || errno == ENOSYS || errno == ENOENT) {
|
|
|
|
+ if (verbose)
|
|
|
|
+ ui__warning("%s event is not supported by the kernel.\n",
|
|
|
|
+ event_name(counter));
|
|
continue;
|
|
continue;
|
|
|
|
+ }
|
|
|
|
|
|
if (errno == EPERM || errno == EACCES) {
|
|
if (errno == EPERM || errno == EACCES) {
|
|
error("You may not have permission to collect %sstats.\n"
|
|
error("You may not have permission to collect %sstats.\n"
|