Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp96471lqp; Mon, 10 Jun 2024 20:17:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpZbxpbglytLZiAUJkOiwbqfnYvLp3NpagchD0q1GfvfRPsCaeb2AF8qq+YBCrtwqImTebQ/XC5RugOOH2/1QdiOFQopHaXT4psyUb6g== X-Google-Smtp-Source: AGHT+IEtPNfHIBqSNGDSbqiCZh6esWKV2LRR76dUwb1Q0Q2kdKkZD7Exu60RbnBO1UwTF4J+b1kw X-Received: by 2002:a05:6a20:1589:b0:1b7:6252:900e with SMTP id adf61e73a8af0-1b86bc48861mr2171124637.6.1718075874427; Mon, 10 Jun 2024 20:17:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718075874; cv=pass; d=google.com; s=arc-20160816; b=NFZzJ9GoZtn6L7X7HZAXNOt65HhLPrEEb6qZ3sVC03s8LepuL5F1k4d2ujGrKJ4z2p tOrG1vRkaOWEk2ERv7h864uvgUxkt1SopzBer48Z2i02KRN9UhtRg8rZektKuirFiuIQ FH94L7sivLOn6YhY420WqopVbxX+mOXyfFMckjOx2y3b4W7XpWrqHD1gl5OljNVYpKUs fB99sMXLc3wmXCU73gKE0ReL3wIbOX+LtuWU0rUrdYYOhmhAjkUaMnz2ArT3yTrwd/Wx YIXxC2G7axsz+TQ9DOCHAZ7AmGfow2r+5JD6xfaa7j48bKtAjM399IGV3Y2kpoyWE7gs PrTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :from:date:user-agent:message-id; bh=hdJb87sPeJB3IQKY0Dwy2cAM2ptHa2wGGVXt+CSn9O0=; fh=AW/nqV6bycJk+TkW/2ONj+Kcfc6Z2ayzz0eE9C/xbLo=; b=CzgHVMMHG5qAqp+gYTAuxtOht8U6EutUdhGkBIOoxOeUFqh4kMqiKYZ4/B1MQucg4k nDCog/7bXGwvMZNAc3OI/tOnnUnpQUX3RDwAtEo4jPPfF7e4zk15EqqpGPG/g1205eWV qmb+1vjlxo+Z9B0sjy8dOY9hdUIpm2leQSZMcvhZVI4pfP09//aFHfEJNIEFXIAdQwtY lC55MwnPtcPYRjaHRNVEXEduJfHOCJjl/x7TWwywmvOF/YRzbw2V7MQ41j1AKAdsxJlo 2WA3Q2fHj/9zfgwSUIa5ceVLN/Hf6DzNh7OlX1l4ERz93RnSZXArl6cbSmUOPmFmdbAy GeMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-209212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209212-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2ab2f5a3si5901433a12.862.2024.06.10.20.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 20:17:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-209212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209212-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 69009B22527 for ; Tue, 11 Jun 2024 03:17:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B4D016FF28; Tue, 11 Jun 2024 03:17:24 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7267D63CB; Tue, 11 Jun 2024 03:17:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718075843; cv=none; b=cmPgt/8t5tecvDZx5qAZnHnV89aH0hG+Nw4a/gyD41+S1Lh0B7DInG3PkilwPTrdAi3uMv4PA5MAywrOoBGOmg8xFcd438xQ5OevION7a8wfUk2wLlnuf7117CqsymzzUJ+uw1RDCjhLbooiqpYcH2OzB+Q4XTRwuNZP5BzgpwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718075843; c=relaxed/simple; bh=/60qOc7roiLWpgrlHYTsf+6kSPuXUzcO/tFIko6/+qw=; h=Message-ID:Date:From:To:Cc:Subject; b=SAxQutrCVsWmoxMrl6jv05QL3wcxc1E8q7GM4SMFTN2Srd4NFE32R+DrrzKO4Fw04d5TUAaGUoVIUaNZzKNUYuKv2w0b1nIu4hcLk19jXcG0dv05MccLFgv16kE4/whPKsT/12odw54uyXGBZfIwSheXaExFWsOXjoU18cq4E3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A354C4AF1A; Tue, 11 Jun 2024 03:17:23 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1sGs0v-00000001JgD-3KfX; Mon, 10 Jun 2024 23:17:37 -0400 Message-ID: <20240611030934.162955582@goodmis.org> User-Agent: quilt/0.68 Date: Mon, 10 Jun 2024 23:09:34 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Jonathan Corbet , Catalin Marinas , Will Deacon , Guo Ren , Huacai Chen , WANG Xuerui , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N. Rao" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Subject: [PATCH 0/2] function_graph: ftrace_graph_ret_addr(); there can be only one! Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: I noticed a slight bug in ftrace_graph_ret_addr() for when HAVE_FUNCTION_GRAPH_RET_ADDR_PTR was defined and fixed it up. I then noticed it was buggy when not defined. Looking for an architecture that did not have it defined, I couldn't find any. So I removed it. Steven Rostedt (Google) (2): function_graph: Fix up ftrace_graph_ret_addr() function_graph: Everyone uses HAVE_FUNCTION_GRAPH_RET_ADDR_PTR, remove it ---- Documentation/trace/ftrace-design.rst | 12 ------- arch/arm64/include/asm/ftrace.h | 11 ------- arch/csky/include/asm/ftrace.h | 2 -- arch/loongarch/include/asm/ftrace.h | 1 - arch/powerpc/include/asm/ftrace.h | 2 -- arch/riscv/include/asm/ftrace.h | 1 - arch/s390/include/asm/ftrace.h | 1 - arch/x86/include/asm/ftrace.h | 2 -- include/linux/ftrace.h | 2 -- kernel/trace/fgraph.c | 61 ++++++++++++----------------------- 10 files changed, 20 insertions(+), 75 deletions(-)