We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eaae19 commit 9754353Copy full SHA for 9754353
tools/perf/arch/arm64/util/pmu.c
@@ -54,10 +54,11 @@ double perf_pmu__cpu_slots_per_cycle(void)
54
perf_pmu__pathname_scnprintf(path, sizeof(path),
55
pmu->name, "caps/slots");
56
/*
57
- * The value of slots is not greater than 32 bits, but sysfs__read_int
58
- * can't read value with 0x prefix, so use sysfs__read_ull instead.
+ * The value of slots is not greater than 32 bits, but
+ * filename__read_int can't read value with 0x prefix,
59
+ * so use filename__read_ull instead.
60
*/
- sysfs__read_ull(path, &slots);
61
+ filename__read_ull(path, &slots);
62
}
63
64
return slots ? (double)slots : NAN;
0 commit comments