From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 83F8E396EC35; Thu, 25 Feb 2021 02:13:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83F8E396EC35 From: "lyeeer at outlook dot com" To: systemtap@sourceware.org Subject: [Bug runtime/27465] New: ERROR: Couldn't insert module&Invalid module format Date: Thu, 25 Feb 2021 02:13:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lyeeer at outlook dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2021 02:13:42 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27465 Bug ID: 27465 Summary: ERROR: Couldn't insert module&Invalid module format Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: lyeeer at outlook dot com Target Milestone: --- Created attachment 13262 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13262&action=3Ded= it Execute script, used to get system calls of docker during execution Hello, When I use the systemTap4.4 version to test on an Ubuntu system with= a kernel version of 4.4.0-21, the following problems occur. ly@ubuntu:~/Desktop/LiCShield-master/LiCShield-master$ sudo stap -g /home/ly/Desktop/LiCShield-master/LiCShield-master/tracing_tool/systemtap_s= cripts/tracer.stp -DSTP_NO_OVERLOAD -DMAXSTRINGLEN=3D4096 -v -c /usr/bin/docker -d -o /home/ly/Desktop/LiCShield-master/LiCShield-master/training_session/python_= build=20 Pass 1: parsed user script and 480 library scripts using 124352virt/93704res/5424shr/88676data kb, in 340usr/100sys/434real ms. WARN= ING: confusing usage, consider @entry($file) in .return probe: identifier '$file= ' at /home/ly/Desktop/LiCShield-master/LiCShield-master/tracing_tool/systemtap_s= cripts/tracer.stp:380:43 source: path_arg[tid()] =3D get_path_wrapper(NULL, $file, %{ FILE %}) ^ WAR= NING: confusing usage, consider @entry($new_dir->mnt) in .return probe: identifier '$new_dir' at :391:30 source: old_path =3D get_path_wrapper($new_dir->mnt, $old_dentry, %{ DENTRY %}) ^ WARNING: confusing usage, consider @entry($old_dentry) in .return probe: identifier '$old_dentry' at :391:45 source: old_path =3D get_path_wrapper($new_dir->mnt, $old_dentry, %{ DENTRY= %}) ^ WARNING: confusing usage, consider @entry($new_dir->mnt) in .return probe: identifier '$new_dir' at :392:29 source: path =3D get_path_wrapper($new_dir= ->mnt, $new_dentry, %{ DENTRY %}) ^ WARNING: confusing usage, consider @entry($new_dentry) in .return probe: identifier '$new_dentry' at :392:44 source: path =3D get_path_wrapper($new_dir->mnt, $new_dentry, %{ DENTRY %})= ^ WARNING: confusing usage, consider @entry($old_dir->mnt) in .return probe: identifier '$old_dir' at :406:30 source: old_path =3D get_path_wrapper($old_dir->mnt, $old_dentry, %{ DENTRY %}) ^ WARNING: confu= sing usage, consider @entry($old_dentry) in .return probe: identifier '$old_dent= ry' at :406:45 source: old_path =3D get_path_wrapper($old_dir->mnt, $old_dentry= , %{ DENTRY %}) ^ WARNING: confusing usage, consider @entry($new_dir->mnt) in .return probe: identifier '$new_dir' at :407:29 source: path =3D get_path_wrapper($new_dir->mnt, $new_dentry, %{ DENTRY %}) ^ WARNING: confu= sing usage, consider @entry($new_dentry) in .return probe: identifier '$new_dent= ry' at :407:44 source: path =3D get_path_wrapper($new_dir->mnt, $new_dentry, %{ DENTRY %}) ^ WARNING: confusing usage, consider @entry($old_dentry) in .ret= urn probe: identifier '$old_dentry' at :411:19 source: if(is_dentry_dir($old_dentry)) ^ WARNING: confusing usage, consider @entry($path) in .return probe: identifier '$path' at :563:50 source: mount_target[tid] =3D get_path_wrapper(NULL, $path, %{ PATH %}) ^ WARNING: confusing usage, consider @entry($path) in .return probe: identifier '$path= ' at :567:47 source: mount_source[tid] =3D get_path_wrapper(NULL, $path, %{ PATH= %}) ^ Pass 2: analyzed script: 34 probes, 33 functions, 100 embeds, 8 globals usi= ng 176924virt/147968res/6892shr/141248data kb, in 1170usr/860sys/2376real ms. WARNING: unused command line option $1/@1=20 Pass 3: using cached /home/ly/.systemtap/cache/80/stap_80a92b209efe4091f63377f31abb085e_93148.c= =20 Pass 4: using cached /home/ly/.systemtap/cache/80/stap_80a92b209efe4091f63377f31abb085e_93148.ko= =20 Pass 5: starting run. ERROR: Couldn't insert module '/tmp/stapaon1yo/stap_80a92b209efe4091f63377f31abb085e_93148.ko': Invalid module format WARNING: /usr/local/bin/staprun exited with status: 1=20 Pass 5: run completed in 0usr/0sys/2real ms. Pass 5: run failed. [man error::pass5] Then, I searched for a related answer(Bug 24720) that said it was a problem with guru mode. But the C language code is embedded in my script, so I need= to turn on the guru mode. If it is not turned on, an error will occur ly@ubuntu:~/Desktop/LiCShield-master/LiCShield-master$ sudo stap /home/ly/Desktop/LiCShield-master/LiCShield-master/tracing_tool/systemtap_s= cripts/tracer.stp -v -c /usr/bin/docker -d -o /home/ly/Desktop/LiCShield-master/LiCShield-master/training_session/python_= build parse error: embedded code in unprivileged script; need stap -g saw: embedded-code at /home/ly/Desktop/LiCShield-master/LiCShield-master/tracing_tool/systemtap_s= cripts/tracer.stp:1:1 source: ... --=20 You are receiving this mail because: You are the assignee for the bug.=