From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 83114176AB5; Wed, 9 Oct 2024 09:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728466676; cv=none; b=K6dh+UTX/sUuaE7FHHl4OCi8QcZ2w3RcF3B27iDW+pkHiClmvipLPTiZqznuRGuhcqaWOxJGZGKIDFEYr5Zp1v9EUeU9AM1RXCSIUJx36jRHET/MI4mcLpV8xyihtMl9eyBEKe1toJjAFaZyMC1UsnnA5XKrYAxOOZGJ1g0/2AU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728466676; c=relaxed/simple; bh=2mG5LnoFKVFiN6/AcMVdSwl8WQMh+PkOPojFAAn7sos=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UVzzKpg7DxrqpVq9ZA8RD6XtF1dOyUKHkcU+wk45pLlHEsZeb8dwsIsHJgWMNH3M9fJswu+jXncXskxJ1w8xxab0BwpWgWApdbtmNOoeOiTuzZlPUkVSHN2FpJUJGtT6+kr4446m1gOJrO5J0/3wvojJx8gCH4Ln/jTAj+anN5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=kcXD4bIE; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="kcXD4bIE" Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4997QMve028472; Wed, 9 Oct 2024 09:37:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=pp1; bh=4fNQ+8RmglCqVKBxGrAojCBFjWc qgWspkWgdbNioFLc=; b=kcXD4bIEySVjicPnDmfzdEHWme2X+EHygcgQfb9Qm65 hwM7abq+fXHcrZYXDD+AwHBJmFNpM/QCzKQVsMRW4V+BF/M+1gBS9KOoTVVGutQr QRMjg12z4gmfnmURH+nAyZzREFJoW1U2vhzVCWDsxb7G4KP5/jBtk0J8S3EOI49X uLwzvajfTPBHCO9AfpcQQpLpx6PD61mhcxlc9kx896ZDIZdXD+/a+z6Ujh2x1yxK I99Gux9E6xwA3MV2VajYUxDIFzjHCDD+1RqKRkhDoWMzqMy8DONzGv4f6mgJKX0x DNsGVdk51O11jjkqSP9ziktsv2GPXtjDUP8gJGwo1Ng== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 425nefgjhf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 09:37:23 +0000 (GMT) Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 4999bM2T011033; Wed, 9 Oct 2024 09:37:22 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 425nefgjh9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 09:37:22 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 4998VI50022847; Wed, 9 Oct 2024 09:37:21 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 423h9k0wk3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 09:37:21 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4999bHUW53543356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 9 Oct 2024 09:37:17 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 61DE920040; Wed, 9 Oct 2024 09:37:17 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 951412004B; Wed, 9 Oct 2024 09:37:16 +0000 (GMT) Received: from osiris (unknown [9.152.212.60]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTPS; Wed, 9 Oct 2024 09:37:16 +0000 (GMT) Date: Wed, 9 Oct 2024 11:37:14 +0200 From: Heiko Carstens To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, loongarch@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, "linux-arch@vger.kernel.org" , "x86@kernel.org" , Masami Hiramatsu , Mathieu Desnoyers , Mark Rutland , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Subject: Re: [PATCH v2 2/2] ftrace: Consolidate ftrace_regs accessor functions for archs using pt_regs Message-ID: <20241009093714.8007-D-hca@linux.ibm.com> References: <20241008230527.674939311@goodmis.org> <20241008230629.118325673@goodmis.org> Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241008230629.118325673@goodmis.org> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: TFXfZJBKt3TXi7mhFzxQ8d6YDbWPR-O_ X-Proofpoint-ORIG-GUID: zEXZbVUipOyj-zc2RijPGpZTAs11IO_0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-09_08,2024-10-08_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 impostorscore=0 mlxscore=0 malwarescore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=386 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410090061 On Tue, Oct 08, 2024 at 07:05:29PM -0400, Steven Rostedt wrote: > From: Steven Rostedt > > Most architectures use pt_regs within ftrace_regs making a lot of the > accessor functions just calls to the pt_regs internally. Instead of > duplication this effort, use a HAVE_ARCH_FTRACE_REGS for architectures > that have their own ftrace_regs that is not based on pt_regs and will > define all the accessor functions, and for the architectures that just use > pt_regs, it will leave it undefined, and the default accessor functions > will be used. > > Note, this will also make it easier to add new accessor functions to > ftrace_regs as it will mean having to touch less architectures. > > Suggested-by: Masami Hiramatsu (Google) > Signed-off-by: Steven Rostedt (Google) ... > arch/s390/include/asm/ftrace.h | 26 +-------------------- Acked-by: Heiko Carstens # s390