From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 644B7256C84; Wed, 28 Jan 2026 14:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769611340; cv=none; b=F460L6uyC1Pr7bIVLZv1ah7hYH9iRb6n/Qnpvsz7LsmY4FKYRCOTMWobFbBI4CLz6tDmDsLCxjiMU/GhoCS0B0gcMw0RiURMzPHYFpG06Tr+3ZIDGTsN+3HDUFbAspHVk5laGfBrhe7mJnJvnlwt+U6C4vW6hJyMUteKyEKDz9g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769611340; c=relaxed/simple; bh=xSjS2RKpoVgS/10b893h19VYCPQFY/jVY+kvb7CcMhQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=tohOJBbAKb9A4mzE6gXDzrymBNT6ZPESu3piApngVz4Hw4RzEG1T4vnGDn70Rf0nW08aMxUBBPUmved+A2OamFvUFMfiU0fY8d1qDj1GrHM9pslMZkMl3zXkPmvnIchaA8o1VRHq3ORlYzwRcFgwkfbPb7VIbrgxgI7t+rFkvq4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=d2nZnemG; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=M4A8E+wf; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="d2nZnemG"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="M4A8E+wf" From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1769611337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xSjS2RKpoVgS/10b893h19VYCPQFY/jVY+kvb7CcMhQ=; b=d2nZnemGWw8GrootCvxx9xk10RJBVsu8sYEnrqqyOQbMncwgopjIRK9SdygTVNWguFDW4B O4AOPILYd0rhVJGKADcoa38uAAPApB+6m5B1Lt8M+ybDumnS5+FLs1WVGJ3gmmTjB3jjwl zUITRaAM5+4da6vS9M0i9FrjyE529wcbGySrJhbPzXIH6XewJe9y1+69COXbFg1YPIeqcN urhk98TWXOre5fKTzLe2UKKgkSlwwYuJHNS6MiXF+CmCAcVFawVSjB+OGZE8gB24FA6EY8 nsS3gAa3+WtMbr0ubSEQfAjGY+Lr4aE4cZnTvgmgpNvJc3A/DLSiQfS+BHwIqA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1769611337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xSjS2RKpoVgS/10b893h19VYCPQFY/jVY+kvb7CcMhQ=; b=M4A8E+wfBy9Eyiq3lK/btWOUYH45dCwKUBzh0d7Erhvno3SuHTdftdjch84PTo8b9nfmrD Zh2gW0uosD0f27Dg== To: Breno Leitao , Breno Leitao , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , pmladek@suse.com Cc: 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 1/4] printk: Add execution context (task name/CPU) to printk_info In-Reply-To: <20260128-nbcon-v5-1-93b4ddbc181a@debian.org> References: <20260128-nbcon-v5-0-93b4ddbc181a@debian.org> <20260128-nbcon-v5-1-93b4ddbc181a@debian.org> Date: Wed, 28 Jan 2026 15:48:16 +0106 Message-ID: <87ikcllrxz.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 On 2026-01-28, Breno Leitao wrote: > Extend struct printk_info to include the task name, pid, and CPU > number where printk messages originate. This information is captured > at vprintk_store() time and propagated through printk_message to > nbcon_write_context, making it available to nbcon console drivers. > > This is useful for consoles like netconsole that want to include > execution context in their output, allowing correlation of messages > with specific tasks and CPUs regardless of where the console driver > actually runs. > > The feature is controlled by CONFIG_PRINTK_EXECUTION_CTX, which is > automatically selected by CONFIG_NETCONSOLE_DYNAMIC. When disabled, > the helper functions compile to no-ops with no overhead. > > Suggested-by: John Ogness > Signed-off-by: Breno Leitao > Signed-off-by: Petr Mladek Reviewed-by: John Ogness Thanks!