public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* (no subject)
@ 2019-05-07  6:58 Aubrey Li
  0 siblings, 0 replies; only message in thread
From: Aubrey Li @ 2019-05-07  6:58 UTC (permalink / raw)
  To: systemtap

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?

Thanks,
-Aubrey

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-07  6:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-07  6:58 Aubrey Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).