|
@@ -562,6 +562,12 @@ static int is_pmu_core(const char *name)
|
|
if (stat(path, &st) == 0)
|
|
if (stat(path, &st) == 0)
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
|
|
+ /* Look for cpu sysfs (specific to s390) */
|
|
|
|
+ scnprintf(path, PATH_MAX, "%s/bus/event_source/devices/%s",
|
|
|
|
+ sysfs, name);
|
|
|
|
+ if (stat(path, &st) == 0 && !strncmp(name, "cpum_", 5))
|
|
|
|
+ return 1;
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|