From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122043 invoked by alias); 12 Sep 2019 12:30:46 -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 122035 invoked by uid 89); 12 Sep 2019 12:30:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,FAKE_REPLY_C,KHOP_HELO_FCRDNS autolearn=no version=3.3.1 spammy= 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; Thu, 12 Sep 2019 12:30:44 +0000 Received: from librem.wildebeest.org (unknown [89.248.140.11]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 96C0E302AB39 for ; Thu, 12 Sep 2019 14:30:42 +0200 (CEST) Received: by librem.wildebeest.org (Postfix, from userid 1000) id 650E9C02A1; Thu, 12 Sep 2019 14:30:42 +0200 (CEST) Date: Thu, 12 Sep 2019 12:30:00 -0000 From: Mark Wielaard To: systemtap@sourceware.org Subject: Re: systemtap doesn't run Message-ID: <20190912123042.GH8222@wildebeest.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="jousvV0MzM2p6OtC" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2019-q3/txt/msg00069.txt.bz2 --jousvV0MzM2p6OtC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 85 Forwarding this discussion, since I forgot to properly CC the systemtap list earlier. --jousvV0MzM2p6OtC Content-Type: message/rfc822 Content-Disposition: inline Content-length: 5918 Return-Path: X-Original-To: fedora@wildebeest.org Delivered-To: fedora@wildebeest.org Received: from bastion.fedoraproject.org (bastion02.fedoraproject.org [209.132.181.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPS id 0205930005A9 for ; Mon, 9 Sep 2019 09:29:52 +0200 (CEST) Received: by bastion02.phx2.fedoraproject.org (Postfix) id 63BBC607EE74; Mon, 9 Sep 2019 07:29:51 +0000 (UTC) Delivered-To: mjw@fedoraproject.org Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by bastion02.phx2.fedoraproject.org (Postfix) with ESMTPS id 4A378607EE61 for ; Mon, 9 Sep 2019 07:29:51 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 bastion02.phx2.fedoraproject.org 4A378607EE61 Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1FD6AC007359 for ; Mon, 9 Sep 2019 07:29:51 +0000 (UTC) Received: by mail-io1-f72.google.com with SMTP id 18so17241180iof.2 for ; Mon, 09 Sep 2019 00:29:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rkpMYMEUmtf1bPkII2dLlGMiieI9TzzghjWWVoKcFu0=; b=JN0YlZYJRcIosoSIbjJcfiSo3r7c0gyEQfevBdmltd85b7Dj+2pxqcGH/pxoGgqUyj kkxOinc3eJYDHTe71X05OTPDpc3v27pmGU8Io+OtNdNMLE0xaNEO9Gsi4G+VQ7zLbwzU KG46rKPGvQRgDxbvJhm5iK/MTOGRwYgcZ10Ba8p/sFEWqvvOkmtE7BSRPlnPVz5UlUT3 XrRBw6C3e1yXGnAtgG1t08zfjq9prqTgKv7TSMPvs3+JjXXYJLUnyhM7W77+jsDIRcQ5 kWyyG975fVQ/GbTnw+IXAczSdD2JD/6xWAaPUC+mwBOjAVfiJUC+SJnfZG/48/70QyXY XVVA== X-Gm-Message-State: APjAAAX5IgQ87qDibm08g1tpr8RSxJVLhdiQvCqi9k3SJRAahyNxW4Ef MuVywxVZlPLzyqDSAuvbeKnOMn8r04H7rlz6OgR2+30v1Ma9q9ELVgsICKbYC8865o4NWjid/Ek WI6at39FocJ39+42xav2UZIxidKfuwsM= X-Received: by 2002:a6b:ef0b:: with SMTP id k11mr12151081ioh.143.1568014190442; Mon, 09 Sep 2019 00:29:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKlAEsaWJYlQrD3NH9Ca1pSoPPuF50wNxNnk490mP3L+/kBEwa3lDCmo5ucpTLlDtffqqWsaMDYJ92NcWWBus= X-Received: by 2002:a6b:ef0b:: with SMTP id k11mr12151062ioh.143.1568014190176; Mon, 09 Sep 2019 00:29:50 -0700 (PDT) MIME-Version: 1.0 References: <953821211ab1063b569bf3e319e41654ed4cdd9c.camel@fedoraproject.org> In-Reply-To: <953821211ab1063b569bf3e319e41654ed4cdd9c.camel@fedoraproject.org> From: Jan Synacek Date: Mon, 9 Sep 2019 09:29:39 +0200 Message-ID: Subject: Re: systemtap doesn't run To: Mark Wielaard Cc: Development discussions related to Fedora Content-Type: multipart/alternative; boundary="000000000000cf0d7e059219c033" X-Spam-Flag: NO X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED,SPF_FAIL autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on gnu.wildebeest.org X-TUID: Xl1yWhvNG361 --000000000000cf0d7e059219c033 Content-Type: text/plain; charset="UTF-8" Content-length: 2240 On Fri, Sep 6, 2019 at 10:37 PM Mark Wielaard wrote: > 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: > > > > $ 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") > > { > > ^ > > > > semantic error: no match (similar functions: read, free, getenv, > page_size, > > safe_atoi) > > > > 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. > > > > 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. > Right, so this is really the problem. The error message is simply wrong plus it doesn't say that the debug symbols actually don't match. $ rpm -q systemd systemd-debuginfo systemd-239-13.gitf4afb95.fc29.x86_64 systemd-debuginfo-239-3.fc29.x86_64 For some reason, I thought that the debuginfo matched the systemd version. Sorry about the misinformation. The fact that dnf considers these two versions a match and doesn't install the correct version is another issue. Thank you for pointing me to the right direction. Regards, -- Jan Synacek Software Engineer, Red Hat --000000000000cf0d7e059219c033-- --jousvV0MzM2p6OtC--