|
@@ -331,6 +331,9 @@ try_again:
|
|
|
else if (err == ENODEV && cpu_list) {
|
|
|
die("No such device - did you specify"
|
|
|
" an out-of-range profile CPU?\n");
|
|
|
+ } else if (err == ENOENT) {
|
|
|
+ die("%s event is not supported. ",
|
|
|
+ event_name(evsel));
|
|
|
} else if (err == EINVAL && sample_id_all_avail) {
|
|
|
/*
|
|
|
* Old kernel, no attr->sample_id_type_all field
|