From mboxrd@z Thu Jan 1 00:00:00 1970 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 60C02200BA9; Tue, 4 Mar 2025 11:52: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=1741089137; cv=none; b=hb5+u3IutXksX3QnYbxVrseF5nNM7saU7F+PLsgWrd5kR3IHJnuAcPHzfVZkARHN5ue8eHZxC4BAcJjy37FSbM9qh0yvV/CK+quRsq0ulVk1wk2azCoZgp6lCITuT8WceDqd4MT3j9xFBtwRKUSWGEbaUKIebGVd3Mei4B5+OXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741089137; c=relaxed/simple; bh=EPAIERbCFgJfbsmMuNXCTV+TfVMyYMafuUDWHDGo/N8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mnYeZKtKdHeRuQ7jmSeX5Sqrq0IPB3lsZU7MtZ0RAWeqjpQbpeecMaYmLJRZmuSYutb/4js39+q5VOh3hiTXWJhqeuAmiu7TqsJlMZX11ayOVdDDiGlCPDcckb/Rt+pgKIeXidZ3DhJBDM5GrzhTcil91r/6Pb6nMJRqGtyuqlY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iXGhFT3m; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iXGhFT3m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4114BC4CEE5; Tue, 4 Mar 2025 11:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741089135; bh=EPAIERbCFgJfbsmMuNXCTV+TfVMyYMafuUDWHDGo/N8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iXGhFT3meFed5hJxUcbB2eE45lqx91GkO3d2HtqH1rFJYc4gWdEf7ri3WmDdbjNf7 c9zb7/9HYSnutU3bjCHOjFwWXQYDrEMkfyDeDHRnnHarVrtL3pqRP17z1vcEkldN6R Php0SKkRz7tkWM5rc94iZvPFvBxvkI60Jh6nEEgRCncMrJQgyCOvOq83UrLT0WJgGv EbOBW4YRseDKfmHe5q9zmonNUycEqAsJSnSSxj1/oVWUR7kr8UzUVpUkopJNwdWlVC HIZwwIY7/qQm65OwQszmdMFClz/yp2C6M0Spkh/GiVp0qvrTImKVSz15XSZ/VntFF8 M8rXuwZcTYFGA== Date: Tue, 4 Mar 2025 11:52:11 +0000 From: Simon Horman To: Breno Leitao Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Shuah Khan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH net-next v2 6/8] netconsole: add task name to extra data fields Message-ID: <20250304115211.GC3666230@kernel.org> References: <20250228-netcons_current-v2-0-f53ff79a0db2@debian.org> <20250228-netcons_current-v2-6-f53ff79a0db2@debian.org> Precedence: bulk X-Mailing-List: linux-doc@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: <20250228-netcons_current-v2-6-f53ff79a0db2@debian.org> On Fri, Feb 28, 2025 at 04:50:22AM -0800, Breno Leitao wrote: > This is the core patch for this whole patchset. Add support for > including the current task's name in netconsole's extra data output. > This adds a new append_taskname() function that writes the task name > (from current->comm) into the target's extradata buffer, similar to how > CPU numbers are handled. > > The task name is included when the SYSDATA_TASKNAME field is set, > appearing in the format "taskname=" in the output. This additional > context can help with debugging by showing which task generated each > console message. > > Signed-off-by: Breno Leitao Reviewed-by: Simon Horman