From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (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 B80022F25EF; Wed, 28 Jan 2026 16:46:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769618796; cv=none; b=FXn9c0qLVxSDLxXEGdM0aMwitjxkt17INRaYfs9Sv0aDer339zyPGhC+iLpTg5EdlTYxj4NRIysrOhjBuHxrDpFC0XogG2iUyG79/NnpbxXdpLKswdFAII6K7FLblNYXKobTgdXPIQZQ/3gdvcI8B1AqAmJOIHQhgdHSGv438tU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769618796; c=relaxed/simple; bh=yyoZ1sDBZV6FNchAIhxcYm41ZnVXg8dHaEZFQKQbvDo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EAXlUPiDwjVquebEXXSZPA9QRaZDLijlefd3PZr0IjT2TFB8iD83Z+jSASY24aFCmzEIqsZ/bHAaRLHIl+CenDDMu+MRna/zeJvK4rNNnG54H+EINXU711PmV88HYlhfHf2vFYE0h6RvR9TWUMa5zB4jzHsK3FZ9S83hP57Ng9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=none smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=u7Mm8CZ5; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="u7Mm8CZ5" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+lQl+dFqNAENGsU7mYgYRTKm9IWMInogA9Kw8B4GeF4=; b=u7Mm8CZ5lnsxv0szdO12EEGsl9 HEJsQZJ8deFgZLiKIb3pnu7X4cAV3JHH0I6B5unq14Qenpek/g787WgsRjZgtpcpV8XxKxFn8LY40 hV7qu59dY7dZ6NHJHqjRMKVth6/zQ1BuOuujqxFATPNPfG2rK1dtVc15hdr2RRY131p9yFsUO/cSH oqr1eX9ixgPLEqDteD1fmhY9M1KiFlTV8u8rBwxXEzAtJwYslBX7hXkE4WaECACtfJVVnBRsagFg3 T0KsQIaKDwDXR8BchvGwFQ5XOF/NEGCTxiFPXQ+oNilT1+Gz+SIO4PUGRPdnqKxcFwqCrWU9EBld8 updm/u2w==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1vl8gL-000Iu5-4N; Wed, 28 Jan 2026 16:46:17 +0000 Date: Wed, 28 Jan 2026 08:46:10 -0800 From: Breno Leitao To: John Ogness Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , pmladek@suse.com, Greg Kroah-Hartman , Steven Rostedt , Sergey Senozhatsky , Andrew Morton , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, asantostc@gmail.com, efault@gmx.de, gustavold@gmail.com, calvin@wbinvd.org, jv@jvosburgh.net, mpdesouza@suse.com, kernel-team@meta.com Subject: Re: [PATCH net-next v5 4/4] netconsole: Use printk context for CPU and task information Message-ID: References: <20260128-nbcon-v5-0-93b4ddbc181a@debian.org> <20260128-nbcon-v5-4-93b4ddbc181a@debian.org> <87a4xxlqz8.fsf@jogness.linutronix.de> Precedence: bulk X-Mailing-List: netdev@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: <87a4xxlqz8.fsf@jogness.linutronix.de> X-Debian-User: leitao Hello John, On Wed, Jan 28, 2026 at 04:09:07PM +0106, John Ogness wrote: > On 2026-01-28, Breno Leitao wrote: > > Use the CPU and task name captured at printk() time from > > nbcon_write_context instead of querying the current execution context. > > This provides accurate information about where the message originated, > > rather than where netconsole happens to be running. > > > > For CPU, use wctxt->cpu instead of raw_smp_processor_id(). > > > > For taskname, use wctxt->comm directly which contains the task > > name captured at printk time. > > > > This change ensures netconsole outputs reflect the actual context that > > generated the log message, which is especially important when the > > console driver runs asynchronously in a dedicated thread. > > > > Signed-off-by: Breno Leitao > > Reviewed-by: John Ogness Thank you so much for all the reviews and your support throughout this migration. I really appreciate it! ---breno