You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am getting some errors while doing make. Can you please tell how to fix that? Thanks.
make -C /lib/modules/5.4.0-52-generic/build/ M=/home/mukti/NVM-Emulator-1.0 modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-52-generic'
CC [M] /home/mukti/NVM-Emulator-1.0/uncore_pmu.o
In file included from ./include/linux/kernel.h:15,
from ./include/linux/list.h:9,
from ./include/linux/pci.h:32,
from /home/mukti/NVM-Emulator-1.0/uncore_pmu.h:27,
from /home/mukti/NVM-Emulator-1.0/uncore_pmu.c:36:
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c: In function ‘uncore_print_pci_boxes’:
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c:369:37: error: ‘refcount_t’ {aka ‘struct refcount_struct’} has no member named ‘counter’
369 | box->pdev->dev.kobj.kref.refcount.counter);
| ^
./include/linux/printk.h:303:33: note: in definition of macro ‘pr_printk_hash’
303 | printk(level pr_fmt(format), ##VA_ARGS)
| ^~~~~~~~~~~
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c:360:4: note: in expansion of macro ‘pr_info’
360 | pr_info("......Box%d, in Node%d, %x:%x:%x, %d:%d:%d, Kref = %d",
| ^~~~~~~
make[2]: *** [scripts/Makefile.build:275: /home/mukti/NVM-Emulator-1.0/uncore_pmu.o] Error 1
make[1]: *** [Makefile:1757: /home/mukti/NVM-Emulator-1.0] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-52-generic'
make: *** [Makefile:37: all] Error 2
The text was updated successfully, but these errors were encountered:
this is because you are using a newer kernel, which has changed quite a lot header files. I forgot which kernel I used back then, it is probably somewhere between 2.6 - 3.11.
this is emulator is outdated, if you plan to get PM perf numbers, I suggest use real intel DC PM
Hello, I am getting some errors while doing make. Can you please tell how to fix that? Thanks.
make -C /lib/modules/5.4.0-52-generic/build/ M=/home/mukti/NVM-Emulator-1.0 modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-52-generic'
CC [M] /home/mukti/NVM-Emulator-1.0/uncore_pmu.o
In file included from ./include/linux/kernel.h:15,
from ./include/linux/list.h:9,
from ./include/linux/pci.h:32,
from /home/mukti/NVM-Emulator-1.0/uncore_pmu.h:27,
from /home/mukti/NVM-Emulator-1.0/uncore_pmu.c:36:
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c: In function ‘uncore_print_pci_boxes’:
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c:369:37: error: ‘refcount_t’ {aka ‘struct refcount_struct’} has no member named ‘counter’
369 | box->pdev->dev.kobj.kref.refcount.counter);
| ^
./include/linux/printk.h:303:33: note: in definition of macro ‘pr_printk_hash’
303 | printk(level pr_fmt(format), ##VA_ARGS)
| ^~~~~~~~~~~
/home/mukti/NVM-Emulator-1.0/uncore_pmu.c:360:4: note: in expansion of macro ‘pr_info’
360 | pr_info("......Box%d, in Node%d, %x:%x:%x, %d:%d:%d, Kref = %d",
| ^~~~~~~
make[2]: *** [scripts/Makefile.build:275: /home/mukti/NVM-Emulator-1.0/uncore_pmu.o] Error 1
make[1]: *** [Makefile:1757: /home/mukti/NVM-Emulator-1.0] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-52-generic'
make: *** [Makefile:37: all] Error 2
The text was updated successfully, but these errors were encountered: