Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp509630lqp; Thu, 21 Mar 2024 07:47:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUr+12j307G6dwdWeHDfNR0baDNqkJX3azrcj5gaCcpazp5vkheKIcFNqWNo9vfTMawGvwD3Ks2MJaeXQGoIHlJEIkxpX1GXrv6eFKhMw== X-Google-Smtp-Source: AGHT+IGL6rFMVMniVPR6tpsqtBjtbqHo8Vbqv5nfwdL7Y/cP5FLI9t3Lg21rlrE+q65vhwQpW4Wf X-Received: by 2002:a17:903:1105:b0:1df:fbde:aad9 with SMTP id n5-20020a170903110500b001dffbdeaad9mr6201303plh.38.1711032444861; Thu, 21 Mar 2024 07:47:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711032444; cv=pass; d=google.com; s=arc-20160816; b=HjsznjGVrUIeZMV8y/0x889tpJe65tKnCWTDDF3skcx7GNAQINc1dV/XPoc6c2o7A1 z9rYAJb1BZnmMENJeDNgbaubdYTvtVFNesU0D1+ZzCBFg1t+GBnePt2CwF0VXM+bJpnI WjKTBMoSx8MzaFO+pp4FrEZBLq6F0xP2E+NZ0ZXFqoy5cUkOp/+3lev1StR8RNaZ7271 NAUr/9GPjd21Kbcasn3XeF8+vI7n8aDq9SVBA2YEaOysUsXFJfEvNcLyZsF8BXiNbn3x 89gdFXCoqwwqXNMuc69qQMsZCay9J3nthJvLYNwUbsJyv7nFBsXgAJCUVsFf9Xjou+ob GhNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=ZxbigyJzOjs1wYhyPEUpdEFVQm6mUx5qsFvL7Zc6LD0=; fh=FJ0cdsJlcuc9VGG6gEz1OWgFJV8JMrU7mFuaK8OYBwQ=; b=S8o1Nx/Ydh39rdRuF0TVrRtK/WiT553sY9xtFjGrkj/+Ky6a8os68REeg+FAPJi4eQ KZQ3jxCaKPZqxzKdwhroEpClw2pdf+BiTwxt54+AxW5tmo9GvZSuWQhUndvJgF5K2zca y8sm29GAjZK9nJfVnrrpApaovZf2ai2O3wA6pLZ0ywWIcDIG0HoaOc0qM8MYtzx+wMxh 0G5qxOG96hkmN8zg4azhxbX6ojMri8F9FFh7zDMr08uRueYm0L4A8cOC4nAn/abtH2kF KC7V1Q7HZKwX2pOusHK3/MgLAd4YnRpfi2MxcXawNMzKqMJvNKvr3wr8/l5Q+Q9VsbWV +esA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-110177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110177-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e2-20020a170902cf4200b001e00adb94b9si10574453plg.608.2024.03.21.07.47.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 07:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-110177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110177-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 825E72845D4 for ; Thu, 21 Mar 2024 14:47:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1511B84FA0; Thu, 21 Mar 2024 14:47:16 +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 8D9A72CCA3; Thu, 21 Mar 2024 14:47:15 +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=1711032435; cv=none; b=qvyq+uytuUuiD8rjRLjfVS3v9kUwIqQe2FcKSi4oWW7ebFwMeVHTohyxpCXBAonc/ut+hnkBvOfmliOmlN7BDGNCZ0KoyIvbJItn82NbkI6LcJjnY0O8C8omfP79ozaiwVgqnLfVf4S6a/aSpf5uep/ATF2xP2OXDLhBXBDGYL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711032435; c=relaxed/simple; bh=ewOumbTsMKH3CFdRvCcy8rBQytRnuQkAjPV7reMCuUk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CFdTj70FAnN/0Bjpr5Lf/X0F+0qhWsnFyxA22BUE/Tx0MvVJzulOqTA3G442L3N5X+ctp9r5QQkRTDHWE3M9MhX04HkzRM0taxWb+TRA77fhYnuaw5CH+qBg4iMp6WDL8M87/k4XwlUtRpPY7yhMvCkwmNNwwjZ7/eD4FKA1+1c= 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 00E16C43394; Thu, 21 Mar 2024 14:47:12 +0000 (UTC) Date: Thu, 21 Mar 2024 10:49:39 -0400 From: Steven Rostedt To: Mark Rutland Cc: "Bj\"orn T\"opel" , Puranjay Mohan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Masami Hiramatsu , Sami Tolvanen , Guo Ren , Ley Foon Tan , Deepak Gupta , Sia Jee Heng , "Bj\"orn T\"opel" , Song Shuai , Cl'ement L'eger , Al Viro , Jisheng Zhang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [RFC PATCH] riscv: Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS Message-ID: <20240321104939.60c54560@gandalf.local.home> In-Reply-To: References: <20240306165904.108141-1-puranjay12@gmail.com> <87ttlhdeqb.fsf@all.your.base.are.belong.to.us> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 12 Mar 2024 13:42:28 +0000 Mark Rutland wrote: > > It would be interesting to see how the per-call performance would > > improve on x86 with CALL_OPS! ;-) > > Heh. ;) But this would require adding -fpatchable-function-entry on x86, which would increase the size of text, which could possibly have a performance regression when tracing is disabled. I'd have no problem if someone were to implement it, but there's a strict requirement that it does not slow down the system when tracing is disabled. As tracing is a second class citizen compared to the rest of the kernel. -- Steve