1 #ifndef __PERF_MUSL_COMPAT_H
2 #define __PERF_MUSL_COMPAT_H
7 #include <asm/unistd.h>
17 #define _SC_LEVEL1_DCACHE_LINESIZE -1
19 static inline long sysconf_wrap(int name
)
25 case _SC_LEVEL1_DCACHE_LINESIZE
:
26 f
= fopen("/sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size", "r");
30 if (fscanf(f
, "%d", &val
) != 1)
40 #define sysconf(_n) sysconf_wrap(_n)