From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=90.155.50.34 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796111317; b=kQt4E6Ulu3rqVpUuuZfIKZQSDJrem2M10i6/ZHUatIfzEd7ckBzFH11mE/dWSjnqP/5D RLkG3A+uNv0TkBXx4BuSNjSdYJHunxz/UJ5cc2hNF5y8zpSCtke7bybHnjYFy24vUh7Al dB8V9DDBqtoT2Y2A/HEPShBY4ZjxR+PgBlNLYAiah+ZOSRmyncVYWuJViuoukEOoH6nvM Ah2ze3SsVOEkrbsug1klR6eC/7wPvGMTQr4aNEXHs8NbnnUAK5QZjMkJAKsWyn07e1dPh uWLwQQEm3b2MkD0DR3KxEFUpNHN//yKb4Jz/32lbCZC1/7vpPAOK8bgOOLvDnRMRCLw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796111317; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=UKDu5LROzGogxtcnIEM7YbywZ95Af2OrXQhEddwrJxo=; b=s76FsUf7XovvVkkXn043kmkvkZ5gwjY3mO00+Ixw6GHzYjXV9FxcIuEijjAbvwEAiemv cFqnBVsbF9ZVQb6TSn8MpoynQ8Rbo8uUZCX8Nj4GXHZWzmObcRQle4azbSxP+8FGN8qtt R5jZ1G8NtZOgDqRpf+HysappMLzWU+1GLvUHtWxeCOKOnt2sV485kdCve22s0TDDkRUch E5rDv+tAFKoawMwvOeV4sftx9lT07wfYxTfNKQPVvyl9W6My0ALQ2rQHS6LDzRmxPa0/6 ByBMueICqPxnJfM0H7JraIESgwAqJj/IsqDbXSp1JtLECKXvI70504Oe8wFGrFOKJTA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=H0rTZYtg; arc=none smtp.remote-ip=90.155.50.34 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9199F606A33A; Tue, 1 Dec 2026 07:48:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9199F606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=H0rTZYtg DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UKDu5LROzGogxtcnIEM7YbywZ95Af2OrXQhEddwrJxo=; b=H0rTZYtgo1UP4o1sk+SR/cvnKL Cj791QXbOUf03POHltMH3GNTuj5bJCy0bgQAhLw73pZ6DKyrQCKIqJ9W3aKlCKSlHLFK61uVFT1KC XiYU/y8nSowRWgAEsOK/KoTEF3dCtPT8TmzelJk3OxhtbLvGkhXvaqyQUU6QTnYVZ40HABRf2KOHe t6qzFkCaUnLYaNQkiZNUM8XPFuUs+E5K6xPcR1nCs0BkQ9VwCA/i5LhDj9vfgWb60OOtcgBTN5PH4 W6GQ6dbiiMdW9uRcq2/8qZthsm5yNvVzsKBJ8eOmH9qK5MlOlcniAPj9pXaQ5yPF6TXC4TegteieH LF6UFswg==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYIWr-0000000DKyf-0rad; Tue, 01 Dec 2026 07:43:57 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 309AD300359; Tue, 01 Dec 2026 08:43:53 +0100 (CET) Date: Tue, 1 Dec 2026 08:43:53 +0100 From: Peter Zijlstra To: Song Liu Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, live-patching@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, tglx@kernel.org, frederic@kernel.org, paulmck@kernel.org, catalin.marinas@arm.com, will@kernel.org, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, ojeda@kernel.org, kernel-team@meta.com Subject: Re: [PATCH v3 01/22] x86/paravirt: Mark native pv_ops helpers notrace Message-ID: <20261201074353.GB2883950@noisy.programming.kicks-ass.net> References: <20261201042201.3199928-1-song@kernel.org> <20261201042201.3199928-2-song@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201042201.3199928-2-song@kernel.org> On Mon, Nov 30, 2026 at 08:21:40PM -0800, Song Liu wrote: > The native implementations of several pv_ops are static inline functions > in headers. pv_ops stores their address, so with CONFIG_PARAVIRT_XXL the > compiler emits an out-of-line copy of each one, and pv_ops calls go to > that copy. Today these copies are not traced only because the inline > macro implies notrace. > > Some callers of these helpers must not be traced: > restore_processor_state() is notrace and runs during resume, > __switch_to() is __notrace_funcgraph, and arch/x86/kernel/cpu/common.c > and arch/x86/kernel/tsc.c, which call several of them, are built > without -pg. > > Mark these helpers notrace explicitly, like native_write_msr() and > native_write_msr_safe() already are, so they stay untraced if inline no > longer implies notrace. No functional change. I must say.. I hate this with a passion. This is unmaintainable garbage.