This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: guru mode: invalid module format


On Wed, May 8, 2019 at 3:58 AM Frank Ch. Eigler <fche@redhat.com> wrote:
>
> Aubrey Li <aubreylee@gmail.com> writes:
>
> >> Normal mode works properly
> >> $ sudo stap -v helloworld.stp
> >> But guru mode does not work for me
> >> $ sudo rm -rf ~/.systemtap/cache/
>
> (This should not be necessary!)

-g run successfully without this.

$ 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
WARNING: /usr/local/bin/staprun exited with status: 1
Pass 5: run failed.  [man error::pass5]

> >> $ sudo stap -v helloworld.stp -g
> >> Invalid module format
> >> WARNING: /usr/local/bin/staprun exited with status: 1
> >> Pass 5: run completed in 0usr/10sys/8real ms.
> >> Pass 5: run failed.  [man error::pass5]
>
> It would help to know the kernel version, configuration, anything left
> in the dmesg w.r.t. modules, security, etc.
>
Kernel version
============
$ uname -a
Linux aubrey-skl 5.1.0-rc5+ #96 SMP Tue May 7 06:34:44 CST 2019 x86_64
x86_64 x86_64 GNU/Linux

configuration is attached.

I didn't see anything in dmesg related to this. That is, I "tail -f
/var/log/kern.log"
before I run the following steps, and nothing new is shown on the screen.

$ sudo stap -p4 helloworld.stp -g
/home/aubrey/.systemtap/cache/04/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko

$ sudo insmod .systemtap/cache/04/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko
insmod: ERROR: could not insert module
.systemtap/cache/04/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko:
Invalid module format

$ modinfo .systemtap/cache/04/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko
filename:
/home/aubrey/.systemtap/cache/04/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko
license:        GPL
description:    systemtap-generated probe
license:        GPL
srcversion:     75A43EE3D05DA23E3130841
depends:
retpoline:      Y
name:           stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001
vermagic:       5.1.0-rc5+ SMP mod_unload modversions
parm:           _stp_bufsize:buffer size (int)

Please let me know if I should provide more information.

Thanks,
-Aubrey

Attachment: kernel_config
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]