tud-zih-energy / x86_energy

The x86_energy library allows to count power and energy values.
GNU Lesser General Public License v2.1
11 stars 3 forks source link

Failed to initialize x86_energy metrics #6

Closed bmario closed 5 years ago

bmario commented 5 years ago

I'm getting an error:

Failed to initialize x86_energy metrics: Error in function setup at /home/s9242987/Software/x86_energy/src/access/sysfs.c:181: could not get a file pointer to "/sys//devices/system/cpu/cpu31/cache/index1/shared_cpu_list"

File is readable for the user and there are file descriptors available.

bmario commented 5 years ago

Build error:

/home/s9242987/Software/x86_energy/src/access/sysfs.c: In function ‘setup’:
/home/s9242987/Software/x86_energy/src/access/sysfs.c:96:13: error: ‘totalfiles’ undeclared (first use in this function); did you mean ‘total_files’?
         if (totalfiles == 0)
             ^~~~~~~~~~
             total_files
/home/s9242987/Software/x86_energy/src/access/sysfs.c:96:13: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/x86_energy-static.dir/build.make:278: recipe for target 'CMakeFiles/x86_energy-static.dir/src/access/sysfs.c.o' failed/home/s9242987/Software/x86_energy/src/access/sysfs.c: In function ‘setup’:
/home/s9242987/Software/x86_energy/src/access/sysfs.c:96:13: error: ‘totalfiles’ undeclared (first use in this function); did you mean ‘total_files’?
         if (totalfiles == 0)
             ^~~~~~~~~~
             total_files
/home/s9242987/Software/x86_energy/src/access/sysfs.c:96:13: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/x86_energy-static.dir/build.make:278: recipe for target 'CMakeFiles/x86_energy-static.dir/src/access/sysfs.c.o' failed