Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6298128rwr; Mon, 24 Apr 2023 17:47:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKoT4kj23+fjOatEmQye7GDNmJs1IF8TWk6eIFXZDRhk/u9szohePUZ0G4PlqwDF8YG50j X-Received: by 2002:a17:902:ccc6:b0:1a8:1cbb:4f76 with SMTP id z6-20020a170902ccc600b001a81cbb4f76mr17081362ple.28.1682383650404; Mon, 24 Apr 2023 17:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682383650; cv=none; d=google.com; s=arc-20160816; b=Vpo3l9Nl9Lh7QZt5t00XbI4iuN7ylMIVNWFWkSXvIDI4QRjB3whUcJLUcrpuPxAxnV P1sX6Cr8ZyqrCPT4Wrnd+KKNVK7qwOiLqrClgBWExUE+OOBHfwqe8dwO4p4BpH8g8fKd GF5LRsopoDOIjQd+S9NcUeH3BUIboo2h1szDVFR+JgjYuO6AMfWO6KoPCsapQf7fZRfp LdyhfwDEyjXfiTldDQs6LLiGIaVrCV+3mm1rK6ppk/Mn/uTsOlwZEfRCXwlQ58aR/XNZ kG2LegNjqOGwVh2H69OU47s69/VWVPL+QU/VIxLPB2ztvFAYLn5Fv6ItfZ370Nnz8+eV TLHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=pMBqvQfRtDiM4Gcf/pFNizE4Er/to61ue3XN0q7QqDY=; b=cQWL9qIoU8uoAFx0PjVlZxc4XiKA2jeYZtlZL1ZC7u8GLkHNF/Kbg9c8yV6pCKKwL7 D9rU0Nkl7hIVbOYokH2YXcqMDkRnH2dvhf/B8UIXFYn4kMMjwuwCIQa28+L81/HkG0/P Ov+vIrhBGqYVbZVSLXIasAls6eS4wok0qaF4F71a0JgOCWGByfPa41alNLg22gnDci33 p8xniaTPqOoJ0xw+XjGCD9P/IzFqE0/ZA57xDjvNq6Cg/EViDLbB26fsxsIr9w52RCeS auKNh0cAvui5P1N7N7HH39NHbBHLMgYgvo6cKs2nHHCWu5vtveXY7zgpkkPdLvn/Y0er ES+A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a170903228b00b001a95b85b070si7795566plh.604.2023.04.24.17.47.16; Mon, 24 Apr 2023 17:47:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232021AbjDYAZR (ORCPT + 99 others); Mon, 24 Apr 2023 20:25:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbjDYAZP (ORCPT ); Mon, 24 Apr 2023 20:25:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F2695585; Mon, 24 Apr 2023 17:25:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9D86262A74; Tue, 25 Apr 2023 00:25:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3DF1C433D2; Tue, 25 Apr 2023 00:25:11 +0000 (UTC) Date: Mon, 24 Apr 2023 20:25:09 -0400 From: Steven Rostedt To: Donglin Peng Cc: mhiramat@kernel.org, linux@armlinux.org.uk, mark.rutland@arm.com, will@kernel.org, catalin.marinas@arm.com, rmk+kernel@armlinux.org.uk, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, tglx@linutronix.de, dave.hansen@linux.intel.com, x86@kernel.org, bp@alien8.de, hpa@zytor.com, chenhuacai@kernel.org, zhangqing@loongson.cn, kernel@xen0n.name, mingo@redhat.com, peterz@infradead.org, xiehuan09@gmail.com, dinghui@sangfor.com.cn, huangcun@sangfor.com.cn, dolinux.peng@gmail.com, 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 Subject: Re: [PATCH v11 0/8] function_graph: Support recording and printing the return value of function Message-ID: <20230424202509.716c6136@rorschach.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Sat, 8 Apr 2023 05:42:14 -0700 Donglin Peng wrote: > When using the function_graph tracer to analyze system call failures, > it can be time-consuming to analyze the trace logs and locate the kernel > function that first returns an error. 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 outputing the trace log. > > Note that even if a function's return type is void, a return value will > still be printed, so it should be ignored. If you care about this, the > BTF file can be used to obtain the details of function return type. We > can implement a tool to process the trace log and display the return > value based on its actual type. > > Here is an example: > > I like this series, but since the merge window for 6.4 just opened, I'm going to hold off and pull this in for the 6.5 series (after a bit more review and testing). -- Steve