Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5362820iog; Wed, 22 Jun 2022 18:29:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t8cdIPGcXwFYczjPqqpQgIlOip86M8n+RvWnH+F2TOkopOlPBsQWMER00RGVfyl7HRyHEf X-Received: by 2002:aa7:c801:0:b0:435:5a08:f54c with SMTP id a1-20020aa7c801000000b004355a08f54cmr7769986edt.254.1655947743535; Wed, 22 Jun 2022 18:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655947743; cv=none; d=google.com; s=arc-20160816; b=GLUC52VrHpZVAcqotm46W0J9VljIgxE9usfpsEBDTe5oL3TrCSkpOJIaswBCYcfoz5 fUsiPt8MzXHRyKSvz7k2tVBxghEQnaVbZwzk8r0JuF59/3pnrEgog8D4Jy2RksRltVy2 FdRtza9pE+YErTGbsS12Yfgqa+UyVFThFf4Fj09Gm3fdomidSqHH8G9fTXYtzHwL3i3t p2EOfg+TZhl6X/CQzny3/hbMRoO8YHpuso+zTHMmx92ZbkypuvM0nsoLPoKQL5/xvXrX 2GEHZosRRXGkKDyYRzvZmpZlYyeVHsf+ZILwSMZH8d8r44lOALEHHIjqfzXLCmOmoG5l eRqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=/heUiOV8+8KZx0pY6bkbAAIFZlAb3m+OzNGaSHVraz0=; b=UZy4FYDZR4bU6PQpN38s2D0VLnZP5QPxb/BqmLoQ4jSOd3Oz42L9MncKKQ5XwZVJWL /JPIvLI49s3RBkGjfwhi6Qb0poikuQ7B98TjgbLDVf9ykoisDUoWXQJdcJWMJ+Gf9hmI 4lQicq7Tdj0WUdi2P3TJoSuVgN8eRKZdRMPjG60sQEaoVrfy7T9qwjyKTM7iB8umyhTD 3+T8csiKG7a25TJSt/DzpeEzj9+bajPZuzF73M6MlxZ6DDZ9SeSXqgEQe8ThYmOfdUoc a/hnDnOGEmSSJLNnXTBSkhW5JTqS7yT7B73Y8g295uXzlMDLQraQ6w5xZpwABGfoYhpa tZMg== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a1709067a5500b00718d0985aa0si12759190ejo.247.2022.06.22.18.28.39; Wed, 22 Jun 2022 18:29:03 -0700 (PDT) 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377146AbiFWBCv (ORCPT + 99 others); Wed, 22 Jun 2022 21:02:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231239AbiFWBCt (ORCPT ); Wed, 22 Jun 2022 21:02:49 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2606C427C3; Wed, 22 Jun 2022 18:02:48 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LT25907pCzkWZJ; Thu, 23 Jun 2022 09:01:33 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:02:46 +0800 Received: from [10.67.111.205] (10.67.111.205) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 23 Jun 2022 09:02:45 +0800 Subject: Re: [RFC 00/13] perf: Add perf kwork To: "Paul A. Clarke" CC: , , , , , , , , References: <20220613094605.208401-1-yangjihong1@huawei.com> From: Yang Jihong Message-ID: <3cccc03a-c2bc-91d9-60b9-daf180c6b108@huawei.com> Date: Thu, 23 Jun 2022 09:02:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello, On 2022/6/22 22:59, Paul A. Clarke wrote: > On Mon, Jun 13, 2022 at 05:45:52PM +0800, Yang Jihong wrote: >> Sometimes, we need to analyze time properties of kernel work such as irq, >> softirq, and workqueue, such as delay and running time of specific interrupts. >> Currently, these events have kernel tracepoints, but perf tool does not >> directly analyze the delay of these events >> >> The perf-kwork tool is used to trace time properties of kernel work >> (such as irq, softirq, and workqueue), including runtime, latency, >> and timehist, using the infrastructure in the perf tools to allow >> tracing extra targets >> >> test case: >> >> # perf kwork report >> >> Kwork Name | Cpu | Total Runtime | Frequency | Max runtime | Max runtime start | Max runtime end | >> --------------------------------------------------------------------------------------------------------------------------- >> (s)RCU:9 | 0007 | 3.488 ms | 1258 | 0.145 ms | 3398384.220013 s | 3398384.220157 s | >> (s)NET_RX:3 | 0003 | 1.866 ms | 156 | 0.042 ms | 3398385.629764 s | 3398385.629806 s | >> (s)TIMER:1 | 0000 | 1.799 ms | 117 | 0.055 ms | 3398385.568033 s | 3398385.568088 s | >> (w)0xffff9c66e563ee98 | 0006 | 1.561 ms | 5 | 0.351 ms | 3398384.060021 s | 3398384.060371 s | > > What units are used for "Frequency"? It would be helpful to include somewhere. This refers to the number of event in the trace period. Thanks, Jihong > > PC > . >