From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 3C993386103F for ; Tue, 19 Jan 2021 22:21:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3C993386103F Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-304-tL2P_mnqOvmuh4pYXyL8ig-1; Tue, 19 Jan 2021 17:21:43 -0500 X-MC-Unique: tL2P_mnqOvmuh4pYXyL8ig-1 Received: by mail-qk1-f198.google.com with SMTP id q7so21676162qki.16 for ; Tue, 19 Jan 2021 14:21:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+kQkQ34frS272q6n1FNSriY767v0wizpDe7j2x6/T4I=; b=prjfNpLdxg7YjE64YEbLxGlm8m//8RYYma6vLSh7FduAOl8QzFzddHFFNoA4SG67pb xrjea/UMbyk9rML32TTzApIiQDANTZ3GzWY8nrVEdjeD8QZ03NTj5gBkQz5nFOCFRGDw yE+PYohrmfIH6XN8Q32ZAB0mzBN8Ya4kV1T1WJa+PnCXoN25d7I/atjg1hjKA2OafGtj oha5f4zZb7AUAKEohAkmRWGc7lTGwDOjgJHCRUJkxourC8OzEzptTEf/WzCWbVhaVIPD T5+/kb4ZBw1pircGldJSKVpcl4dmahjNFPgLzJmw0Trbx3UHb0uZdbrFJq3bZTOPuIzh OgPg== X-Gm-Message-State: AOAM533SSvo7LP/lIEL6M6FeinhBFgAJuYUrfVSzhIPNROhu2G9fbMXa PKj1WKTpCa8+ZFSbLgLqQROgx/b6/nkQhiMUt9Uh6usR+6oGqmdyrHC/IvHUyZzyPI5875K/q7A Cd6jbfQBcfcH47PA/lqw= X-Received: by 2002:a37:744:: with SMTP id 65mr6265273qkh.71.1611094902595; Tue, 19 Jan 2021 14:21:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFQRqc6Gimor20qiyVd7lM07Ea1lgv2HJ9iDSQGEUuZ8ZM0nDkpfyNKCFEQ09cd2pjkh4WHg== X-Received: by 2002:a37:744:: with SMTP id 65mr6265263qkh.71.1611094902428; Tue, 19 Jan 2021 14:21:42 -0800 (PST) Received: from [192.168.86.23] ([136.56.129.226]) by smtp.gmail.com with ESMTPSA id n36sm5214qte.71.2021.01.19.14.21.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jan 2021 14:21:41 -0800 (PST) Subject: Re: Emitting marker names instead of hex statement addresses for SDT probes? To: Craig Ringer , systemtap@sourceware.org Cc: "Frank Ch. Eigler" References: From: Stan Cox Message-ID: <7de6169c-2235-4022-6fad-f07f0edadfa0@redhat.com> Date: Tue, 19 Jan 2021 17:21:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: Tue, 19 Jan 2021 22:21:46 -0000 If I use --dyninst (which creates a probe source that is easy to modify and rebuild to try quick experiments) then this change forces the probe point name: #define STP_NEED_PROBE_NAME=1 changed in enter_dyninst_uprobe: c->probe_point = sup->probe->pn; /* was ->pp */ % stapdyn *.so -c /work/scox/stap/sdt/tstclass.x process("/work/scox/stap/sdt/tstclass.x").mark("test_probe_4") aa=0xa string1=abc 10 20 abc xyz 10 20 abc xyz (where the original probe was doing: printf("%s aa=%#lx string1=%s\n",pp(),@cast($arg1,"struct A")->aa, ...)