From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 813063858D39; Thu, 23 Sep 2021 09:29:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 813063858D39 From: "nylon7717 at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/28378] New: [Systemtap] runtime error: Kernel function symbol table missing [man warning::symbols] Date: Thu, 23 Sep 2021 09:29:05 +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: nylon7717 at gmail 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 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, 23 Sep 2021 09:29:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28378 Bug ID: 28378 Summary: [Systemtap] runtime error: Kernel function symbol table missing [man warning::symbols] Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: nylon7717 at gmail dot com Target Milestone: --- I use systemtap in Ubuntu-18.04 # git clone git://sourceware.org/git/systemtap.git=20 # cd systemtap # ./configure && make # sudo make install # sudo apt install linux-headers-$(uname -r) # sudo apt install kernel-package # sudo apt-get install linux-image-$(uname -r)-generic-dbgsym ## test # sudo stap -e 'probe begin { printf("Hello, World!\n"); exit() }' Hello, World! # stap -L 'process("/lib/x86_64-linux-gnu/libc.so.6").function("malloc")' process("/lib/x86_64-linux-gnu/libc-2.27.so").function("__libc_malloc@/buil= d/glibc-S9d2JN/glibc-2.27/malloc/malloc.c:3037") $bytes:size_t ## run my stap script # stap -p4 -r $(uname -r) tracer.stp -m tracer -v -g --suppress-time-limits WARNING: Kernel function symbol table missing [man warning::symbols] Pass 1: parsed user script and 481 library scripts using 129828virt/93224res/5884shr/87548data kb, in 190usr/20sys/212real ms. semantic error: while resolving probe point: identifier 'process' at tracer.stp:1194:7 source: probe process("/lib/x86_64-linux-gnu/libc.so.6").function("getenv").return { ^ semantic error: process return probes not available [man error::inode-uprob= es] semantic error: while resolving probe point: identifier 'process' at :1203:7 source: probe process("/lib/x86_64-linux-gnu/libc.so.6").function("unsetenv").return { ^ semantic error: while resolving probe point: identifier 'process' at :1212:7 source: probe process("/lib/x86_64-linux-gnu/libc.so.6").function("setenv").return { ^ semantic error: while resolving probe point: identifier 'process' at :1222:7 source: probe process("/lib/x86_64-linux-gnu/libc.so.6").function("putenv").return { ^ semantic error: while resolving probe point: identifier 'process' at :1231:7 source: probe process("/lib/x86_64-linux-gnu/libc.so.6").function("getaddrinfo").return { ^ semantic error: while resolving probe point: identifier 'process' at :1238:7 source: probe process("/lib/x86_64-linux-gnu/libc.so.6").function("getnameinfo").return { ^ semantic error: while resolving probe point: identifier 'process' at :1245:7 source: probe process("/lib/x86_64-linux-gnu/libc.so.6").function("gethostbyname").return= { ^ semantic error: while resolving probe point: identifier 'process' at :1251:7 source: probe process("/lib64/libc.so.6").function("__strstr_sse42").return { ^ semantic error: while resolving probe point: identifier 'process' at :1257:7 source: probe process("/lib64/libc.so.6").function("__strcasestr_sse42").return { ^ semantic error: while resolving probe point: identifier 'process' at :1263:7 source: probe process("/usr/lib/x86_64-linux-gnu/libcurl.so").function("curl_easy_perform= ").return { ^ semantic error: while resolving probe point: identifier 'process' at :1293:7 source: probe process("/bin/bash").function("*_builtin").return { ^ Pass 2: analyzed script: 988 probes, 921 functions, 107 embeds, 45 globals using 443952virt/408624res/7420shr/401672data kb, in 2750usr/360sys/3490real ms. Pass 2: analysis failed. [man error::pass2] I can't find out any useful information in internet I also try the other systemtap example, but didn't encounter the same situation. --=20 You are receiving this mail because: You are the assignee for the bug.=