From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABAC5C7EE21 for ; Wed, 26 Apr 2023 19:47:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233537AbjDZTrZ (ORCPT ); Wed, 26 Apr 2023 15:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233980AbjDZTrV (ORCPT ); Wed, 26 Apr 2023 15:47:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B1A2D49 for ; Wed, 26 Apr 2023 12:47:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5CC9C63889 for ; Wed, 26 Apr 2023 19:47:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94967C433D2; Wed, 26 Apr 2023 19:47:15 +0000 (UTC) Date: Wed, 26 Apr 2023 15:47:13 -0400 From: Steven Rostedt To: Vladimir Oltean Cc: Andrew Lunn , Florian Fainelli , Masami Hiramatsu , netdev@vger.kernel.org, Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni Subject: Re: [PATCH net-next 0/2] DSA trace events Message-ID: <20230426154713.6706865f@gandalf.local.home> In-Reply-To: <20230426194301.mtw2d5ooi3ywtxad@skbuf> References: <20230407141451.133048-1-vladimir.oltean@nxp.com> <20230412095534.dh2iitmi3j5i74sv@skbuf> <20230421213850.5ca0b347e99831e534b79fe7@kernel.org> <20230421124708.tznoutsymiirqja2@skbuf> <20230424182554.642bc0fc@rorschach.local.home> <20230426191336.kucul56wa4p7topa@skbuf> <20230426152345.327a429d@gandalf.local.home> <20230426194301.mtw2d5ooi3ywtxad@skbuf> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 26 Apr 2023 22:43:01 +0300 Vladimir Oltean wrote: > Instead of living in fear that this might happen, I think what would be > the most productive thing to do would be to just create a proper API in > the next kernel development cycle to expose just that information, and > point other people to that other API, and keep the trace events just for > debugging. I also want to add that if a tool does use a trace event that was not your intention, you can then fix the tool to do it properly. I had this with powertop. It had hardcoded events (did not use libtraceevent) and when I modified the layout, it broke, and Linus reverted my changes. After fixing powertop to do things properly, I was able to get my changes back in. So even if you do break user space, you can still fix it later. -- Steve