Article View: linux.kernel.netdev
Article #11766Re: [PATCH v7 0/4] tracing: improve symbolic printing
From: Steven Rostedt
Date: Thu, 05 Nov 2026 14:12
Date: Thu, 05 Nov 2026 14:12
85 lines
12273 bytes
12273 bytes
On Tue, 22 Sep 2026 13:08:39 +0200 Johannes Berg <johannes@sipsolutions.net> wrote: > Hi, > > Resend with the selftests and the two sashiko findings. Hi Johannes, Could you also add code in the samples/trace_events directory. Perhaps add a new event? This will make it easier to understand exactly how to add new __print_sym()s. FYI, this series did pass all my tests. Thanks, -- Steve > > v2 was: > - rebased on 6.9-rc1 > - always search for __print_sym() and get rid of the DYNPRINT flag > and associated code; I think ideally we'll just remove the older > __print_symbolic() entirely > - use ':' as the separator instead of "//" since that makes searching > for it much easier and it's still not a valid char in an identifier > - fix RCU > > v3: > - fix #undef issues > - fix drop_monitor default > - rebase on linux-trace/for-next (there were no conflicts) > - move net patches to 3/4 > - clarify symbol name matching logic (and remove ")" from it) > > v4: > - fix non-module build and possibly dynamic event handling > > v5: (https://lore.kernel.org/all/20240614081956.19832-6-johannes@sipsolutions.net/) > - fix build warning in non-module build > > v6: (https://lore.kernel.org/linux-trace-kernel/20260921101538.97286-6-johannes@sipsolutions.net/) > - rebase > - fix nit from Paolo (I hope, I don't remember changing it > but it looks fixed!) > - fix crash due to wrong data placement > > v7: (this version) > - update ovs selftest > - don't ifdef drop_reason_lookup() prototype > - fix section alignment > > > To recap, it's annoying to have > > irq/65-iwlwifi:-401 [000] 22.790000: kfree_skb: ... reason: 0x20000 > > and much nicer to see > > irq/65-iwlwifi:-401 [000] 22.790000: kfree_skb: ... reason: RX_DROP_MONITOR > > but this doesn't work now because __print_symbolic() can only > deal with a hard-coded list (which is actually really big.) > > So here's __print_sym() which doesn't build the list into the > kernel image, but creates it at runtime. For userspace, it > will look the same as __print_symbolic() (it literally shows > __print_symbolic() to userspace) so no changes are needed, > but the actual list of values exposed to userspace in there > is built dynamically. For SKB drop reasons, this then has all > the reasons known when userspace queries the trace format. > > I guess patches 3/4 should go through net-next, so not sure > how to handle this patch series. Or perhaps, as this will likely > not cause conflicts (in fact I've been rebasing it for years now), > go through tracing anyway with an Ack from netdev? But I can > also just wait for the trace patch(es) to land and resubmit the > net patches after. Assuming this looks good at all :-) > > Thanks, > johannes
Technical Details
Message-ID:
<20261105091216.7b91db5a@gandalf.local.home>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357423-linux-kernel-netdev=dewy.ruReferences:
<20260922110955.363677-6-johannes@sipsolutions.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357423-linux-kernel-netdev=dewy.ru From: rostedt@goodmis.org (Steven Rostedt) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v7 0/4] tracing: improve symbolic printing Date: Thu, 5 Nov 2026 09:12:16 -0500 Organization: Usenet Network Message-ID: <20261105091216.7b91db5a@gandalf.local.home> References: <20260922110955.363677-6-johannes@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3656473"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:MhZ8X1qiEdGGeOjugLa3Jk5pP/Y= sha256:AfKqyBDwES+Q/J+YOuRuYOBwUNCHg1yI6Qr/Nw5maNo= sha1:4z43HBpEVBh+xJEc/lb8o2J79Sk= sha256:RoIwdA18AVMiqyqBvLfiTcSW+zNMTibdJLenG9XKFRQ= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id E1CFA112FDC; Thu, 5 Nov 2026 17:37:47 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.049 X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=goodmis.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uuv1UCBnoi4Q; Thu, 5 Nov 2026 17:37:43 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-357423-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=goodmis.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id E3478112FD8; Thu, 5 Nov 2026 17:37:33 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 636BD2C9CA; Thu, 5 Nov 2026 14:12:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1793887950; b=XBSHxQqzi/MqO3+RlOkj6qKrogv2Xf6FzGPbN9GZ+KeX4PlBQFG4t9FWOg5lMZZgsuuc VDFR2JvpbjK4V8RAubPOuTtk5hNjTxFXdMVMd/coc+tzclW7Kjb6HGwa2PZ0W9/FFo/j0 PqYCjOpP5YQBubpnIE/Lks4RMJbPRP0a0zuRZJN6u1cnoKyN5Dw/Qi+eVQ4l5idXCNNf0 vaEKkzg3eLBXqbzZV8qA4WisOywM8vA9iUc2bYIP7cIxZvhNeNN1Mr7YQ3xblmO6Ncdf1 EBuiW1AWIY10nYs1PbqylsvB9zzuZEOBWkWGx0IZYFmtcWbeOhffEiIR+Ej6fuJFO0w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793887950; h=X-Original-To:Received:DMARC-Filter:Received:Received:Date:From:To: Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Rspamd-Server:X-Rspamd-Queue-Id: X-Stat-Signature:X-Session-Marker:X-Session-ID:DKIM-Signature: X-HE-Tag:X-HE-Meta; bh=ZuyZA80OhXsTCt9eMx+qhWTC4yMPIt4JU/oWRmBa8MY=; b=d4Mbqn9EUlW2+e2XlzfC1KSZPgHl9DKj8BtlLtZPVp3yisn0NiLcVBjKvtI+OfAPtHmU mT68jpk0GxpTkSSGO37e1StpVGHCFohQisj6O61XGJxOEG2caaf6ufREk8+v24LaeS/AZ 5/gRkzfQ9k3iEoKMoK1H/aHZH4Pk+0tqiIf8w2WHAbSN1H2SOG0V/ymatH0eLOcRs+RJQ zV/Dx7vcFh3BzOqYmkgCabydZGalgm9fpDTCv9UgJIVtbpa8EdLpRQiks+SB5oL0iykNm lzek/peWu5jPqhw5tD4zMWQWX029EQpUbNnMpegZoaDHFXP4oBhplj2KkAAWYi5OXMQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=goodmis.org header.i=@goodmis.org header.a=rsa-sha256 header.s=dkim1 header.b=CoEvBoFU; dmarc=pass header.from=goodmis.org; spf=pass smtp.mailfrom=goodmis.org; arc=fail smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBDE4606A32D; Thu, 5 Nov 2026 14:12:29 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=goodmis.org header.i=@goodmis.org header.a=rsa-sha256 header.s=dkim1 header.b=CoEvBoFU X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=216.40.44.16 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793887944; b=jbvJuezn99nvhS3iBbdYTCFU2KMZIuxZYPykQmUeujW4VVYG6bt7ZLDUC9W7NYq/cgfd UJ6owJVcqrl/zVysw/aXvtfLUzsJYDGCoJFUxDWbO5k0kfPA3kx9EE7+UUt6QC+QqAZaU 0bsz8NbQwUysZiJeTOlCVBw/1Ps5lVMGAX4/F+Ak8lZFPkkzBxFUPdis4OujwOMSjCWc6 7whez2+l6hmprq0Hno2nO1Ot6ct9r2p3Cl/dwK9IqRGvGl7P1dcNS3t2hKGz1N1ELBRYP kIMMnoxHAYsHiPSQWAJnYSGeZJSC1B+MdukDgH9J4Rbl5X6W58aBGLkC4v0L1Tok83w== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793887944; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Rspamd-Server:X-Rspamd-Queue-Id: X-Stat-Signature:X-Spam-Status:X-Session-Marker:X-Session-ID: DKIM-Signature:X-HE-Tag:X-HE-Meta; bh=ZuyZA80OhXsTCt9eMx+qhWTC4yMPIt4JU/oWRmBa8MY=; b=K1YyZ1ZXNIJY0U0UUSePj7E0nw/8zyNtFktWoOn03KNCqwvS4btMBs+YHQiKkM25flFY qGA8SASi+b1nY+R78qpLL2rm/NUo1HXmuDR3Ls/z5hbDLi2W4FCv+xDFkVjC7VBqkVlk8 IlLS4nWsla5Osaz8nnWo/b0/i/EQvh5UUsGX1YiFrDQDevU4NR/TaWEzuaU2E4cdzqosI +ZGxS2cojpQ0sFJmANVtcTeHknRyJCwryrkg9DyJO8V1WE2W0onacKvPyfurHudM7Bggg IsRLu/3PyBvKcyjUICZozRIypPYYdQXY+yqRz3wBUosqsmFjHm1L1o0hGUs+pOIQJgw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=goodmis.org; spf=pass smtp.mailfrom=goodmis.org; dkim=pass header.d=goodmis.org header.i=@goodmis.org header.a=rsa-sha256 header.s=dkim1 header.b=CoEvBoFU; arc=none smtp.remote-ip=216.40.44.16 X-Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) (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 F30D5606A31B; Thu, 5 Nov 2026 14:12:22 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F30D5606A31B X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=goodmis.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=goodmis.org X-Received: from omf12.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 8CC92C0A0F; Thu, 5 Nov 2026 14:12:20 +0000 (UTC) X-Received: from [HIDDEN] (Authenticated sender: rostedt@goodmis.org) by omf12.hostedemail.com (Postfix) with ESMTPA id A0FA617; Thu, 5 Nov 2026 14:12:17 +0000 (UTC) X-Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Masami Hiramatsu <mhiramat@kernel.org>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Ilya Maximets <i.maximets@ovn.org>, Matthieu Baerts <matttbe@kernel.org>, Aaron Conole <aconole@redhat.com>, Eelco Chaudron <echaudro@redhat.com>, dev@openvswitch.org, Adrian Moreno <amorenoz@redhat.com>, Antoine Tenart <atenart@kernel.org> X-In-Reply-To: <20260922110955.363677-6-johannes@sipsolutions.net> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: A0FA617 X-Stat-Signature: 9993ajdnkirqqfjgyiomy5txnkn16gat X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Session-ID: U2FsdGVkX191ERUTatcYnoDmb5aynzKQhqeeWSoD2RY= X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=goodmis.org; h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=dkim1; bh=ZuyZA80OhXsTCt9eMx+qhWTC4yMPIt4JU/oWRmBa8MY=; b=CoEvBoFUueQ3s0mIEHKt46mqrflONFVjmmGg+zX6vv/BfOfO8LdoAL4s3r2saFOQLG8D6fxNi2pc9U6aBgQLyEKkxyzMEdmBOQXPfwVBsTMLwAOnnNGceL5vlHEToRsYXZD99dUWQWA6MpjLsDzYG0fOcodpoy7/lnnfQWybRpo= X-HE-Tag: 1793887937-685124 X-HE-Meta: U2FsdGVkX1/3Wbpykymbkbb57VjYh0s2galJtG36rRIQW8TFwF+7E1IJjuw5NQAe25/iGWZNNQkyWT+a8422ISmZr96XK0nrAaQEFQ31qsZFoK0bMu8VBRYn6VvL73Iw7iM4mAs1x7vNeYUjyjDL3c/1373Vt3UVfuGBr/aheInp1BwjeQU4qskhLGjIZGxpuN+otXBJyaLAJMwU6vzQo+EBFJb7W1XoOglfKzxERKt0tKBVJ/xeoz5nURvKfDVGujYLXLVXYpN//WLEhk/vitnw4QDZ/T+mJ5xxRO8fWuMWQYYJurNrpktl9UUR14fwSJm2i229vjqGi5htXXN/jNCATliHKrTLZR9dxCLPnqYqpd0721dllAu7XYl6dDQKXFCyDNzz0Bkbs5xaOdHP9A==