This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: guru mode: invalid module format
On Tue, May 7, 2019 at 3:11 PM Aubrey Li <aubreylee@gmail.com> wrote:
>
> Hi,
>
> Here is mine systemtap version
>
> $ stap -V
> Systemtap translator/driver (version 4.1/0.169, commit
> release-4.0-191-g8bb72aa68b70 + changes)
> Copyright (C) 2005-2019 Red Hat, Inc. and others
> This is free software; see the source for copying conditions.
> tested kernel versions: 2.6.18 ... 5.1-rc2
> enabled features: BPF PYTHON2 PYTHON3 NLS
>
> Normal mode works properly
>
> $ sudo stap -v helloworld.stp
> Pass 1: parsed user script and 476 library scripts using
> 113524virt/86020res/5588shr/80776data kb, in 160usr/70sys/222real ms.
> Pass 2: analyzed script: 1 probe, 1 function, 0 embeds, 0 globals
> using 115108virt/87728res/5724shr/82360data kb, in 0usr/0sys/7real ms.
> Pass 3: translated to C into
> "/tmp/stap0IY8bu/stap_987097eb77b9beb03d8e647034de5773_1001_src.c"
> using 115108virt/87728res/5724shr/82360data kb, in 0usr/0sys/0real ms.
> Pass 4: compiled C into
> "stap_987097eb77b9beb03d8e647034de5773_1001.ko" in
> 1990usr/2520sys/4301real ms.
> Pass 5: starting run.
> hello world
> Pass 5: run completed in 10usr/90sys/556real ms.
>
> But guru mode does not work for me
>
> $ sudo rm -rf ~/.systemtap/cache/
> $ sudo stap -v helloworld.stp -g
> Pass 1: parsed user script and 476 library scripts using
> 113528virt/86164res/5732shr/80780data kb, in 140usr/80sys/221real ms.
> Pass 2: analyzed script: 1 probe, 1 function, 0 embeds, 0 globals
> using 115112virt/87932res/5932shr/82364data kb, in 10usr/10sys/7real
> ms.
> Pass 3: translated to C into
> "/tmp/stap9WYfyJ/stap_987097eb77b9beb03d8e647034de5773_1001_src.c"
> using 115112virt/87932res/5932shr/82364data kb, in 0usr/0sys/0real ms.
> Pass 4: compiled C into
> "stap_987097eb77b9beb03d8e647034de5773_1001.ko" in
> 10650usr/6000sys/16469real ms.
> Pass 5: starting run.
> ERROR: Couldn't insert module
> '/tmp/stap9WYfyJ/stap_987097eb77b9beb03d8e647034de5773_1001.ko':
> 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]
>
> Is this "invalid module format" a known error?
>
The problem remains when I upgrade systemtap source and elfutils
$ sudo stap -V
Systemtap translator/driver (version 4.1/0.176, commit
release-4.0-220-g1e96111d0d89 + changes)
Copyright (C) 2005-2019 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.18 ... 5.1-rc2
enabled features: BPF PYTHON2 PYTHON3 NLS
$ sudo stap -v helloworld.stp -g
Pass 1: parsed user script and 476 library scripts using
113588virt/86248res/5816shr/80776data kb, in 140usr/90sys/226real ms.
Pass 2: analyzed script: 1 probe, 1 function, 0 embeds, 0 globals
using 115172virt/87956res/5952shr/82360data kb, in 0usr/0sys/7real ms.
Pass 3: translated to C into
"/tmp/stapVVb5wu/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001_src.c"
using 115172virt/87956res/5952shr/82360data kb, in 0usr/0sys/0real ms.
Pass 4: compiled C into
"stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko" in
10860usr/5820sys/16486real ms.
Pass 5: starting run.
ERROR: Couldn't insert module
'/tmp/stapVVb5wu/stap_04e0f4dfbaee29e9464955e58a2f9dbf_1001.ko':
Invalid module format
WARNING: /usr/local/bin/staprun exited with status: 1
Pass 5: run completed in 20usr/0sys/9real ms.
Pass 5: run failed. [man error::pass5]