From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-00569201.pphosted.com (mx0a-00569201.pphosted.com [205.220.166.26]) by sourceware.org (Postfix) with ESMTPS id 48DD4385841E for ; Mon, 21 Nov 2022 06:44:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 48DD4385841E Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=zoom.us Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zoom.us Received: from pps.filterd (m0222712.ppops.net [127.0.0.1]) by mx0b-00569201.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AKM66rj010326 for ; Sun, 20 Nov 2022 22:44:29 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=dv03112021; bh=neCAjWKUjicAAlhZ9ClNHKf9b95Eopaq4XfLfdFycqo=; b=QIbco5Ksn+8LlHBhQtYeoZQOozyeoUqBTOxJpAjv/BkW34erRCxCrmrfJPJSflYSICcc yKXhRuZkqYdilFvDQ0BfBgjD5AKse6tljC+Z3VHz8ON3iujY1S7AbizEdVZEBpIu750F TZu0MZUdD345CqQ8WcsH4jGl2q1b7IKdBOpTdyRN2uIXvxynrKY5B4B4cwoVLalCTezQ kaRi0nbSdJZDtMRvPSFgRFvWBVd+nqoOyen1QMfoC56GP+84iIxgv9IUQH5xBErYwqhE GpKCNoTkPq5jqhy8DSgnfqt2aIWeDQeKlMNifYQ1NAxuHBq9U5JxM95+RIbwczO2wOnC HA== Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by mx0b-00569201.pphosted.com (PPS) with ESMTPS id 3kxx703knb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sun, 20 Nov 2022 22:44:29 -0800 Received: by mail-io1-f72.google.com with SMTP id h21-20020a05660224d500b006debd7dedccso1242652ioe.9 for ; Sun, 20 Nov 2022 22:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=neCAjWKUjicAAlhZ9ClNHKf9b95Eopaq4XfLfdFycqo=; b=SZ9EscVZ9SYuCLiUaqnDw5dSPu/K5GrY6WlxW2vO3o2HGkORun4Q0FfMluFbcbXp80 yADrCKb1JwcI17dWJYKZomf3BVt0dJ7r7Fp1lMNySCo9fDdA6lm9OKTWQ7w382pBToOT SoKqKLix8kcjos4Oj/EXUS8TWiTK0kcuI3808= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=neCAjWKUjicAAlhZ9ClNHKf9b95Eopaq4XfLfdFycqo=; b=sw9cwcygQPOi986KxB1EYzUy3Rs5Q8FsSaiZbU2418ZGlGfo2JccCten6kma2tsnAj HVrbFe5gW1wDeWgTF5O81R+jXiVjglerywoCLEvmSGmS3SgMHzGi2bOfA4BkAjLaXsZo E62ZHQodFV9pveQPwGNIABkba12qtv3HzAVOdRGV92LXhNo4bu9VGyj3xoUtD15OI2li 83KBiOb4T7bFODjE+w02pPh2S6hDq0Z/qBk/0YfpljRMnTmDhRi4wn0TqYLhRB8s7mBq lAr49OsIVcQ3MvBRAifS8/KTF9f4fhz9KKgIPmLOGrJw4nrB38oocAyn1GqnG0NEYdll DBcw== X-Gm-Message-State: ANoB5pmXCi/6gbzAhJdz7dsN7mCyyrLlSkugyTA7oVnttg4eV/yXrtV3 +yeddkVKMnrg78VkTB0+Y51y9pJE0ylR+mNMjxynaWn5fSFoHEqf7aHYoW+4CbL+qV41dkRt7am x6Z12+N5p3NGRRaFtoYBCxb9SQtzFEI/2wh4= X-Received: by 2002:a02:95ca:0:b0:363:ab01:e25f with SMTP id b68-20020a0295ca000000b00363ab01e25fmr7480140jai.167.1669013068213; Sun, 20 Nov 2022 22:44:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4edNs2mTAeNX75vAmzvjz4UPUXie0HJCoe00VSSFfJKkUViDXLOG8ltNppd7Qy3BCXoNTCbEFHLE3bEF9ltOE= X-Received: by 2002:a02:95ca:0:b0:363:ab01:e25f with SMTP id b68-20020a0295ca000000b00363ab01e25fmr7480129jai.167.1669013067789; Sun, 20 Nov 2022 22:44:27 -0800 (PST) MIME-Version: 1.0 References: <87y1s8jmmt.fsf@redhat.com> In-Reply-To: <87y1s8jmmt.fsf@redhat.com> From: Yibin Zhao Date: Mon, 21 Nov 2022 14:44:16 +0800 Message-ID: Subject: Re: How to translate from user space symbol name to address? To: "Frank Ch. Eigler" Cc: systemtap@sourceware.org Content-Type: multipart/alternative; boundary="00000000000008196e05edf563a4" X-Proofpoint-ORIG-GUID: knWL929OVDU8bUwr7rOn1T6wLzofZxzw X-Proofpoint-GUID: knWL929OVDU8bUwr7rOn1T6wLzofZxzw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-21_05,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 clxscore=1015 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 spamscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210052 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000008196e05edf563a4 Content-Type: text/plain; charset="UTF-8" Understood. I'm not sure if this kind of usage is common. Finally I translated those addresses to symbols and stripped them by a post processing script, the performance is acceptable. Thanks Yibin On Fri, Nov 18, 2022 at 11:41 PM Frank Ch. Eigler wrote: > Yibin Zhao via Systemtap writes: > > > I can get the ubacktrace and translate the addresses to symbols one by > > one, and try to find the relationship between the symbol and the > > address, but it's a bit tricky I think. > > We don't have a runtime tapset function for that direction of mapping, > but a new one could be written, whether slowish/linear, or sorted/binary > like the address-to-symbol table. > > - FChE > > --00000000000008196e05edf563a4--