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 C6D0A3858D38 for ; Wed, 9 Nov 2022 09:58:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C6D0A3858D38 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 (m0288580.ppops.net [127.0.0.1]) by mx0b-00569201.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2A96glcK016613 for ; Wed, 9 Nov 2022 01:58:31 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; h=mime-version : from : date : message-id : subject : to : content-type; s=dv03112021; bh=brLqrNDLEwNYJO6tXmE8s9uBD8a/d7SlV1ynW2n43Bs=; b=WmJTGvuDQJiVtPczhX/riLhkHeFTH4E9NbYFWW57cmN7alawY5RDDDRQ37Z0502H7aWd TO0RQOgE1CQjGc/9CXuF1F7hdTDw1O/n4loD+FNibnJV+hCfJbAxbNrEdsJXrAqsORqb dPyPLLno1ZVbnXU4ozotbftRJlS7OXyYV/GT15HpYstmTFaq6ZGLcCZj49cqv7UHz5XG lPGQiqPuMWg0JicOY6AtlQnZwkVIWGBtahHCSl7faiDbOOt1VACHLOjic0Ifri7Oh/1i nhC0wbvn4hQS/J0O1O02M2SJLMHGixIRooXzTZQ/3/VAoUitTlnaohWjhL7BbW3RGwtA ew== 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 3knngg3kcc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 09 Nov 2022 01:58:30 -0800 Received: by mail-io1-f72.google.com with SMTP id n23-20020a056602341700b00689fc6dbfd6so10880859ioz.8 for ; Wed, 09 Nov 2022 01:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zoom.us; s=google; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=brLqrNDLEwNYJO6tXmE8s9uBD8a/d7SlV1ynW2n43Bs=; b=KRuhnZN4iCEQOjhkR58OA3AA6mCFC+xquGCEwjzkYY85aug56Xs22vnjLaJLGSv1KQ KUCs0qd4yzLcLOiwV2NhknQxrt5izEkyvo+5510CD9mAjMTkt/j+8eFft4D7tuWn+zBC 9hHMQXzP+uHtI1v0u4h5m4ccWLm7Spzb0cJkk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=brLqrNDLEwNYJO6tXmE8s9uBD8a/d7SlV1ynW2n43Bs=; b=lpW3ma5WsUHm58PyrpbLi7gEoSmG0Q/ewmo11EQexi/lJIShmli0SqUFKCVwtVmLro KRWsuEwml0unx5sqp+D3UoQu+mW94FcVucS9UtB+4yXK5F0CnV1nMJVCDML1f6D2q8lw uT9SRScPFlEV3IPyMHtS/eUS6Y2mxFIc1C6sBqr1Y7qx0G2kNFvUHf1Kp6I8ArcWUif+ TZ2oDh1lX7phGwD3bnTBvKwcF41QxdcEtUuqDvDMBBw6t0Lzlrt7iw+qBVY/qMkCC/DR wUqACH+YlXpoWZKwfOSHi01p0VlpE/K89xGg25qCpEGgMn309SI+ArXaMVXDt4nHqssO omnA== X-Gm-Message-State: ACrzQf3qGMeau+MzkMqA7qAJFbVjk5DmllSY+QgqitkRCxZLmxgBFt6o FrarQ6Z/kZhogtDQ+J4fRBmPhWe4p590EcyL9GQuMFvLmFB/9UCYsf+BfaezOxuvyBZuyHBYyXE 9UGMo8ABzW/BY+wNivaNVt+njzJlkiW+sHyk= X-Received: by 2002:a92:680d:0:b0:300:876b:511e with SMTP id d13-20020a92680d000000b00300876b511emr1708136ilc.105.1667987909988; Wed, 09 Nov 2022 01:58:29 -0800 (PST) X-Google-Smtp-Source: AMsMyM5tK3UFK5+wsohpxKHRhFE7iLnX5p48YefMe61QvlfVSvP7tF0BSgL/l3H8JnpefqccVX35KE8YFhhWAo5q3pE= X-Received: by 2002:a92:680d:0:b0:300:876b:511e with SMTP id d13-20020a92680d000000b00300876b511emr1708127ilc.105.1667987909386; Wed, 09 Nov 2022 01:58:29 -0800 (PST) MIME-Version: 1.0 From: Yibin Zhao Date: Wed, 9 Nov 2022 17:58:18 +0800 Message-ID: Subject: How to translate from user space symbol name to address? To: systemtap@sourceware.org Content-Type: multipart/alternative; boundary="000000000000d44b6c05ed06b2ed" X-Proofpoint-GUID: z-yIzmmfBhpHu0CVKb6tngrNAYIj5Voa X-Proofpoint-ORIG-GUID: z-yIzmmfBhpHu0CVKb6tngrNAYIj5Voa 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-09_03,2022-11-08_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 clxscore=1011 mlxlogscore=719 malwarescore=0 impostorscore=0 adultscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211090075 X-Spam-Status: No, score=-2.3 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: --000000000000d44b6c05ed06b2ed Content-Type: text/plain; charset="UTF-8" Hi, usymname can be used to translate address to symbol name, but I can't find an easy way to translate symbol name to address. 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. In systemtap source code, tapset.cxx do get address for probed symbols, is it possible to get symbol address during runtime? The reason why I want to translate a symbol to an address is , I want to strip part of the stack for readability. Any clue is appreciated Thanks Yibin --000000000000d44b6c05ed06b2ed--