From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1225 invoked by alias); 6 Sep 2019 20:38:47 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 1211 invoked by uid 89); 6 Sep 2019 20:38:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS autolearn=ham version=3.3.1 spammy=H*Ad:U*systemtap, sudo X-HELO: gnu.wildebeest.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (212.238.236.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Sep 2019 20:38:45 +0000 Received: from tarox.wildebeest.org (tarox.wildebeest.org [172.31.17.39]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id C4D053000846; Fri, 6 Sep 2019 22:38:42 +0200 (CEST) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id AE90A489A560; Fri, 6 Sep 2019 22:38:42 +0200 (CEST) Message-ID: <76304a49609625ad3263eba40fd9ce9c8caf597f.camel@fedoraproject.org> Subject: Re: systemtap doesn't run From: Mark Wielaard To: Development discussions related to Fedora Cc: Jan Synacek , systemtap@sourceware.org Date: Fri, 06 Sep 2019 20:38:00 -0000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 X-SW-Source: 2019-q3/txt/msg00068.txt.bz2 Hi Jan, CC systemtap upstream list, because I think this is not a great error message. On Fri, 2019-09-06 at 09:53 +0200, Jan Synacek wrote: > I'm trying to run systemtap on F29 and I'm getting the following > error: >=20 > $ sudo stap -v journal.stap > Pass 1: parsed user script and 491 library scripts using > 355824virt/129076res/9628shr/119256data kb, in 290usr/40sys/334real > ms. > semantic error: while resolving probe point: identifier 'process' at > journal.stap:1:7 > source: probe > process("/usr/lib/systemd/systemd- > journald").function("dispatch_message_real") > { > ^ >=20 > semantic error: no match (similar functions: read, free, getenv, > page_size, > safe_atoi) >=20 > So, 'process' is not a valid identifier? There seems to be something > wrong > with the basic systemtap installation. I do have matching debuginfo > for > both kernel and systemd installed. Running stap-prep only wants to > install > kernel-debuginfo. >=20 > How do I make this basic use-case work? It is a bit hard to say, because you didn't include journal.stap. But I can replicate what you get with: stap -v -e 'probe process("/usr/lib/systemd/systemd- journald").function("dispatch_message_real") { log ("hit"); }' You get that error message if stap cannot find that function symbol. So first that ^ carrot should really not be at "process", but at "function" (or really "dispatch_message_real"). stap really should tell you how to get that symbol. By installing the matching debuginfo package. You also get that message if the debuginfo and main package don't match up. I had: $ rpm -q systemd-debuginfo systemd systemd-debuginfo-241-12.git1e19bcd.fc30.x86_64 systemd-241-10.git511646b.fc30.x86_64 The full version-release number should be identical. After updating the systemd package, so it matched the systemd- debuginfo=20 package, things finally started to work. [mark@f30 ~]$ stap -e 'probe process("/usr/lib/systemd/systemd- journald").function("dispatch_message_real") { log ("hit"); }' hit hit hit Cheers, Mark