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 61976C4332F for ; Thu, 8 Dec 2022 18:34:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230045AbiLHSek (ORCPT ); Thu, 8 Dec 2022 13:34:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbiLHSeU (ORCPT ); Thu, 8 Dec 2022 13:34:20 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7058998E9E for ; Thu, 8 Dec 2022 10:33:53 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 4E62918838AC; Thu, 8 Dec 2022 18:33:50 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id 3C87725002E1; Thu, 8 Dec 2022 18:33:50 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id 2F1F19EC0021; Thu, 8 Dec 2022 18:33:50 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Thu, 08 Dec 2022 19:33:50 +0100 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: Saeed Mahameed , netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH net-next 2/3] net: dsa: mv88e6xxx: replace ATU violation prints with trace points In-Reply-To: <20221208144901.tgdhp73n7g5uh7qj@skbuf> References: <20221207233954.3619276-1-vladimir.oltean@nxp.com> <20221207233954.3619276-3-vladimir.oltean@nxp.com> <20221208144901.tgdhp73n7g5uh7qj@skbuf> User-Agent: Gigahost Webmail Message-ID: <9e58ec7e00a4432b1c72df300f9d0222@kapio-technology.com> X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 2022-12-08 15:49, Vladimir Oltean wrote: > On Wed, Dec 07, 2022 at 04:14:16PM -0800, Saeed Mahameed wrote: >> > if (val & MV88E6XXX_G1_ATU_OP_AGE_OUT_VIOLATION) { >> > - dev_err_ratelimited(chip->dev, >> > - "ATU age out violation for %pM fid %u\n", >> > - entry.mac, fid); >> > + trace_mv88e6xxx_atu_age_out_violation(chip->dev, spid, >> > + entry.mac, fid); >> >> no stats here? tracepoints are disabled by default and this event will >> go >> unnoticed, users usually monitor light weight indicators such as >> stats, then >> turn on tracepoints to see what's actually happening.. > > I believe that the ATU age out violation handler is dead code > currently. > The driver does not enable the MV88E6XXX_PORT_ASSOC_VECTOR_INT_AGE_OUT > bit > (interrupt on age out). > > I just converted the existing debugging prints to trace points. Open to > more suggestions, but I believe that if I introduce a counter, it would > always return 0. If I am not mistaken, I will have to wait for your patch set to be accepted before I can send the next version of the MAB patch set.