Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp191089rwe; Fri, 14 Apr 2023 00:57:26 -0700 (PDT) X-Google-Smtp-Source: AKy350b/wQr6U6GjWMu2U6HzsgRFcV6t7/MfiMpiuivlwDYaeab9F7NUgA/r3nmcHQcrqwPIxCnm X-Received: by 2002:a17:90a:b781:b0:247:150f:20ad with SMTP id m1-20020a17090ab78100b00247150f20admr4350168pjr.25.1681459046105; Fri, 14 Apr 2023 00:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681459046; cv=none; d=google.com; s=arc-20160816; b=wke6iy3LMl96m+yn6TAAJomofsRK0hmarHcvI4fdA+h9X/jj0gCutw8jl5gMZMBCSs pXmAdTjtDTIMyYEJbz7r/Z1qKB1p6TXIThdQ8Vie282T0RNfdyd6icTLRkKA4RE3lBxB QxYJRgGCTwxjP4U39pW7C/zJgDm+iUemks5lUlNe9RI6e56tomqrqXa4/nNhIKMS2rsZ 4GzhWpv7CU8K0MUeZy71tyd7S4BVrh6kEANQbfPFLmZhCw3fWgEunUzmWY37VkkmjUac BCDR7dzSwueN8b6j/a0QGBtR35KCAffnogZYTV0iHu6jjDemPruSSHvbQ2LGnYU9mAsF inKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=vL3hzxtQbO9vY0gpyWroo7AzPn5NQSN508RGnvHYWL0=; b=h/PA+5hV1si6hHK+/jNLgEbtdGyILUsh0QSsSx+437e2R+2g7CDAu6f4XbB7JibBJC iaEavG0IcGmdyMxQI+uP/7aXPYFclPruUKinQolT+JTKxPYtCBXdSgwGq5UmlI8S6AiM FK/Mp1zwCxEJffOt9arMO2jFUF6QUynVu5gZVCsh6XM0il1/2V6SaRwGTATBqIBkADc5 LSkX1qFMOMRtK0HBWvJCZkcSzWFrPDbmVWVSdPj/jCm6ISGN3NjmzRupd8C0r9fP3ALo 1mMKRvt+SJOQdRHlrGwDgXL32bOucxSfKZm4rF+5NdYCu5SefOKwX0OgY71QVCuAL+yd Mz9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sangfor.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a631a0e000000b0051a650b8f52si4205542pga.259.2023.04.14.00.57.12; Fri, 14 Apr 2023 00:57:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sangfor.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229786AbjDNHzQ (ORCPT + 99 others); Fri, 14 Apr 2023 03:55:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjDNHzP (ORCPT ); Fri, 14 Apr 2023 03:55:15 -0400 X-Greylist: delayed 228 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 14 Apr 2023 00:55:13 PDT Received: from mail-m127105.qiye.163.com (mail-m127105.qiye.163.com [115.236.127.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89501DA; Fri, 14 Apr 2023 00:55:13 -0700 (PDT) Received: from [172.23.196.219] (unknown [121.32.254.149]) by mail-m127105.qiye.163.com (Hmail) with ESMTPA id 5D0BD580169; Fri, 14 Apr 2023 15:55:08 +0800 (CST) Message-ID: <7eabae11-6a65-c51d-ff39-8205057e497a@sangfor.com.cn> Date: Fri, 14 Apr 2023 15:55:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v11 1/8] function_graph: Support recording and printing the return value of function Content-Language: en-US From: Donglin Peng To: mhiramat@kernel.org, rostedt@goodmis.org Cc: huangcun@sangfor.com.cn, dinghui@sangfor.com.cn, catalin.marinas@arm.com, mark.rutland@arm.com, paul.walmsley@sifive.com, palmer@dabbelt.com, bp@alien8.de, tglx@linutronix.de, aou@eecs.berkeley.edu, rmk+kernel@armlinux.org.uk, linux@armlinux.org.uk, will@kernel.org, peterz@infradead.org, mingo@redhat.com, zhangqing@loongson.cn, chenhuacai@kernel.org, kernel@xen0n.name, dolinux.peng@gmail.com, x86@kernel.org, linux-trace-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Florian Kauer , dave.hansen@linux.intel.com, hpa@zytor.com, xiehuan09@gmail.com References: <1fc502712c981e0e6742185ba242992170ac9da8.1680954589.git.pengdonglin@sangfor.com.cn> <66fe9288-05ff-1bf3-dd40-e7b3cbdf1af9@sangfor.com.cn> In-Reply-To: <66fe9288-05ff-1bf3-dd40-e7b3cbdf1af9@sangfor.com.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaH0gfVkJJS0sfHkxNSR1OTlUTARMWGhIXJBQOD1 lXWRgSC1lBWUpJSlVISVVJTk9VSk9CWVdZFhoPEhUdFFlBWU9LSFVKSktPSEhVSktLVUtZBg++ X-HM-Tid: 0a877ec2d1ccb283kuuu5d0bd580169 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PU06Sgw*Lz0IHiEXNwwuMEIf Vi9PCxNVSlVKTUNKT05DQkpLSktLVTMWGhIXVQseFRwfFBUcFxIVOwgaFRwdFAlVGBQWVRgVRVlX WRILWUFZSklKVUhJVUlOT1VKT0JZV1kIAVlBSE9CTjcG X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/4/14 15:44, Donglin Peng wrote: > On 2023/4/8 20:42, Donglin Peng wrote: >> Analyzing system call failures with the function_graph tracer can be a >> time-consuming process, particularly when locating the kernel function >> that first returns an error in the trace logs. This change aims to >> simplify the process by recording the function return value to the >> 'retval' member of 'ftrace_graph_ent' and printing it when outputting > > There is a mistake, the retval member is added to ftrace_graph_ret. Hi Steve, could you please correct this mistake before merging it into linux-next? > >> the trace log. >>