mattgodbolt / agner

Reworking of Agner Fog's performance test programs for Linux
GNU General Public License v3.0
110 stars 21 forks source link

Invalid module format #2

Open canertol opened 2 years ago

canertol commented 2 years ago

I have Ubuntu 22.04.1 LTS with Linux kernel v5.15.0-47-generic. I was getting the following error after running python2 agner install insmod: ERROR: could not insert module MSRdrv.ko: Invalid module format

I followed this link, and removed -f flags from the install.sh. Then, it successfully installed.

edisonchan commented 2 years ago

Hi, @canertol . I have follow your method, but the module still can not be import

edison@u22:~/Downloads/agner/src/driver$ sudo ./install.sh

edison@u22:~/Downloads/agner/tests$ python2 btb_size.py
Traceback (most recent call last):
  File "btb_size.py", line 7, in <module>
    from lib.agner import *
ImportError: No module named lib.agner

how can I fix this problem?

my system: Ubuntu 22.04 kernel 5.19.11 intel core i7 11700k