Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp143430rwb; Wed, 7 Dec 2022 15:47:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RHW/UNjNQSlhWpTv1ZweAkQwAy3TYQ7z+4nFkjJtOtKr52Uft8aS+2uLfkJu7t9SpJbmC X-Received: by 2002:a05:6a00:3385:b0:56c:309:b900 with SMTP id cm5-20020a056a00338500b0056c0309b900mr74789100pfb.21.1670456868556; Wed, 07 Dec 2022 15:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670456868; cv=none; d=google.com; s=arc-20160816; b=mAD4mGlNhdaJOQgcKqhspJM/l7AHKMuxjQ6zkb0DUsqCauKTXz3D98fSYyFjylXZj5 qU2g1pFmOGtC9ez6CLkLDlg4sOzpOY4i8QiGFGW42YlGBT8X0G80C280J56ASkJhafao t1UBhh15VWJv99v24NcmzAGyUiLNuP51R23i0dg02TJlSoor+oyzgakVk5YT5LPeXDrS IwziELq/u5kYRjOhvAWwCdYpDMQ+OT0R2CfR/tep9Oruxs4S6NAu7THGgmjLtOvx1bRN Ilx7nkhHotdljAlqjUHTFq2dKfSM5XsheH2Qx2E95XpMlYpwwIN4JafCyU3fRTdEHmA4 S30w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=HeY9NpHdPFeMQ838cyuSXW3KbmgeYCggICulE7Ka4M4=; b=hae1GH+TQhYtXVszmlvUS5RbNAe+7ucQFqQPD3fnmc5U9orWJCaLeU9Bv2SwCcwppS vGYR4LecFdqjOHcGB6yrchLiRPJAV+b/cuzLZJfhwe0kI4wN5fj4Co9OjH9hUGnqh5Rp oSnAcR8e5h9iGf6/2wnTrNMogh31Tuy8eLJpmRci4pvGO2P1kscALPMToXMs8Q8VrNv2 m5sGm0kI4D1b1iMuHIhEJr43/PkuDlWV/+jYyHons+X0L8iWctMspcG7Xf3uR2iU7f5Q GjAcmR02vJ55ORHGswk8Bpv5N7iCdu7/XBC7QMLng7UYdIK8lsHtTr5KT5T0zzPF9oVZ UVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sJlnj21T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a056a00114700b005755037772fsi23128965pfm.74.2022.12.07.15.47.38; Wed, 07 Dec 2022 15:47:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sJlnj21T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbiLGXdB (ORCPT + 74 others); Wed, 7 Dec 2022 18:33:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiLGXc7 (ORCPT ); Wed, 7 Dec 2022 18:32:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 138114A06E; Wed, 7 Dec 2022 15:32:59 -0800 (PST) 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 9F8F661CC3; Wed, 7 Dec 2022 23:32:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 985E0C433D7; Wed, 7 Dec 2022 23:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670455978; bh=9V/tSj1MC6haUX53CF4MlWlMbZ+0XTqLnjv/nyTLL8k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sJlnj21TtG54j5DG8cjvXLBtINBst4m1ZaqvJpLF56n6b3JG2EfsC/daKoGk6Pvun IjuN2XscB7twKTDl5Pid1opkH5o7N9GP437h0AyFsAgHCfnMnLL4AjCCM1FGbHAvNP BIlV1LDUdbdjqXGbV+6+rKDxMGgrYYN9QEC8OUg5v2i+g6IRc0LBCjy5/LQY8yq5aX j24IGjQfPbcK7MUfyA+F+Ih1cZ1+xZ0sEWb6ukNu6o77V3dz3xEm7ZUii7nmAt76bl q2/GLEXTYNIICeO3uBTMhcZ0wBGvJzb7fXIP4qKyImCErSDSGWmIlSIW+pH0U8a59r kJ17tArTMU7pw== Date: Wed, 7 Dec 2022 15:32:56 -0800 From: Jakub Kicinski To: Cc: , , , , , , , , , , , Subject: Re: [PATCH linux-next] net: record times of netdev_budget exhausted Message-ID: <20221207153256.6c0ec51a@kernel.org> In-Reply-To: <202212072030084707211@zte.com.cn> References: <202212072030084707211@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Dec 2022 20:30:08 +0800 (CST) yang.yang29@zte.com.cn wrote: > > Presumably, modern tracing techniques can let you do what you want > > without adding new counters. > > By the way, should we add a tracepoint likes trace_napi_poll() to make > it easier? Something likes: > if (unlikely(budget <= 0 || > time_after_eq(jiffies, time_limit))) { > sd->time_squeeze++; > + trace_napi_poll(budget, jiffies, time_limit); > break; > } In my experience - no this is not useful. Sorry if this is too direct, but it seems to me like you're trying hard to find something useful to do in this area without a clear use case. We have coding tasks which would definitely be useful and which nobody has time to accomplish. Please ask if you're trying to find something to do.