Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp748108rwb; Wed, 7 Dec 2022 04:40:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rNq6+AGDMfguavaxi2vLnPXXvoDsiWQDA50VKg4/gw/62FBzH05vTKefdlJwz5u6uBlmh X-Received: by 2002:a17:906:1f56:b0:7ad:f6ef:e6c8 with SMTP id d22-20020a1709061f5600b007adf6efe6c8mr12712510ejk.541.1670416854643; Wed, 07 Dec 2022 04:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670416854; cv=none; d=google.com; s=arc-20160816; b=F/CmEG9piD4P6Z4nxIQ8gSoMxMe+bolvzrSYTOhPz70oQ8L8amM3z4mw5vodhja8Mp Td914clvNq+DmK1kXZILgbmpL0XoyAEigWQplm1zrKzEjzOmCIALyiaGfqjAoRzesv47 KACPRO/nlvkCNF7VvbY4NMdHrCNAjXKIqxq/lTV0vMI5ye21wGV+NXI9NgGDj26gukxw fTklwlkHrRNwsL5FSsEIwJCjpfm33M8FImNYDfcHK+v+4qWHCD9GjlPysXCRsic+FsVT zgbI2ev8KDRFaszocwap27sD5C+c/IX/md3xACqXEurkrIw3RvlOkQMdZZcI69vgiRG4 UPow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:references :in-reply-to:message-id:date; bh=SPzvSFJTYDcyBrtIrvUDbgtu7+ZjeneMjk3P0STL5VQ=; b=g0pdOfHuQGoQC8Ofa0IlEZ4axZq9tN6+CIBonflVit35/u2vj5C9YLZTSuheyREN0t h4XB0gd2YzZdkHyH18y435m8lUGxYhGzrqL/ymb4RNUh75ICsKKt5iUaMIbraGDP9HVc cQsQPpUWW9hf822QzIJmfhgQjJlQvrpTGoVZDbgVjmQt8sWn4to4NPALs2gluS/ftFJb sjtY2zl2l6dJ87KymMVco2cOpoKr/RF+nhBZ9HPYxIOME0bI8wQvPq4a5oFvJhKroURr ra6QE3VdL9fIJs7rNSL8uz0IEY/d0h4IIKDeE6pDRQp/tRDuzw2yGEJ4qmiJ1arn9P8l jf/g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a056402055100b004637e92aa81si4003904edx.355.2022.12.07.04.40.33; Wed, 07 Dec 2022 04:40:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbiLGMaR (ORCPT + 76 others); Wed, 7 Dec 2022 07:30:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiLGMaP (ORCPT ); Wed, 7 Dec 2022 07:30:15 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [183.62.165.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E1772A258; Wed, 7 Dec 2022 04:30:13 -0800 (PST) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4NRxSg5R9hz501Qd; Wed, 7 Dec 2022 20:30:11 +0800 (CST) Received: from szxlzmapp07.zte.com.cn ([10.5.230.251]) by mse-fl1.zte.com.cn with SMTP id 2B7CU4Kp048884; Wed, 7 Dec 2022 20:30:04 +0800 (+08) (envelope-from yang.yang29@zte.com.cn) Received: from mapi (szxlzmapp02[null]) by mapi (Zmail) with MAPI id mid14; Wed, 7 Dec 2022 20:30:08 +0800 (CST) Date: Wed, 7 Dec 2022 20:30:08 +0800 (CST) X-Zmail-TransId: 2b046390875061d2f693 X-Mailer: Zmail v1.0 Message-ID: <202212072030084707211@zte.com.cn> In-Reply-To: References: 20221205184742.0952fc75@kernel.org,202212071527223155626@zte.com.cn,CANn89iKqb64sLT2r+2YrpDyMfZ8T6z2Ygtby-ruVNNYvniaV0g@mail.gmail.com Mime-Version: 1.0 From: To: , Cc: , , , , , , , , , , , Subject: =?UTF-8?B?UmU6IFtQQVRDSCBsaW51eC1uZXh0XSBuZXQ6IHJlY29yZCB0aW1lcyBvZiBuZXRkZXZfYnVkZ2V0IGV4aGF1c3RlZA==?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl1.zte.com.cn 2B7CU4Kp048884 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.251.13.novalocal with ID 63908753.000 by FangMail milter! X-FangMail-Envelope: 1670416211/4NRxSg5R9hz501Qd/63908753.000/10.5.228.132/[10.5.228.132]/mse-fl1.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 63908753.000/4NRxSg5R9hz501Qd X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY 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 > 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; }