From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) (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 9FC8B28CF66; Mon, 10 Nov 2025 17:08:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762794534; cv=none; b=kVN2CetqQips5RdojYnRYw6rMQuDqVDBIBfZ2atUcITgfB8fKmOdfQbt1/Ly6DA3oxzAQIJkBeIZXB76iJ0ZnIYVXYsneooGiC3vsnrqxBTx/f1gmj1lQWM/z/42ShrlAgw3xEFg3YIGOBdvPBGarGQLTUikuW6i9QvkJBAAYzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762794534; c=relaxed/simple; bh=sPyIuEy8M2xGyscr0ZqxVwNQTghpKPhthp/45Asx9tk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XikPigamfV9Xp759jyn+sZqGmwJ/IL+pMAEOSTsD5mJe3JWwTHC+oUPmjEuCaSFKBP3MNLRSex5I61WXYicSZhheh3Yxk/YUCncdPUSIpCZwG01xofCJ55wVT3UsaKcZNRV6/Uxv75gBlJYeIXsCD3sa+vBN/1DcLBWUwI0Pb+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=goodmis.org; spf=pass smtp.mailfrom=goodmis.org; arc=none smtp.client-ip=216.40.44.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=goodmis.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=goodmis.org Received: from omf14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 220901DE3A8; Mon, 10 Nov 2025 16:59:02 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: rostedt@goodmis.org) by omf14.hostedemail.com (Postfix) with ESMTPA id 150E433; Mon, 10 Nov 2025 16:58:56 +0000 (UTC) Date: Mon, 10 Nov 2025 11:59:05 -0500 From: Steven Rostedt To: Joel Fernandes Cc: Timur Tabi , John Hubbard , "dakr@kernel.org" , "lossin@kernel.org" , "ojeda@kernel.org" , "boqun.feng@gmail.com" , "a.hindborg@kernel.org" , "simona@ffwll.ch" , "tmgross@umich.edu" , "alex.gaynor@gmail.com" , "mripard@kernel.org" , "linux-kernel@vger.kernel.org" , "maarten.lankhorst@linux.intel.com" , "dri-devel@lists.freedesktop.org" , "nouveau@lists.freedesktop.org" , "rust-for-linux@vger.kernel.org" , "gary@garyguo.net" , "bjorn3_gh@protonmail.com" , "tzimmermann@suse.de" , "airlied@gmail.com" , "aliceryhl@google.com" , Alexandre Courbot , "joel@joelfernandes.org" , Alistair Popple Subject: Re: [PATCH v2 08/12] nova-core: sequencer: Add register opcodes Message-ID: <20251110115905.68bd2826@gandalf.local.home> In-Reply-To: References: <20251102235920.3784592-1-joelagnelf@nvidia.com> <20251102235920.3784592-9-joelagnelf@nvidia.com> <0FF9536C-8740-42C3-8EF1-5C8CD5520E49@nvidia.com> <93c758298250d2be9262256a698c243343b64ebc.camel@nvidia.com> <3c625930-348a-4c96-a63a-6a3e98e59734@nvidia.com> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Stat-Signature: bo8n554brdybxe8tzkoe4zkojd6htetn X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: 150E433 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Session-ID: U2FsdGVkX1+H1piAeME0Nak4QTI1kjlWaClalfQMSFM= X-HE-Tag: 1762793936-15452 X-HE-Meta: U2FsdGVkX18TeH8c44PwmQl/1Qx235QkyrGTE7kzUCFZNeIues/vHHR9gVsLOKSe70MgRYhlbKVtXukGhUco+yVUjRsy9xPF+C8Y6/xUVN5JPLrB93Fwkk+2uuXkJjtAhswbXwYHgrCXgdQD1BfUR5/5QQyUoDoJHnFAhiQDpwM4PX63cOWwTdQKoO+XwzmFExHfqne3daMVosLc3oQ91W7DlejwGHdcbYTjjLoD/wmQl5oDz8Sq3jfGi7KsTCxslWalMmXuHYU/O0p3AaaTW/IHAEv2no9GbmaY7vN9KIk+Ae3tCkrmiWoPoe1qBt0iabYI3JpUK9WBEmdsWBaqrBOTGQFbwqXz On Mon, 10 Nov 2025 10:16:45 -0500 Joel Fernandes wrote: > > IMO, the best way to do this is the tracing subsystem. It is the lowest overhead > > runtime kernel logging system that I know off, lockless, independent of the > > serial console etc, next to no runtime overhead when off, etc. > > > > I recommend we use the tracing subsystem for "trace" and even "spam" level > > logging levels for Nova. The brave souls can always ask the tracing subsystem to > > also spam to kernel logs if they so wish. > > > > ++ Tracing Czar Steven Rostedt as well. Steve, Nova is a new modern Nvidia GPU > > driver. Not sure if there was a question here, but you can enable tracing via the kernel command line and it will record into the ring buffer, and read it out via /sys/kernel/tracing/trace. You could also create instances by the kernel command line that will place events in different ring buffer instances (/sys/kernel/tracing/instances//trace). You could even filter the events based on the trace event fields, process ID, CPU, etc. There's also a tp_printk kernel command line option that will turn every trace event into a printk() statement. You need to be careful of what events you enable when doing this, as some events (like locking events) can live lock the system if they are piped to printk(). After boot up, you can turn off the tp_printk with: echo 0 > /proc/sys/kernel/tracepoint_printk -- Steve > > > > I guess we have to decide how to do this - what kind of tracepoints do we need > > for Nova. One use case that just came up is RPC message buffer dumps for > > debugging communication with the firmware.