From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70452 invoked by alias); 28 May 2018 18:41:27 -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 70434 invoked by uid 89); 28 May 2018 18:41:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Ready X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 28 May 2018 18:41:25 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9D6CC3003A51 for ; Mon, 28 May 2018 18:41:23 +0000 (UTC) Received: from redhat.com (ovpn-116-38.phx2.redhat.com [10.3.116.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6D9BE17A74; Mon, 28 May 2018 18:41:23 +0000 (UTC) Received: from [127.0.0.1] (helo=vm-rhel7) by redhat.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1fNN58-00068X-2S; Mon, 28 May 2018 14:41:22 -0400 From: fche@redhat.com (Frank Ch. Eigler) To: Jeff Moyer Cc: systemtap@sourceware.org Subject: Re: [PATCH 3/3] io_submit.stp: let the user know when the script is loaded References: <20180511192552.12849-1-jmoyer@redhat.com> <20180511192552.12849-4-jmoyer@redhat.com> Date: Mon, 28 May 2018 18:41:00 -0000 In-Reply-To: <20180511192552.12849-4-jmoyer@redhat.com> (Jeff Moyer's message of "Fri, 11 May 2018 15:25:52 -0400") Message-ID: <878t838vxq.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-q2/txt/msg00084.txt.bz2 jmoyer wrote: > I often find myself checking lsmod to see when the script is finally > ready to collect data. Just print a message from the begin probe to > make it obvious when the script is ready. > [...] > +probe begin { > + printf("Ready!\n") > +} I merged this and the other patches (thanks!). For the record though, one may prefer a solution like cat >> $HOME/.systemtap/rc -E 'probe begin { printf("Ready!\n") }' ^D so that every stap script you use automagically gets that extra probe added on. - FChE