From patchwork Tue Feb 7 17:15:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Maguire X-Patchwork-Id: 13131901 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFDFDC6379F for ; Tue, 7 Feb 2023 17:17:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232313AbjBGRRH (ORCPT ); Tue, 7 Feb 2023 12:17:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbjBGRQu (ORCPT ); Tue, 7 Feb 2023 12:16:50 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D01B086B1 for ; Tue, 7 Feb 2023 09:16:04 -0800 (PST) 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 317Gnimh011663; Tue, 7 Feb 2023 17:15:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2022-7-12; bh=ifRMQlM2Lm0eWiS3Mh+mwvMFy+r5krsM1/JEekGV/vo=; b=IQV67hSYcvJJGsKg13AfeNZwPGKnR003AhENN863oDRgk29/dBOlHy38pH9eWIFEu3IL BNhFJlSvnwhw7pttKF69JAKkpTZJHI85S6dJGkw9q9tV4pvYImAqobGcNuSbOwV5GzdC vh+LcSYxVm7VpI5Se+4D7g20yn3wXqjHbQ6tNZCiRQGWS7rEftAd6Urw3wBs72e7Cf8O 5ZFhXG6mSuDowyuRe8pFndQeNe7aCY9TI0pQ5WxLFQIS27ibyzOrHNXddnB059mfOJZ9 CyiHH8e8GeNg96sSFhVQnZgXr1u1k70DwQ9S6xwn6JXfmOX4dXVoU6pabsr/NtZHaWSE 3Q== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhe9ne401-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Feb 2023 17:15:35 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 317GZ90m007788; Tue, 7 Feb 2023 17:15:35 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdt6e8cu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Feb 2023 17:15:35 +0000 Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 317HF7ga007936; Tue, 7 Feb 2023 17:15:34 GMT Received: from myrouter.uk.oracle.com (dhcp-10-175-168-65.vpn.oracle.com [10.175.168.65]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3nhdt6e7g6-8; Tue, 07 Feb 2023 17:15:34 +0000 From: Alan Maguire To: acme@kernel.org Cc: ast@kernel.org, andrii@kernel.org, daniel@iogearbox.net, eddyz87@gmail.com, haoluo@google.com, jolsa@kernel.org, john.fastabend@gmail.com, kpsingh@chromium.org, sinquersw@gmail.com, martin.lau@kernel.org, songliubraving@fb.com, sdf@google.com, timo@incline.eu, yhs@fb.com, bpf@vger.kernel.org, Alan Maguire Subject: [PATCH v3 dwarves 7/8] dwarves: document --btf_gen_optimized option Date: Tue, 7 Feb 2023 17:15:01 +0000 Message-Id: <1675790102-23037-8-git-send-email-alan.maguire@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1675790102-23037-1-git-send-email-alan.maguire@oracle.com> References: <1675790102-23037-1-git-send-email-alan.maguire@oracle.com> 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-02-07_09,2023-02-06_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302070153 X-Proofpoint-ORIG-GUID: 85nl0va4DKfnoOZIgBgpi1aA9J4ksSPh X-Proofpoint-GUID: 85nl0va4DKfnoOZIgBgpi1aA9J4ksSPh Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Describe the option in the manual page. Signed-off-by: Alan Maguire Cc: Alexei Starovoitov Cc: Andrii Nakryiko Cc: Daniel Borkmann Cc: Eduard Zingerman Cc: Hao Luo Cc: Jiri Olsa Cc: John Fastabend Cc: KP Singh Cc: Kui-Feng Lee Cc: Martin KaFai Lau Cc: Song Liu Cc: Stanislav Fomichev Cc: Timo Beckers Cc: Yonghong Song Cc: bpf@vger.kernel.org --- man-pages/pahole.1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man-pages/pahole.1 b/man-pages/pahole.1 index 7460104..1a85f6d 100644 --- a/man-pages/pahole.1 +++ b/man-pages/pahole.1 @@ -261,6 +261,11 @@ to "/sys/kernel/btf/vmlinux". Allow producing BTF_KIND_FLOAT entries in systems where the vmlinux DWARF information has float types. +.TP +.B \-\-btf_gen_optimized +Generate BTF for functions with optimization-related suffixes (.isra, .constprop). +BTF will only be generated if a function does not optimize out parameters. + .TP .B \-\-btf_gen_all Allow using all the BTF features supported by pahole.