4 #include <linux/bitops.h> 11 static int cached_result;
18 ncpu = sysconf(_SC_NPROCESSORS_CONF);
19 for (cpu = 0; cpu < ncpu; cpu++) {
20 unsigned long long siblings;
25 snprintf(fn,
sizeof fn,
26 "devices/system/cpu/cpu%d/topology/thread_siblings",
28 if (sysfs__read_str(fn, &str, &strlen) < 0)
31 siblings = strtoull(str, NULL, 16);
33 if (hweight64(siblings) > 1) {
static int str(yyscan_t scanner, int token)