This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: guru mode: invalid module format
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Aubrey Li <aubreylee at gmail dot com>
- Cc: systemtap at sourceware dot org
- Date: Thu, 13 Jun 2019 19:47:49 -0400
- Subject: Re: guru mode: invalid module format
- References: <CAGPKeULHn74mMgJYxmwOoKYVBvoUhTtpfc0gxO-ib-vopTQeoA@mail.gmail.com> <CAGPKeULoq1nkyw+cSn=JrcUZUgYHpe+-Zuk_dym8edsPw0B+XA@mail.gmail.com> <87d0kughpy.fsf@redhat.com> <CAGPKeU+NpxBC0A-e6Vx1o=dNXXvMuvDMvdLugjth=sbex+AsyQ@mail.gmail.com>
Hi -
> $ sudo stap helloworld.stp
> hello world
> $ sudo stap helloworld.stp -g
> hello world
> $ sudo rm -rf .systemtap/cache/
> $ sudo stap helloworld.stp -g
> ERROR: Couldn't insert module
> '/tmp/stapg2kVhy/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko':
> Invalid module format
Thanks for your patience. I have not been able to reproduce this here
on Fedora, so didn't look deeper until today. I believe the problem
may be buildrun.cxx:124, which for guru mode adds a
CONFIG_MODEVERSIONS= override into the module kbuild makefile.
Non-fedora kernels may interpret this differently.
commit c8084763b75fe4c8c61a0ddfa69e2d13f04de18e
Author: Serhei Makarov <smakarov@redhat.com>
Date: Wed Jan 16 13:56:23 2019 -0500
PR10280 initial fix: force vermagic for guru-mode scripts
- FChE