From patchwork Tue Jan 31 23:34:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Indu Bhagat X-Patchwork-Id: 51097 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp94566wrn; Tue, 31 Jan 2023 15:35:29 -0800 (PST) X-Google-Smtp-Source: AK7set+nH7FYzGaa2DgCqZaUiMgG8YOzdqezNrd+MJukAqvC9pUTMasMs7NZ058SR9GZkp74pzN3 X-Received: by 2002:a17:907:d609:b0:882:6bd7:70c9 with SMTP id wd9-20020a170907d60900b008826bd770c9mr243244ejc.15.1675208129827; Tue, 31 Jan 2023 15:35:29 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id mu32-20020a1709068aa000b00889729b5a7fsi6629441ejc.228.2023.01.31.15.35.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 15:35:29 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=j3moedYu; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4EAF4385B52B for ; Tue, 31 Jan 2023 23:35:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4EAF4385B52B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675208116; bh=IHicnACfAIHQ01+/0OZcH+mzwGL2VN3e1VXlIsyjuDY=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=j3moedYulj5+aBseAVX/NfaVLiEew9wiyj+coPs6GtMAb5zs4/4kqcyqj8FyvZ+Ci YK88F0yyMpvTX2ijExOJhtXUrKvnQPVz9PzzV9LtM1CR+LqVFt25rnvtDfyF3xwtt0 9pmgpC/rMC2qtnwz5Bqla3RyknNFkJTALsK0tvAA= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id AF2AA385841E for ; Tue, 31 Jan 2023 23:34:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF2AA385841E Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30VIiMWu005638 for ; Tue, 31 Jan 2023 23:34:55 GMT Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ncvm1739u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:34:55 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30VMuxKK031594 for ; Tue, 31 Jan 2023 23:34:54 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nct5d8rp2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:34:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hFOq4QaDbVVhD5VAcAZDzBXf1HbpncVTRucO1nEyMo7qwLP7si4f+4p4iB5LzhykE6x9FolNMEEbzqA04qjiv58Oi56mCFcERNmrOy2roLmz+wdIHdkAzft6h9AiwiYt1rCENRfOXw/OBpzXZg0fLpzLoFMjkOjG6yS6wl7kYgv6EbaILUscK6rL0j9KwussoFzuIZpmIJvrFc+5Gak/q9ecRe3MfG1HMzSw8Exbeu0SrGcdSkVv7TYx6UD6wvdMc716rp6OcVeX5fL5oPMJN68b+2vVJqjtDR/4xnkvJl5K40i4zvuPcqxzhR4dz9ejwweRxBmtcUQ23dzxAZCmwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IHicnACfAIHQ01+/0OZcH+mzwGL2VN3e1VXlIsyjuDY=; b=EEfRCkcNBDqA44G+WT41VERswrVcfclCpd4M6Xl72mwn35E3o6AXwxfaziI+cgI0gcJTeK32eqDeKZLwQDruCqAha0q4zlcHx8VbRfIQhpCqqD7QGI9SnQMkrv62PjwvxVWaVKguv3P028l+J1vEOKnFWBDfvjf1bkMDwWZXy3Vj+BqpCPHM2IUdDA4N+JhmBkIMBiz3yK4emLkfYTYELtYbRNqQ2/YZFvDrKRCc9WVWlN0ckNSJfFWjTR1pf/2PI7PeC/xgwrh3wECg9pLpvLmo4AjQ9iPp9C8vwq85Oyg2c7JjO8wPsB/E7ilILzrhQaRxYRFygbt3FaFKcaEIqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) by SA2PR10MB4666.namprd10.prod.outlook.com (2603:10b6:806:112::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Tue, 31 Jan 2023 23:34:51 +0000 Received: from MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57]) by MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57%7]) with mapi id 15.20.6064.022; Tue, 31 Jan 2023 23:34:51 +0000 To: binutils@sourceware.org Cc: Indu Bhagat Subject: [PATCH 1/5] libsframe/doc: use "stack trace" instead of "unwind" for SFrame Date: Tue, 31 Jan 2023 15:34:25 -0800 Message-Id: <20230131233429.3708328-2-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230131233429.3708328-1-indu.bhagat@oracle.com> References: <20230131233429.3708328-1-indu.bhagat@oracle.com> X-ClientProxiedBy: MW4P220CA0005.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::10) To MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2158:EE_|SA2PR10MB4666:EE_ X-MS-Office365-Filtering-Correlation-Id: d43734df-cb67-4668-9982-08db03e3bfc4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: moF7DL/b8lfl7W/5aGQKP8y56YMBWtp7pQl63DSusfABb+0IebHvKFyDBQoRx/HLfHy422IRN6Mz6d4UsXtTp5qwnuUEjPrel/CGFGSJOLXBV78+vLk9L8cbcNUunRPunygY/0z5uPSg0T/CNdCY/6KGgEOOawfSxd3ghr6UNruFjgbIV7Hhi0oFuJBIYLfY0Z3v+WJNZuHsbgaUsPHUsUuc2KiPvaXPWbxBs8CW9zQVyGeqr+5MFbTHC67/+LbN8z6xQv0zrPvcbnB2n6hw8ajOUovzHF1kWw/FOPnCy3t8lE3t0t6ZmNKeVYop/FjFrnnaqQSh6B4eIGWJJ+6TANVmOCc2cOdXDz7m36uar6uW8lk4eU8YF7vSsRLktjP8X96ge0fdNKhn0SAZBFW6FIQD/Uz/L+v2tJvC0XT7GMQFS7CgzqKrN31xMqj6YGKFuTy7JgN7/6rEeE+XaD7D1Tdilyv9FOCMqx78uTDzNWsdwliSZQCjVFn6VN7ZspL3SUla09dj5t/X8tpdADOk+XNVyHJuXQlo4ub+Q9JH4sOtg39gMZF5aQvhRr9fjx1bvyONpOMilcNSTFlzl5u1SDJdqjQgPc/4wmoHACTPc3Yaupe8axE8PXjcBYNyqSSEm9S2Tx2ZhCYXnFzVcoW3MQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2158.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(39860400002)(376002)(136003)(366004)(396003)(451199018)(6916009)(8676002)(4326008)(83380400001)(41300700001)(66476007)(66556008)(66946007)(316002)(8936002)(6512007)(36756003)(186003)(26005)(44832011)(2906002)(5660300002)(6666004)(6506007)(107886003)(478600001)(1076003)(86362001)(2616005)(6486002)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f4lXnNNd+6YXvchYN7v9PHlkw0Pp6OfqeXfW8t5SaQnTq7CRD9kIwU7wp8gatqFY+SgsXLWiNwy+cdV9eGS2Mp5W40ay/q/ynEoJbJOyBbiiJYGRzWTLIxmthMAGSnRZP0b2ZrtYUpUsILx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/MS2Ljh4bGqyhyblpLjJtlBTBSC5Ilj+00l/WSQmz6LNjbTcip8nCwB70P5CV8VCBBLmeQ++ihr8XZQd8VzO531BzoIMbK3feBf8HJhzySWyTaduxFs+j8GkI/05OmernSgUlEnS/CcwSO/tqEQgA2G7r6j27Ye6c/GRxQoSLIKP1ShA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d43734df-cb67-4668-9982-08db03e3bfc4 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 23:34:51.4411 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cDn+EDNQDBIHPLomgVmSIi3NqBRs7QJWu0PS9glLNS/ZlSMjp2lO9ikhaduBsLgPZBAA2+MtYILDSD5tfAvfBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4666 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 suspectscore=0 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310202 X-Proofpoint-GUID: Hs12Ceeme98OpKNKSXgr2LuXogHW2Sh7 X-Proofpoint-ORIG-GUID: Hs12Ceeme98OpKNKSXgr2LuXogHW2Sh7 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Indu Bhagat via Binutils From: Indu Bhagat Reply-To: Indu Bhagat Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756583040120891224?= X-GMAIL-MSGID: =?utf-8?q?1756583040120891224?= SFrame format is meant for generating stack traces only. libsframe/ * doc/sframe-spec.texi: Use "stack trace" instead of "unwind". --- libsframe/doc/sframe-spec.texi | 37 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/libsframe/doc/sframe-spec.texi b/libsframe/doc/sframe-spec.texi index 175c622f85d..6987b6fee13 100644 --- a/libsframe/doc/sframe-spec.texi +++ b/libsframe/doc/sframe-spec.texi @@ -35,7 +35,7 @@ License''. This manual describes version 1 of the SFrame file format. SFrame stands for Simple Frame format. SFrame format keeps track of the minimal necessary -information needed for stack unwinding: +information needed for generating stack traces: @itemize @minus @item @@ -47,7 +47,7 @@ Return Address (RA). @end itemize The reason for existence of the SFrame format is to support fast, online -backtracing using a simple unwinder. +generation of stack traces using simple means. @menu * Overview:: @@ -62,7 +62,7 @@ backtracing using a simple unwinder. @cindex Overview @tindex PT_GNU_SFRAME -The SFrame unwind information is provided in a loaded section, known as the +The SFrame stack trace information is provided in a loaded section, known as the @code{.sframe} section. When available, the @code{.sframe} section appears in a new segment of its own, PT_GNU_SFRAME. @@ -289,7 +289,7 @@ high-level function description for backtracing. @item 0x18 @tab @code{uint32_t sfh_freoff} @tab The offset in bytes of the SFrame FRE sub-section, the core of the SFrame -section, which describes the unwind information using variable-length array +section, which describes the stack trace information using variable-length array elements. @xref{SFrame Frame Row Entries}. @end multitable @@ -303,8 +303,9 @@ elements. @xref{SFrame Frame Row Entries}. @cindex SFrame ABI/arch identifier SFrame header identifies the ABI/arch of the target system for which the -executable and it's unwind information is intended. There are currently three -identifiable ABI/arch values in the format. +executable and hence, the stack trace information contained in the SFrame +section, is intended. There are currently three identifiable ABI/arch values +in the format. @multitable {SFRAME_ABI_AARCH64_ENDIAN_LITTLE} {Value} {@code{AARCH64 little-endian}} @headitem ABI/arch Identifier @tab Value @tab Description @@ -324,7 +325,7 @@ identifiable ABI/arch values in the format. @end multitable The presence of an explicit identification of ABI/arch in SFrame may allow -unwinders to make certain ABI-specific decisions. +stack trace generators to make certain ABI-specific decisions. @node SFrame Function Descriptor Entries @section SFrame FDE @@ -332,8 +333,8 @@ unwinders to make certain ABI-specific decisions. The SFrame Function Descriptor Entry sub-section is a sorted array of fixed-length SFrame function descriptor entries (SFrame FDEs). Each SFrame FDE -is a packed structure which contains information to describe a function's unwind -information at a high-level. +is a packed structure which contains information to describe a function's stack +trace information at a high-level. @example typedef struct sframe_func_desc_entry @@ -459,7 +460,7 @@ to look up a matching FRE. @subsection The SFrame FRE types A real world application can have functions of size big and small. SFrame -format defines three types of SFrame FRE entries to represent the unwind +format defines three types of SFrame FRE entries to represent the stack trace information for such a variety of function sizes. These representations vary in the number of bits needed to encode the start address offset in the SFrame FRE. @@ -488,21 +489,21 @@ The following constants are defined and used to identify the SFrame FRE types: 32-bit value. @end multitable -A single function must use the same type of FRE throughout. The choice of -which SFrame FRE is used to encode the unwind information of a function, is -stored in the @xref{The SFrame FDE info word}. +A single function must use the same type of SFrame FRE throughout. An +identifier to reflect the chosen SFrame FRE type is stored in the +@xref{The SFrame FDE info word}. @node SFrame Frame Row Entries @section SFrame FRE @cindex SFrame FRE -The SFrame Frame Row Entry sub-section contains the core of the unwind +The SFrame Frame Row Entry sub-section contains the core of the stack trace information. -An SFrame Frame Row Entry is a self-sufficient record containing SFrame unwind -info for a range of contiguous addresses, starting at the specified offset from -the start of the function. Each SFrame Frame Row Entry is followed by S*N -bytes, where: +An SFrame Frame Row Entry is a self-sufficient record containing SFrame stack +trace information for a range of contiguous addresses, starting at the +specified offset from the start of the function. Each SFrame Frame Row Entry +is followed by S*N bytes, where: @itemize @minus @item From patchwork Tue Jan 31 23:34:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Indu Bhagat X-Patchwork-Id: 51096 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp94480wrn; Tue, 31 Jan 2023 15:35:13 -0800 (PST) X-Google-Smtp-Source: AK7set9Mn6h83XNIU1nFVEedXRGhI+lXOUg40ZEvmgztl0ArzAqfOTj37SckZq9B3Wujqds0+fsd X-Received: by 2002:a17:906:48cc:b0:84d:4e9d:864a with SMTP id d12-20020a17090648cc00b0084d4e9d864amr130439ejt.74.1675208112917; Tue, 31 Jan 2023 15:35:12 -0800 (PST) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 27-20020a170906021b00b0087f3e78aad1si14584207ejd.341.2023.01.31.15.35.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 15:35:12 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=KLUTgTnq; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 72B2D3858281 for ; Tue, 31 Jan 2023 23:35:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72B2D3858281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675208106; bh=fXmqzlAb7QLGdAx+/lQ/O9Yp2Euduf9vuLsYGbGYWnk=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=KLUTgTnqqXEjycEIyCmzbMiN4rFd1/oc3NbcCTFkHocyG9rzqJQvo2DH3f3RsKvqR XdNYsZQnfCxj280H7HqY/Ms4NtvIPw2Tyd2Vj6hqLF5jiss6vbv+iAO1ddH3PzO9c5 YT3VFqGc1ojzkIPlOQBv1aPE03IgjzaBGpbLWQMs= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id CF5773858C78 for ; Tue, 31 Jan 2023 23:34:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF5773858C78 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30VIiM14004204 for ; Tue, 31 Jan 2023 23:34:57 GMT Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ncvmhq12y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:34:57 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30VNHPtS033886 for ; Tue, 31 Jan 2023 23:34:56 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2103.outbound.protection.outlook.com [104.47.58.103]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nct56fq1k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:34:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L9Lv4MCsWBeCWgU52aFIU8Tjy5GRV8jjoT2MHv5Y+HlD5kSj6dst9dud7llYbQ2UmZSUXQI3+4fMg9NQcmdpjIQZOL2GFahWnp9Kxe6mpFBrXcwNcus09wWNsvlyKtOKcOEEu4ZWxXrvZBi/VZa15/2Js2+E5IuWdY+bnVe1RBiIRhmMBWDmVo2M9NPKUiB39qTuAfCwAI0LGar1KO8kQpoMs5nmsC1LUILZURvguMMwB0NKRhR0FVCKYnUANC1mDwSdNb+rxRg68Qny+lLFUUc32CXHTQWdNTzyiaSykjIuPsuFL6jgN880lgpHqL5yivYDslEvvnKL3O58WK1ghA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fXmqzlAb7QLGdAx+/lQ/O9Yp2Euduf9vuLsYGbGYWnk=; b=jRojp62dKABagzap/0kJTL9RgBjqApP897lf+yPSFcKP4F4Azf4rjE5Wkwf9HxohISIWJJZQvqL/JPoDnAHG53aQziLnjBBhzTQzQQKJoBlcFre2RQrA0WBDYFExzWaJZiyXLVSl7Rj3O2JN7AMGr8eloi7Fc+c6EBFtHix8/XXbFsA39gSNwRp0uSbZlcVEyJeoly/EfwIZN1P9ybZq6+UbZ8iowvQbQ43Z8T7loWcoitxciCcyDcq8FjwFi4cqyFdjBA6zF0VkIiOM0SxroT0zJB/0Lks0nC6fcAX2HJ4xzaFRfOj2xtcdNDlzX7gIcogs2G6pyTKSIKuZ22OjWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) by CY8PR10MB6633.namprd10.prod.outlook.com (2603:10b6:930:57::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Tue, 31 Jan 2023 23:34:54 +0000 Received: from MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57]) by MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57%7]) with mapi id 15.20.6064.022; Tue, 31 Jan 2023 23:34:54 +0000 To: binutils@sourceware.org Cc: Indu Bhagat Subject: [PATCH 2/5] sframe: use "stack trace" instead of "unwind" for SFrame Date: Tue, 31 Jan 2023 15:34:26 -0800 Message-Id: <20230131233429.3708328-3-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230131233429.3708328-1-indu.bhagat@oracle.com> References: <20230131233429.3708328-1-indu.bhagat@oracle.com> X-ClientProxiedBy: MW4P220CA0007.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::12) To MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2158:EE_|CY8PR10MB6633:EE_ X-MS-Office365-Filtering-Correlation-Id: 99c00c56-174a-44a4-55d5-08db03e3c16f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Asloxu80T8gBT7NnBOq0U672nIL9lRRU7sAv4tWvbwGqTAs1SmdP2PbIWPmkoeD3t7nlqUK0OrQ5JrpyqPqfZTot5CqxTjqllI5HHKPedlvVCCtwFQUV3fBYlIFTuqGw5qzzItvGIGYma7fIYR64XCWtj7oPsZKRKWQ++UmvSw22J+suOL1iF2w9W7aREcycXsD8fZ9ohAN1/95wdFCnHRdqaSWjoWkLhn2rN5npgVNP2ZC4oxThcMKPSPvT/xpj6fRauAkUZ6auYXJFOLYe9ppX5XLaBEKmSy6AvpOaUu6yOpa4XxjIz/c8tZEs1FvVflGbRbULgJDjHxDGnhgrRl9BB7HTywkjpPhF7a9gELbCd8hqEynj8ULeoNPADLS/oZim8mUrvWyFRM/RvKvoNNT6nqa/atrw1rtUNqAJyZxNPyHqWG7aZSZsCU3QRJVEHpAJyjndemTT2l/VVOIUhF/TgqosYKDfG4JvzB6Q2d7mMOD0aL8UFUqg8VrqQ56JzSMaeiVY/1GNh600g9YjmBGBvX/jOTuSpjV7gjo6G4D5FAUU7sVPUeZDou54RMGISbkUg0w+3uwuZGz7e4/xy9FVyxrpfQ6rdW4WpI2WS+7qM7XTC5+ElTHK0cV/GjROEg1gkVifVsck+2c1Qzsl8w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2158.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(366004)(39860400002)(396003)(376002)(136003)(451199018)(2906002)(8676002)(4326008)(6916009)(38100700002)(478600001)(44832011)(8936002)(36756003)(26005)(6506007)(6486002)(5660300002)(107886003)(6666004)(186003)(6512007)(86362001)(2616005)(41300700001)(66476007)(83380400001)(66556008)(1076003)(66946007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-Anti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CrwLtfu22LlY3/7t9dR03Hvz2KObSFXMT9viVErPRnm38EumzeHjSYfoR3T6NlsF8fI1FtpASnHBk53cutAZYQndIWwtFn+6JAuL0N/4U64slQNBBt18QO6WQH16VOIZI+V/+eqElRhxSIAyHUWwXW6lh+f//aG5rRTbQppAWvdA6mhz1FYW00B5oPBgNm5ddNnKMib0wZ4rhTa2paJ/A39tptScuVQ60zHtM3kthQ0YSEQDS/5YQnYgNG2nR8XYqdfzD8Gf12rjGGAEcNgUFnkNUWB3QxRP+XNzUfnlnlFknkXtk3tP5MsaMzQhWDKNFrCPHQKiLjsvUJcF1ZJkeI7pB53lRTH1yBxw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99c00c56-174a-44a4-55d5-08db03e3c16f X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 23:34:54.2534 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JU0Uxno6JzJqMqR4utbvIiv4BAZTbW2J3q8fQOS0VEbLcC79IIQuvPtGCzaCT3tE5GWSsxDLfRoZI8TG/rRBaA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6633 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 malwarescore=0 spamscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310202 X-Proofpoint-ORIG-GUID: jwlVXkss1Q6ChDDpaOMPgJ2GCahCZVR2 X-Proofpoint-GUID: jwlVXkss1Q6ChDDpaOMPgJ2GCahCZVR2 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Indu Bhagat via Binutils From: Indu Bhagat Reply-To: Indu Bhagat Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756583022233289086?= X-GMAIL-MSGID: =?utf-8?q?1756583022233289086?= SFrame format is meant for generating stack traces only. include/ * sframe.h: Fix comments in the header file. --- include/sframe.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/sframe.h b/include/sframe.h index 58ef07dcc21..58907d73413 100644 --- a/include/sframe.h +++ b/include/sframe.h @@ -34,8 +34,8 @@ extern "C" /* SFrame format. SFrame format is a simple format to represent the information needed - for vanilla virtual stack unwinding. SFrame format keeps track of the - minimal necessary information needed for stack unwinding: + for generating vanilla backtraces. SFrame format keeps track of the + minimal necessary information needed for stack tracing: - Canonical Frame Address (CFA) - Frame Pointer (FP) - Return Address (RA) @@ -59,13 +59,14 @@ extern "C" .text.* sections in the resulting binary artifact. Each Function Descriptor Entry specifies the start PC of a function, the size in bytes of the function and an offset to its first Frame Row Entry (FRE). Each FDE - additionally also specifies the type of FRE it uses to encode the unwind - information. + additionally also specifies the type of FRE it uses to encode the stack + trace information. - Next, the Frame Row Entry section is a list of variable size records, - each of which represent SFrame unwind information for a set of PCs. A - singular Frame Row Entry is a self-sufficient record with information on - how to virtually unwind the stack for the applicable set of PCs. + Next, the SFrame Frame Row Entry sub-section is a list of variable size + records. Each entry represents stack trace information for a set of PCs + of the function. A singular Frame Row Entry is a self-sufficient record + which contains information on how to generate stack trace from the + applicable set of PCs. */ @@ -81,7 +82,7 @@ extern "C" /* Function Descriptor Entries are sorted on PC. */ #define SFRAME_F_FDE_SORTED 0x1 -/* Frame-pointer based unwinding. */ +/* Functions preserve frame pointer. */ #define SFRAME_F_FRAME_POINTER 0x2 #define SFRAME_CFA_FIXED_FP_INVALID 0 @@ -181,8 +182,7 @@ typedef struct sframe_func_desc_entry uint32_t sfde_func_start_fre_off; /* Number of frame row entries for the function. */ uint32_t sfde_func_num_fres; - /* Additional information for deciphering the unwind information for the - function. + /* Additional information for stack tracing from the function: - 4-bits: Identify the FRE type used for the function. - 1-bit: Identify the FDE type of the function - mask or inc. - 1-bit: PAC authorization A/B key (aarch64). @@ -271,9 +271,9 @@ typedef struct sframe_fre_info Used for both AMD64 and AARCH64. - An SFrame Frame Row Entry is a self-sufficient record containing SFrame - unwind info for a range of addresses, starting at the specified offset in - the function. Each SFrame Frame Row Entry is followed by S*N bytes, where: + An SFrame Frame Row Entry is a self-sufficient record which contains + information on how to generate the stack trace for the specified range of + PCs. Each SFrame Frame Row Entry is followed by S*N bytes, where: S is the size of the stack frame offset for the FRE, and N is the number of stack frame offsets in the FRE From patchwork Tue Jan 31 23:34:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Indu Bhagat X-Patchwork-Id: 51099 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp95277wrn; Tue, 31 Jan 2023 15:37:19 -0800 (PST) X-Google-Smtp-Source: AK7set/awcO93upIX9f9a5CmXqoroCMv13QH7pnTdf9J3iMRhUXABUv2IuExLcZce2gocdoV6AIO X-Received: by 2002:a17:907:2ce7:b0:886:7eae:26c4 with SMTP id hz7-20020a1709072ce700b008867eae26c4mr201274ejc.5.1675208239344; Tue, 31 Jan 2023 15:37:19 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id fq14-20020a1709069d8e00b0088442bcb2b4si11608204ejc.327.2023.01.31.15.37.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 15:37:19 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=NZXw9A9E; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 735EE384F02F for ; Tue, 31 Jan 2023 23:36:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 735EE384F02F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675208182; bh=dv4jFbzx11ePMVeCcvU560smKBlCnnVcINEFr/4qs6s=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=NZXw9A9Ek9r8QkYg38Vmw3dT7XTNAkMP8ZIPACiVf3wUCu4zvKi8Uo/2EVzryrDFa hc3GQ43M1D8+xObQGixtF59PDZh8D7sU8A1iXWMa7UzLLl4OUzyuAVvN3FaSOZzEoc 8cNbyzM+ThdgW3ihxW64k5vYWvYOm0xKSwIvGTP0= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 737073857C44 for ; Tue, 31 Jan 2023 23:35:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 737073857C44 Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30VIiaPM023158 for ; Tue, 31 Jan 2023 23:35:00 GMT Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ncvr8q2kc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:35:00 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30VMw53d012954 for ; Tue, 31 Jan 2023 23:34:59 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2108.outbound.protection.outlook.com [104.47.58.108]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nct5d9hsf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:34:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OqaOOCeoN8cvtkdyrO1cYQzzDz53cX9pMxqdTKk8Svzxq9rM7IuPG4s822Vg5b60+9TA7tCRNrEIh6y01x3nM17vd8XMVsa3EQ62emLcUHUeEoPtW+znX/rNr2jFP22vwSIyIiXZGgXBg2QDXhQ+baq8+cf6dWvWMPhpCLsdcqjQyvyg9T7Qpf990oSSSuEe+bJlbkeaGDoEqfdjJFUqqvdR4mHboGWyQDmEgl323a8STFbRn+/BdWCsUY74fMjEYQxND2YTWaxA4EIwAokRWEcXLl0AVDqmDR69ESvIznOS8v5+Yn3C2KkfV7hZPMUq9noAYDzlc7qAMiFSpNI0Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dv4jFbzx11ePMVeCcvU560smKBlCnnVcINEFr/4qs6s=; b=G0wLLgxHNRiGBQFxOcDp4wNCAsOpY0rqMzBFh1RsLIEUTSCWE3G1gAvrhqDDGcd4soZCeYTjQLGF3iDD1Um58OMIu1/7OUWIkP2BzFl7UYd9laAmkVZytEaSBSIqOYBLIm5kUrzTPOa+HyA+KhRIpmMtxh7y5y0xfuxKQ6pgzbtJvViUmDf7veqzMYjcwFt7wrJyiCJ8t8CZejZ/7zfaSXbCHsA8g+6/X/dgFmvfMuiZG1l7z3b6jVOaD+VhkJaav8Nlmz7FtmhYAUfEK6NvCum+DP71507kO2moll0RHCsHILtbwLjcj5+2DhoX5UdRNLWLKrKgYHYl22tRFwJ/fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) by CY8PR10MB6633.namprd10.prod.outlook.com (2603:10b6:930:57::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Tue, 31 Jan 2023 23:34:57 +0000 Received: from MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57]) by MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57%7]) with mapi id 15.20.6064.022; Tue, 31 Jan 2023 23:34:57 +0000 To: binutils@sourceware.org Cc: Indu Bhagat Subject: [PATCH 3/5] gas: use "stack trace" instead of "unwind" for SFrame Date: Tue, 31 Jan 2023 15:34:27 -0800 Message-Id: <20230131233429.3708328-4-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230131233429.3708328-1-indu.bhagat@oracle.com> References: <20230131233429.3708328-1-indu.bhagat@oracle.com> X-ClientProxiedBy: MW4PR03CA0144.namprd03.prod.outlook.com (2603:10b6:303:8c::29) To MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2158:EE_|CY8PR10MB6633:EE_ X-MS-Office365-Filtering-Correlation-Id: ccd62737-3f17-40ca-afde-08db03e3c317 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iwyJxW0D6Dqk8xqqg5CJ2qL92q9WfzErkw9lkSsNwPgrSdcw7g8hbrssGkmvJTd3jYVaddz4cOmhDqJ522r6p4ju4yjZVw2iHrCZdt0GJcUcHaGsD6BGpJtigB6NYYXYNwvsSPvLseP+BkzYWYaEtjwUCqRNyOEVdAGnbmN9AOUnpmhMjTsEkH45Sxj/BM35D9dWh7t5SNMczdqfExWP4At4QtQNGkg+e0rAy8fobB8ZRo4ddqQWoZHRg9sIuPgA6TRJmBVD0G9bTf73UayeRT3ymIUrOfLXBhcoGUUWJruEUh8h0Aef6+ejO65i2uk7zvn3pWlA1caylHVl1HVwGLWZsJXx+tla/csnztg330X8G7BSgd8GRb6u+QT2gdI+GZipMzuFDiP7YnCsobnAglV6BKLOawVKt2frmJZ/jX0Gc1vSvlhETB5MIMotFQGrKLMTi3w8XtX7oT4gPV0gEIFhnXJuA0Pv2I5Ld4wmDecR0CnIp1ZxIfsobjBiZhWfs4D09JDmh0gPPdfu89jVTgBHp9/7Mo8mwcR/lP1lV+kjf9MXtmGJJ8w7qI5Y73akt0OMkX63HbSpctSkTJA1ed24fcocmScc8o+e9MH7ffENHM8GcyEe7WnhphnLioS6exh1wm5VLvMe7KFg2QoC+w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2158.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(366004)(39860400002)(396003)(376002)(136003)(451199018)(2906002)(8676002)(4326008)(6916009)(38100700002)(478600001)(44832011)(8936002)(36756003)(26005)(30864003)(6506007)(6486002)(5660300002)(107886003)(6666004)(186003)(6512007)(86362001)(2616005)(41300700001)(66476007)(83380400001)(66556008)(1076003)(66946007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Qkak+bu/ElZK00vIkP3FYHchDhUzEK098ffGVLgvn8P7aiJKtt0LaLTmVzMlk2577U7W1nJSSnYWWXb0WfUk9iadx6QtYkjgKiT2uwwWKxTpwLnc5vqvvF977gpon5b47LnFSqrULJiJN2DbXVxaSE+Gbk8ZEsN1eqxPiK9mqXLWVEmWZZDT17nEqJMERmLYQGO07BCiR41x693S8zR04OFH0+ERIbQ4gT6WYrSLvw3o8P4voQMLmTPrQBOi6hCwnvsnaHtfgq/7OKELAMBGzsAmE1+GP5NoNh18p1tQvCdB6f5WpRS8hc217ISJBz4guUE/Eeq08wm1RPdO+D9pTVZc1+a7uFavABOMbd3UdLdqVaG5sEQYX+MH+ReX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NCKoXc1jA0W7vgbUITz3BMUEneiJ78zSW4dKmdqdZPJbOWONgFrOYNVIHyHSZ47KWipko3I0wgd8yz5AEG+0RdM+LyeApyYdVFdywcNSh6bJuNBn8ZZQloNkRQ X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: yR5wOuSiTA7gvSiswSA0V9Y601mUXrYJrrwMquh/id2VuzWVq4grTVvhycduX/eBOE2bUqdWxKzYB5BsPVkREYlWx51dUpOdBB0NvWyZn3ua23EpGz6HXfeT7mLKfvJ23cstKUFoQn9cUGFyityrqAdOaxErrBmNWmUJpOkRov5yySajCyeUzNhT2ePJap2JuSkBwEo2H/taEYE7nUNIAteZYQ/NLXESV2n748RjOT53aE7+TzyMhdzDtU8POBRWqeqtAgZJsmGlJfxy302Ghag1/8WhvTr0S17eu4ymHm/aCQTHMJRnSB91Ck1sHf5LIo22o4OLtnAgI0BmVp4mR3q9HwSiNDibNm+Q2bY5o8NS0h2QOLXaYssSBAfWx25AIolqSVaFJbRDtc3NsyT3ZC0b+lP99853kljF53M5PyVJT5OjYPHgdPNszVYEQDhD8/YkahqprYfLyPOdGPX8MsYyA//JYyEgQtZ40OoRVj5/8bxw0l0gFWNYi0q6XP1WA0M0pQt8GqBQOIgCDT5XgQHEAak+NtvKUC5CMl1Z7X+c5erKpmAxjslWO8S3Ec9ct13KmArvZHA3eiWArdciSlM42WUC7bd3ByZGOwpAIuygdAEnJ3cvSzHq4l/pzlvURxnevF52KLJ7+jaBB9+2jAEfle4n0qlHX0jaSDB97BwKjanc5nqNQLLMak7bZTVZSp0Iy6z3d+MbUHKk6n2XK06sVmqeUW7EJrdUOozklRxNaj6UYVDYNMuC0odp8pOsyB2dyYL4kVvyt2SN7r9NLg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ccd62737-3f17-40ca-afde-08db03e3c317 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 23:34:57.0344 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BEtaWpYJe+x0/Z4j04VtlJ/65dRFWOO8m3fWL5fvGiwxJ9p7UBtyNpm30BmwgQoxggpWsP/UbQp6XpINP4Cuqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6633 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 malwarescore=0 adultscore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310202 X-Proofpoint-GUID: MDsxJHWQ3jyjjpnAVkdwvFuOWkHWFy3- X-Proofpoint-ORIG-GUID: MDsxJHWQ3jyjjpnAVkdwvFuOWkHWFy3- X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Indu Bhagat via Binutils From: Indu Bhagat Reply-To: Indu Bhagat Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756583154714845463?= X-GMAIL-MSGID: =?utf-8?q?1756583154714845463?= SFrame format is meant for generating stack traces only. gas/ * as.c: Replace the use of "unwind" with "stack trace". * config/tc-aarch64.c: Likewise. * config/tc-aarch64.h: Likewise. * config/tc-i386.c: Likewise. * config/tc-i386.h: Likewise. * gen-sframe.c: Likewise. * gen-sframe.h: Likewise. * testsuite/gas/cfi-sframe/common-empty-2.s: Likewise. * testsuite/gas/cfi-sframe/common-empty-3.s: Likewise. --- gas/as.c | 2 +- gas/config/tc-aarch64.c | 4 +-- gas/config/tc-aarch64.h | 8 +++--- gas/config/tc-i386.c | 4 +-- gas/config/tc-i386.h | 6 ++-- gas/gen-sframe.c | 28 ++++++++++--------- gas/gen-sframe.h | 2 +- gas/testsuite/gas/cfi-sframe/common-empty-2.s | 2 +- gas/testsuite/gas/cfi-sframe/common-empty-3.s | 2 +- 9 files changed, 30 insertions(+), 28 deletions(-) diff --git a/gas/as.c b/gas/as.c index 602ed3b5f79..f548294c3dc 100644 --- a/gas/as.c +++ b/gas/as.c @@ -317,7 +317,7 @@ Options:\n\ fprintf (stream, _("\ generate GNU Build notes if none are present in the input\n")); fprintf (stream, _("\ - --gsframe generate SFrame unwind info\n")); + --gsframe generate SFrame stack trace information\n")); #endif /* OBJ_ELF */ fprintf (stream, _("\ diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 2aeab6f958a..980710e8992 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -76,7 +76,7 @@ enum aarch64_abi_type }; unsigned int aarch64_sframe_cfa_sp_reg; -/* The other CFA base register for SFrame unwind info. */ +/* The other CFA base register for SFrame stack trace info. */ unsigned int aarch64_sframe_cfa_fp_reg; unsigned int aarch64_sframe_cfa_ra_reg; @@ -8474,7 +8474,7 @@ aarch64_init_frag (fragS * fragP, int max_chars) } } -/* Whether SFrame unwind info is supported. */ +/* Whether SFrame stack trace info is supported. */ bool aarch64_support_sframe_p (void) diff --git a/gas/config/tc-aarch64.h b/gas/config/tc-aarch64.h index 134c1f87b4f..f11d04826c3 100644 --- a/gas/config/tc-aarch64.h +++ b/gas/config/tc-aarch64.h @@ -263,19 +263,19 @@ extern void aarch64_after_parse_args (void); #ifdef OBJ_ELF -/* Whether SFrame unwind info is supported. */ +/* Whether SFrame stack trace info is supported. */ extern bool aarch64_support_sframe_p (void); #define support_sframe_p aarch64_support_sframe_p -/* The stack-pointer register number for SFrame unwind info. */ +/* The stack-pointer register number for SFrame stack trace info. */ extern unsigned int aarch64_sframe_cfa_sp_reg; #define SFRAME_CFA_SP_REG aarch64_sframe_cfa_sp_reg -/* The base-pointer register number for CFA unwind info. */ +/* The base-pointer register number for CFA stack trace info. */ extern unsigned int aarch64_sframe_cfa_fp_reg; #define SFRAME_CFA_FP_REG aarch64_sframe_cfa_fp_reg -/* The return address register number for CFA unwind info. */ +/* The return address register number for CFA stack trace info. */ extern unsigned int aarch64_sframe_cfa_ra_reg; #define SFRAME_CFA_RA_REG aarch64_sframe_cfa_ra_reg diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index e1f8f65f90b..438180cf4e8 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -607,7 +607,7 @@ static int use_big_obj = 0; static int shared = 0; unsigned int x86_sframe_cfa_sp_reg; -/* The other CFA base register for SFrame unwind info. */ +/* The other CFA base register for SFrame stack trace info. */ unsigned int x86_sframe_cfa_fp_reg; unsigned int x86_sframe_cfa_ra_reg; @@ -9285,7 +9285,7 @@ x86_cleanup (void) bool x86_support_sframe_p (void) { - /* At this time, SFrame unwind is supported for AMD64 ABI only. */ + /* At this time, SFrame stack trace is supported for AMD64 ABI only. */ return (x86_elf_abi == X86_64_ABI); } diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 49d2d25a7a6..9247cdeab8b 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -363,15 +363,15 @@ extern bfd_vma x86_64_section_letter (int, const char **); extern void x86_cleanup (void); #define md_cleanup() x86_cleanup () -/* Whether SFrame unwind info is supported. */ +/* Whether SFrame stack trace info is supported. */ extern bool x86_support_sframe_p (void); #define support_sframe_p x86_support_sframe_p -/* The stack-pointer register number for SFrame unwind info. */ +/* The stack-pointer register number for SFrame stack trace info. */ extern unsigned int x86_sframe_cfa_sp_reg; #define SFRAME_CFA_SP_REG x86_sframe_cfa_sp_reg -/* The frame-pointer register number for CFA unwind info. */ +/* The frame-pointer register number for SFrame stack trace info. */ extern unsigned int x86_sframe_cfa_fp_reg; #define SFRAME_CFA_FP_REG x86_sframe_cfa_fp_reg diff --git a/gas/gen-sframe.c b/gas/gen-sframe.c index d6961f893a6..c5470596d14 100644 --- a/gas/gen-sframe.c +++ b/gas/gen-sframe.c @@ -33,7 +33,7 @@ /* Whether frame row entries track RA. - A target may not need return address tracking for stack unwinding. If it + A target may not need return address tracking for stack tracing. If it does need the same, SFRAME_CFA_RA_REG must be defined with the return address register number. */ @@ -892,7 +892,7 @@ sframe_xlate_ctx_add_fre (struct sframe_xlate_ctx *xlate_ctx, xlate_ctx->num_xlate_fres++; } -/* A SFrame Frame Row Entry is self-sufficient in terms of unwind information +/* A SFrame Frame Row Entry is self-sufficient in terms of stack tracing info for a given PC. It contains information assimilated from multiple CFI instructions, and hence, a new SFrame FRE is initialized with the data from the previous known FRE, if any. @@ -1024,7 +1024,7 @@ sframe_xlate_do_def_cfa_offset (struct sframe_xlate_ctx *xlate_ctx, gas_assert (cur_fre); /* Define the current CFA rule to use the provided offset (but to keep the old register). However, if the old register is not FP/SP, - skip creating SFrame unwind info for the function. */ + skip creating SFrame stack trace info for the function. */ if ((cur_fre->cfa_base_reg == SFRAME_CFA_FP_REG) || (cur_fre->cfa_base_reg == SFRAME_CFA_SP_REG)) { @@ -1081,7 +1081,7 @@ sframe_xlate_do_val_offset (struct sframe_xlate_ctx *xlate_ctx ATTRIBUTE_UNUSED, /* Previous value of register is CFA + offset. However, if the specified register is not interesting (FP or RA reg), the current DW_CFA_val_offset instruction can be safely skipped without sacrificing the asynchonicity of - unwind information. */ + stack trace information. */ if (cfi_insn->u.r == SFRAME_CFA_FP_REG) return SFRAME_XLATE_ERR_NOTREPRESENTED; /* Not represented. */ #ifdef SFRAME_FRE_RA_TRACKING @@ -1103,8 +1103,8 @@ sframe_xlate_do_remember_state (struct sframe_xlate_ctx *xlate_ctx) struct sframe_row_entry *last_fre = xlate_ctx->last_fre; /* If there is no FRE state to remember, nothing to do here. Return - early with non-zero error code, this will cause no SFrame unwind info - for the function involved. */ + early with non-zero error code, this will cause no SFrame stack trace + info for the function involved. */ if (!last_fre) return SFRAME_XLATE_ERR_INVAL; @@ -1248,7 +1248,7 @@ sframe_do_cfi_insn (struct sframe_xlate_ctx *xlate_ctx, default: { /* Other CFI opcodes are not processed at this time. - These do not impact the coverage of the basic stack unwinding + These do not impact the coverage of the basic stack tracing information as conveyed in the SFrame format. - DW_CFA_register, - ... @@ -1285,7 +1285,7 @@ sframe_do_fde (struct sframe_xlate_ctx *xlate_ctx, err = sframe_do_cfi_insn (xlate_ctx, cfi_insn); if (err != SFRAME_XLATE_OK) { - /* Skip generating SFrame unwind info for the function if any + /* Skip generating SFrame stack trace info for the function if any offending CFI is encountered by sframe_do_cfi_insn (). */ return err; /* Return the error code. */ } @@ -1309,10 +1309,11 @@ sframe_do_fde (struct sframe_xlate_ctx *xlate_ctx, return SFRAME_XLATE_OK; } -/* Create SFrame unwind info for all functions. +/* Create SFrame stack trace info for all functions. - This function consumes the already generated FDEs (by dw2gencfi) and - generates unwind data in SFrame format. */ + This function consumes the already generated DWARF FDEs (by dw2gencfi) and + generates data which is later emitted as stack trace information encoded in + the SFrame format. */ static void create_sframe_all (void) @@ -1330,7 +1331,8 @@ create_sframe_all (void) /* Process and link SFrame FDEs if no error. Also skip adding an SFrame FDE if it does not contain any SFrame FREs. There is little use of an - SFrame FDE if there is no unwind information about the function. */ + SFrame FDE if there is no stack tracing information for the + function. */ int err = sframe_do_fde (xlate_ctx, dw_fde); if (err || xlate_ctx->num_xlate_fres == 0) { @@ -1355,7 +1357,7 @@ output_sframe (segT sframe_seg) /* Setup the version specific access functions. */ sframe_set_version (SFRAME_VERSION_1); - /* Process all fdes and create SFrame unwind information. */ + /* Process all fdes and create SFrame stack trace information. */ create_sframe_all (); output_sframe_internal (); diff --git a/gas/gen-sframe.h b/gas/gen-sframe.h index 77630255e8b..0a0b3658302 100644 --- a/gas/gen-sframe.h +++ b/gas/gen-sframe.h @@ -149,7 +149,7 @@ struct sframe_version_ops unsigned char (*set_func_info) (unsigned int, unsigned int, unsigned int); }; -/* Generate SFrame unwind info and prepare contents for the output. +/* Generate SFrame stack trace info and prepare contents for the output. outout_sframe () is called at the end of file. */ extern void output_sframe (segT sframe_seg); diff --git a/gas/testsuite/gas/cfi-sframe/common-empty-2.s b/gas/testsuite/gas/cfi-sframe/common-empty-2.s index 146c53de785..53bb8c0ce9b 100644 --- a/gas/testsuite/gas/cfi-sframe/common-empty-2.s +++ b/gas/testsuite/gas/cfi-sframe/common-empty-2.s @@ -1,5 +1,5 @@ ## CFA register is not defined to be SP/FP. -## No SFrame unwind info for this function will be generated. +## No SFrame stack trace info for this function will be generated. .cfi_startproc simple .long 0 .long 0 diff --git a/gas/testsuite/gas/cfi-sframe/common-empty-3.s b/gas/testsuite/gas/cfi-sframe/common-empty-3.s index 982fe0c851d..cd58499619d 100644 --- a/gas/testsuite/gas/cfi-sframe/common-empty-3.s +++ b/gas/testsuite/gas/cfi-sframe/common-empty-3.s @@ -1,5 +1,5 @@ ## The return column is not the default value. -## No SFrame unwind info for this function will be generated. +## No SFrame stack trace info for this function will be generated. .cfi_startproc .cfi_return_column 0 .long 0 From patchwork Tue Jan 31 23:34:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Indu Bhagat X-Patchwork-Id: 51098 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp95202wrn; Tue, 31 Jan 2023 15:37:07 -0800 (PST) X-Google-Smtp-Source: AK7set/uaJgZAV2XFa3No5MyxewH3drSMsoh0IV85IwOt2ILx//I8sYPdzBjCvRsKbntjf7Z+Np0 X-Received: by 2002:a17:906:7e42:b0:86f:763c:2695 with SMTP id z2-20020a1709067e4200b0086f763c2695mr207290ejr.17.1675208227806; Tue, 31 Jan 2023 15:37:07 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 6-20020a17090601c600b00888fddc4eacsi7947182ejj.668.2023.01.31.15.37.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 15:37:07 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=P8XBkIBF; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AADA63858421 for ; Tue, 31 Jan 2023 23:36:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AADA63858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675208172; bh=fUs0fi6z768SQvPssFpYXGfuFLYCYjOfleRETNWbIP8=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=P8XBkIBF0IljerSOuUPkuIAUJCeNc7LMer15enZ95FPaPAQr6+C4ejPH2br1Pf+dz FxE3yG0rprqWX9PjDhQVFx31GP42UCoGqo8pbJQXva+leIxCify4N48fPCG134Ccts U1jd0QboQ8U05t5KARtafff+tSHuov4VpFt1wtIk= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 6C3C63858D3C for ; Tue, 31 Jan 2023 23:35:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C3C63858D3C Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30VIiQti014351 for ; Tue, 31 Jan 2023 23:35:03 GMT Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ncvq9q35d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:35:03 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30VN5KKU031569 for ; Tue, 31 Jan 2023 23:35:01 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2109.outbound.protection.outlook.com [104.47.58.109]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nct5d8rty-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:35:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ET/t9/eCrcyCSNVMBQS86q2CzR1vHduFlyVZmQCvOiT72XY0b+HiTKGmhO20EL8LJqMFvYYee4NyfhBYyDtbEtwD5ppAx+jqMBXI3bzxZkvXftpePUMTHRSBg4cOVZchVCxOCKJQ7ZH4lo4c9zv6dAgjgHTM+hKP6jhd270HyuYSTM54S94U3J2OnTQ4u47J8wah1enA/XyI+mixpWmI3DD2PFzZJnZk13mXmReD7TQCTYH5eiL7QHhkzLJa4VQdz14oZ0Hft/SN7kWJlBavvVAXmCeue3B3gVSerHtPk9577GxqhekApfV+zoZSn8VhvCxPpt9gjTIb2ZblRcWLwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fUs0fi6z768SQvPssFpYXGfuFLYCYjOfleRETNWbIP8=; b=ZGhfrpvwrl12oKp6k1UDA60QO0JPwja3TL9VoWCns9WNAKtuYCmDR4NLLOHSQN2QfOSuiodowAb5xi8TvNsAAYCIVxbQubFivuG6+eAmVjTDf/ttnDlOvVzVFjsTfnJFo/PbK7f2ETmRMX7uPlWVtjyfrJC4fZ+StK17inJtPii9y+1Uqb9UUeXKoTS0pb1sGpmba0cPGw+aZleb50S0KgsilEF/97d+duGcozpJiDU2O6pdneotUsUWn+w4OwCwrlp0ed936gUGIUfiN23/Vi+Glo4yEMG8P/AwCY8PQL3+l8o1goHZt5wYZQMQlB+3H0IxZWLtoBxe1ih1E6HL2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) by CY8PR10MB6633.namprd10.prod.outlook.com (2603:10b6:930:57::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Tue, 31 Jan 2023 23:35:00 +0000 Received: from MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57]) by MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57%7]) with mapi id 15.20.6064.022; Tue, 31 Jan 2023 23:35:00 +0000 To: binutils@sourceware.org Cc: Indu Bhagat Subject: [PATCH 4/5] bfd: use "stack trace" instead of "unwind" for SFrame Date: Tue, 31 Jan 2023 15:34:28 -0800 Message-Id: <20230131233429.3708328-5-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230131233429.3708328-1-indu.bhagat@oracle.com> References: <20230131233429.3708328-1-indu.bhagat@oracle.com> X-ClientProxiedBy: MW4PR03CA0155.namprd03.prod.outlook.com (2603:10b6:303:8d::10) To MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2158:EE_|CY8PR10MB6633:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c6c012c-8687-4f07-a596-08db03e3c4dc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HZLxE27I6q1rwqWy2MDbfKFm5/wSiyCJ5iZm6d3Mco/e+2Vw7O94qrYpVeiniPTxNv+XxHme5GtxLQ7Ed4Bh7oS1k9Yvsk2sBCzJTqqiOo/r3KhcDJwqaMGo8NnwWwLdlKFuVfL8yVLr3jeIODiQW+bG32Pzq7oGKPCsSyt2Uu/Cz2aMhyZdYYDcieOY1AtW9CKloap8c7vyZ23/SjBGC/9fO8SqTYV/0maCqEBX4YxCY7Tua3iJfmU2KuiEvzHC6b90s2Y//16OWlPXFTP+czNhzZLz/eRJ6g/vWqz/1HQt5bcrRXNeVw44PWBDFHBhoEc8IVSLyTWtrGI/UYDWXebPbFhhhTWDyT7x4typny11MBDSzulw+VScxUv+4tHkc126ENWyRHtEJDYEg5rNykeqnQQzcMaWQqPBHQhWf3BVBFFuUiX4chTOkS/K8mUgDGMjGK0tM5yeMeN0WnrzwQcJEYU6houoVmCAS6hKIAprWzu/yI1h1RHJb6d8KpfKnmZdZi0qkhBTUlwv+5wUPSPHZaocQvZLOUa/9XOPInJi0OMKPhYlNmc2/pTa83niOAuSMvH/H+PdOLOwMlMfKeqRZHLr9YpxXjw/O2U+SUkr++G/gjTcy7eUCdAvDsH5pz9UU/8xqJaV93LMBOzg4Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2158.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(366004)(39860400002)(396003)(376002)(136003)(451199018)(2906002)(8676002)(4326008)(6916009)(38100700002)(478600001)(44832011)(8936002)(36756003)(26005)(6506007)(6486002)(5660300002)(107886003)(6666004)(186003)(6512007)(86362001)(2616005)(41300700001)(66476007)(83380400001)(66556008)(1076003)(66946007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JQzNs3ab8pjaWfvjcUwSKpsmtp9YBVrnTM3tCqurpJErzsolhIFZce7rK82hJ/jZnMZ/sXhY1W+r/LSBsRA7Eqp3eIOJpyYX+sxlJL3iByitHK7pHo+a+NLgIcqQtnqoYdmTFVfDjVyF/CKqgTP1dvsx8g7yrHPItiSlvldXFMX7lk4t966Re4KOSRS4FTh2l+IN5wuWgLirA559LvY9Juf2i6D0FNdk1R7+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HlJK8TzBrlXNpgpe9I2jcrCjlsTYylCYFmq/Iau8zxEo7GVtIXQpI67z33BVZpLsN4rph0bhIk0li9t+ecV4Ln2+gBPHob0fu5s6ig== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c6c012c-8687-4f07-a596-08db03e3c4dc X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 23:35:00.0186 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FAa13+5K8nLuaWOLoaNBfn8u+fDJPfPcSkNMVq1YFnuiwPc6m7W7kItCHyl9ChsZtSWxlp4tRYsYCck1QyakHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6633 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 suspectscore=0 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310202 X-Proofpoint-ORIG-GUID: Ry2F_nTaZWOblDQx3ptbVP3FMEjXTmFj X-Proofpoint-GUID: Ry2F_nTaZWOblDQx3ptbVP3FMEjXTmFj X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Indu Bhagat via Binutils From: Indu Bhagat Reply-To: Indu Bhagat Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756583142487645280?= X-GMAIL-MSGID: =?utf-8?q?1756583142487645280?= SFrame format is meant for generating stack traces only. bfd/ * elf-bfd.h: Replace the use of "unwind" with "stack trace". * elf-sframe.c: Likewise. * elf64-x86-64.c: Likewise. * elfxx-x86.c: Likewise. include/ * elf/common.h: Likewise. --- bfd/elf-bfd.h | 2 +- bfd/elf-sframe.c | 11 ++++++----- bfd/elf64-x86-64.c | 2 +- bfd/elfxx-x86.c | 8 ++++---- include/elf/common.h | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 2b7c574f540..dff19822547 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -702,7 +702,7 @@ struct elf_link_hash_table /* Used by eh_frame code when editing .eh_frame. */ struct eh_frame_hdr_info eh_info; - /* Used to link unwind data in .sframe sections. */ + /* Used to link stack trace info in .sframe sections. */ struct sframe_enc_info sfe_info; /* A linked list of local symbols to be added to .dynsym. */ diff --git a/bfd/elf-sframe.c b/bfd/elf-sframe.c index 8a7fd021931..d2954ba9193 100644 --- a/bfd/elf-sframe.c +++ b/bfd/elf-sframe.c @@ -206,7 +206,7 @@ _bfd_elf_parse_sframe (bfd *abfd, return false; } - /* Read the SFrame unwind information from abfd. */ + /* Read the SFrame stack trace information from abfd. */ if (!bfd_malloc_and_get_section (abfd, sec, &sfbuf)) goto fail_no_free; @@ -438,10 +438,11 @@ _bfd_elf_merge_section_sframe (bfd *abfd, } else { - /* Expected to land here for SFrame unwind info as created - for the .plt* sections. These sections can have upto two - FDE entries. Although the code should work for > 2, - leaving this assert here for safety. */ + /* Expected to land here when SFrame stack trace info is + created dynamically for the .plt* sections. These + sections are expected to have upto two SFrame FDE entries. + Although the code should work for > 2, leaving this + assert here for safety. */ BFD_ASSERT (num_fidx <= 2); /* For the first entry, we know the offset of the SFrame FDE's sfde_func_start_address. Side note: see how the value diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 914f82d0151..5f89190a6a0 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -895,7 +895,7 @@ static const struct elf_x86_sframe_plt elf_x86_64_sframe_plt = { &elf_x86_64_sframe_pltn_fre1, &elf_x86_64_sframe_pltn_fre2 }, NON_LAZY_PLT_ENTRY_SIZE, 1, /* Number of FREs for PLTn for second PLT. */ - /* FREs for second plt ( unwind info for .plt.got is + /* FREs for second plt (stack trace info for .plt.got is identical). Used when IBT or non-lazy PLT is in effect. */ { &elf_x86_64_sframe_sec_pltn_fre1 } }; diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c index 42af84b8e04..132fb791ac6 100644 --- a/bfd/elfxx-x86.c +++ b/bfd/elfxx-x86.c @@ -1804,7 +1804,7 @@ enum dynobj_sframe_plt_type SFRAME_PLT_SEC = 2 }; -/* Create SFrame unwind info for the plt entries in the .plt section +/* Create SFrame stack trace info for the plt entries in the .plt section of type PLT_SEC_TYPE. */ static bool @@ -1819,7 +1819,7 @@ _bfd_x86_elf_create_sframe_plt (bfd *output_bfd, unsigned int plt0_entry_size; unsigned char func_info; unsigned int fre_type; - /* The dynamic plt section for which .sframe unwind information is being + /* The dynamic plt section for which .sframe stack trace information is being created. */ asection *dpltsec; @@ -1832,7 +1832,7 @@ _bfd_x86_elf_create_sframe_plt (bfd *output_bfd, bed = get_elf_backend_data (output_bfd); htab = elf_x86_hash_table (info, bed->target_id); - /* Whether SFrame unwind info for plt0 is to be generated. */ + /* Whether SFrame stack trace info for plt0 is to be generated. */ plt0_generated_p = htab->plt.has_plt0; plt0_entry_size = (plt0_generated_p) ? htab->sframe_plt->plt0_entry_size : 0; @@ -1906,7 +1906,7 @@ _bfd_x86_elf_create_sframe_plt (bfd *output_bfd, /* pltn entries use an SFrame FDE of type SFRAME_FDE_TYPE_PCMASK to exploit the repetitive pattern of the instructions in these entries. Using this SFrame FDE - type helps in keeping the unwind information for pltn entries + type helps in keeping the SFrame stack trace info for pltn entries compact. */ func_info = sframe_fde_create_func_info (fre_type, SFRAME_FDE_TYPE_PCMASK); diff --git a/include/elf/common.h b/include/elf/common.h index bb93123d14a..d19d6f9927d 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -489,7 +489,7 @@ #define PT_GNU_STACK (PT_LOOS + 0x474e551) /* Stack flags */ #define PT_GNU_RELRO (PT_LOOS + 0x474e552) /* Read-only after relocation */ #define PT_GNU_PROPERTY (PT_LOOS + 0x474e553) /* GNU property */ -#define PT_GNU_SFRAME (PT_LOOS + 0x474e554) /* SFrame unwind information */ +#define PT_GNU_SFRAME (PT_LOOS + 0x474e554) /* SFrame stack trace information */ /* OpenBSD segment types. */ #define PT_OPENBSD_RANDOMIZE (PT_LOOS + 0x5a3dbe6) /* Fill with random data. */ From patchwork Tue Jan 31 23:34:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Indu Bhagat X-Patchwork-Id: 51100 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp95660wrn; Tue, 31 Jan 2023 15:38:26 -0800 (PST) X-Google-Smtp-Source: AK7set+NrlZTh8jnCxTiaeqlBJGjh/dUuyE9ahhO5xzCtCqLZ/pud2McT3U7MR0YhXj0+2a/G8WI X-Received: by 2002:a05:6402:4446:b0:49f:bf08:b60c with SMTP id o6-20020a056402444600b0049fbf08b60cmr33762907edb.26.1675208306810; Tue, 31 Jan 2023 15:38:26 -0800 (PST) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 11-20020a170906010b00b00888fddc4eb9si8864999eje.676.2023.01.31.15.38.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 15:38:26 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="C/hCZpWL"; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 613473858C62 for ; Tue, 31 Jan 2023 23:37:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 613473858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675208246; bh=ZcayPst3NYoZVDHcRaAdJEjPozXyJRYRtUnsaUSKrmI=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=C/hCZpWLWyloRvJrJMmwdDlGm8wJFRzjIsEnzLGOmTo9GLFVq4+8m3KmTrxRzu4Tc DsrjyjiGAODTMsl/7nJsfKieb4N/jCnGNOU4AxtwL8KEbH/GiHRbXHy+NS9H93Ebus nvwTZCZvZW+SpAgA5Pb4qu8B/uN3CwEkdWxDMQLg= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 6463E3857C48 for ; Tue, 31 Jan 2023 23:35:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6463E3857C48 Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30VIi8Id006407 for ; Tue, 31 Jan 2023 23:35:05 GMT Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ncvp171yq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:35:05 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30VN7ZXg025120 for ; Tue, 31 Jan 2023 23:35:04 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2102.outbound.protection.outlook.com [104.47.58.102]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nct56q2dd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 31 Jan 2023 23:35:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CljCtM39r8xSQg6w5egtFTlG61X2TCNFabrXvZYeQxmrajDIZ1Nzu7rLo9tbDxugIIdTe0wKMijzmxYh5R9AbxvvJPB3t2hNP+Zih2tyHg6//ZuxQLneFv9rLw+AMUDGA84DSwSXmmEOlcsZ1NfS/+I4BfPAnFBmwRafDe68fUuoHO5tjLSuOSv8ajSeofDF2T4ple2En3sFxsBfY4TyjGkPdDLz5YV2Na++k2XrGiu3OcmQC0IHW6vx/tVyzpQjuHe/YlFZPpUX1pCwQhAmoP9lYJp9YqmLXZtd1nYnkjloIzDbrg3I8ozHNDDFFTQJyNOOv6DO2PzT4HsR8EuBSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZcayPst3NYoZVDHcRaAdJEjPozXyJRYRtUnsaUSKrmI=; b=UHs58IUC9G6bfP9z6thz+IQtAmNa64WuF9ejIwlE9f/JWdU1EHHUcyyv6Jeu1xzrrMAZBuw5+t2IhFuR+3jCY9SNwKFX5LWtk3UcXA4uBia9oxy99lR1Oq+N/XG0/0AsfL94yeVEDDMw/7gBek9lE7pPoXx7N/y7r64Ss5+UMmvPbElPWpPMZ/l16rRSClhAdzGJNfscOk5jYc6NYktOhuUVW+OsfDxmlQIWd502BuC5MLdKoCceoRqi3HkoRq1xAndDNhIMEw8Qd7DYG/+YqQmpccYYKfWlPn+y4jT4mQBm87MqYQkxJIT32IIbqTS8/6eXTbHUTNjWpvItxrY4Fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) by CY8PR10MB6633.namprd10.prod.outlook.com (2603:10b6:930:57::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.22; Tue, 31 Jan 2023 23:35:02 +0000 Received: from MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57]) by MWHPR1001MB2158.namprd10.prod.outlook.com ([fe80::14e6:a522:273f:db57%7]) with mapi id 15.20.6064.022; Tue, 31 Jan 2023 23:35:02 +0000 To: binutils@sourceware.org Cc: Indu Bhagat Subject: [PATCH 5/5] ld/doc: use "stack trace" instead of "unwind" for SFrame Date: Tue, 31 Jan 2023 15:34:29 -0800 Message-Id: <20230131233429.3708328-6-indu.bhagat@oracle.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230131233429.3708328-1-indu.bhagat@oracle.com> References: <20230131233429.3708328-1-indu.bhagat@oracle.com> X-ClientProxiedBy: MW4PR04CA0146.namprd04.prod.outlook.com (2603:10b6:303:84::31) To MWHPR1001MB2158.namprd10.prod.outlook.com (2603:10b6:301:2d::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2158:EE_|CY8PR10MB6633:EE_ X-MS-Office365-Filtering-Correlation-Id: b04eb72f-eab8-4fef-3b19-08db03e3c680 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E/9cocv0OdnRsi2CS9qrjtNfTjkk/kLM4fOLNyBRoCdxagRNqRk8kU+CqvZ/vyE6G2EzpmyAKrTddskOAG3/AVydZEeXd5awZzReVQxiw4DNWJLSsKRZ4Al0SvtUNx+9x282JzsigB/Y3L5k1An087dIKWCeglw1pUvjR7Fl/SJjuahUjY5tfadCUSMOqa1ivuBv7JZLnoqTAgvOu1Pjl4wJOx05yDPyhvj7wwcVngO+HX8etyEabPACSwvb3mi8nn2geRVd6o4Ezpa3ux1j/KY1d6n6ByuqUBpXqbg632LFDjTKwgM5CZT7BRty0Z2/r/1tVQJnSrDN/5K9JL0GtAsfagZ79b7eqqakZTlZwhOoOO1U6Mknt5xYCjpH98BhLEFYEKCgrIwJdCmmxVK7iTVc7ciMdFWrswMmAHh/8Nr2BtrwSAOrJhQrHC+MCdZeFaVoqgFbG32B+Q89Z4sn+m/KAOdTRpYjW70+wvLKR8XeZF26HdvqfOqlc0s+U4HvFGtSDBgWYdK8RQj6FmC1YU0sOhKVWBoCFGavIJA+dEYqDjrtT8uyyazhuRsK8lYwzj4REBTY95BmYQyapWE9k5MefdK6Xw3/A35VbNM2dnTBGbsqWk/yssTscmXENEtpNB/vKXQ97+FGHHbaUQn+jg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2158.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(346002)(366004)(39860400002)(396003)(376002)(136003)(451199018)(2906002)(8676002)(4326008)(6916009)(38100700002)(478600001)(44832011)(8936002)(36756003)(26005)(4744005)(6506007)(6486002)(5660300002)(107886003)(6666004)(186003)(6512007)(86362001)(2616005)(41300700001)(66476007)(83380400001)(66556008)(1076003)(66946007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kfImpxic3Cb4ww2k/8/P5W1aldrVNFp9o5xzTolk/dk5dDq3QrDuFCbDMhVxw5lLQ+fz81Aj/PDktGf1yqfdrEF4Es3lHfQN1P8UKpbVnbq3B1fOiilbJEW3HESSKqf2RMrkbTq3v/ze6IpxhITLY6BDw3/z3+XAPcVWyqaHqmey1QEtMIkXPZxxJjkJG7OEb/guqwwwWNUEkgAEGfcGVaZZ/ef/G/o2qlDHxD/xFlhNKmxxCOD81P/fr+YoKu9mJT+WNjpAe4sseCX9ylvJSGZSN/ROh9E1DzBfUazr6whOXiA1rqt0VnGfgBw4gwl4KU7HjqT9mY9CGviAAr6nVCwKYeiKCXAh9XSYzRe9nnkARd1iSetF60kPtPp/cZJsLwCE1BeVxxjR9uGit3mZUTCl+3l42Fg4PRG8kYpq8L0JtyQGiTB/JzeeoBIDn6KpOWt9pIOwV9ea11yNIEYsvqnet8saUDFOg1GnxnyeK1ulZA7C7giH1Oawlax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ckd4H80hRnU4AfTUrdW9nkN36wv6s5rge9Fj6gYuePF7wp3A== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: VDN1dZQOWvGfc/DNacTeGM8UCZvelA377OJHcjh3s7I9TJO20s/KsubEfsEwpF1S/L6W5ReoEf9lGs1fl2dIXR1mzcyuk8Yv9Sbn13zJCv6Mb9crvZbsgzu2lwO0BnG7tYv36itw8n186xlPs3gWY4VVE3RfS66RQ3x1VftFFngjbkqvBt/Uf44fs8/duVRKnG/d7IThe+XSFwjdr/qZVXS8ejylvInynhtt0KQByDenx7n1X/kg5eNenLGgCirA6ukqGltM4AuuQ6EGHPSq8/FuFa8QQ8nHh3GXz6vjRs70Ub9O2culivQ8GgTUg+JOge/1ExV8x+dFkWojTEad8kK7cxFBgdS752+l/hM8/vIdUEXblDpvz9DJAd9mPTW8ksGYBQOJTCvT8Xdg7dMavQzwaeefy7yYeDgFM4Jvx1nFMOXeW1QgLzUDQ3t3HjMabiG4/JhLDd3uUUF5XToS5OhG47dKe65RH0BT/n0e3O416y8Nw++qd4bl5Vz17UvQJU+fDTVAMwuuDQ9tinvnrwVeAZTkWEjvm6YjD+xMhnSlK3GocxG3vgfhtxKGIHK8y1HQliZ5yoIS382NEIP+u4gHZzGnm15q4SSmmA8Rjzq0J2Kl00NpPvuvQqgsAdVB3k41OOKtfC+Pca1RX3LXcRBEsEZLT+d8xUQJr8R2XKMGvcjWeWon2X7zBiOBYB2IYzSxTzqsXLcy17zJFLz10Ytw3PkilYDslFiKmA8vKeoW0Kx6PN+OXB4Q7uEgaaD3KktroD19dEh9qbSWtMdnwQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b04eb72f-eab8-4fef-3b19-08db03e3c680 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 23:35:02.7371 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8F6BOKgR8QtKbNVF5VkUM9PQz2t3Yiu3kErES0uLXaoe0iYyr1J0qlScQePu2qaqXvw9Cu4vB57gE4AwiN+mEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6633 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310202 X-Proofpoint-GUID: HYxAr8nTJx2tvaNF5AVU_AD8DHw3y2rY X-Proofpoint-ORIG-GUID: HYxAr8nTJx2tvaNF5AVU_AD8DHw3y2rY X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Indu Bhagat via Binutils From: Indu Bhagat Reply-To: Indu Bhagat Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756583225421027872?= X-GMAIL-MSGID: =?utf-8?q?1756583225421027872?= SFrame format is meant for generating stack traces only. ld/ * ld.texi: Replace the use of "unwind" with "stack trace". --- ld/ld.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ld/ld.texi b/ld/ld.texi index db3a9f09b45..36005dc2b0d 100644 --- a/ld/ld.texi +++ b/ld/ld.texi @@ -2835,7 +2835,7 @@ section and ELF @code{PT_GNU_EH_FRAME} segment header. Request creation of @code{.eh_frame} unwind info for linker generated code sections like PLT. This option is on by default if linker generated unwind info is supported. This option also -controls the generation of @code{.sframe} unwind info for linker +controls the generation of @code{.sframe} stack trace info for linker generated code sections like PLT. @kindex --enable-new-dtags