Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp48046iog; Tue, 14 Jun 2022 18:40:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDNWa+E+GqIPgzAE8f1J1LkdPfRDQCZydBDY19p0d15bOwdzfBsOkoJVCvXGFMd7y4130m X-Received: by 2002:a63:894a:0:b0:3fc:a724:578c with SMTP id v71-20020a63894a000000b003fca724578cmr6903207pgd.499.1655257230578; Tue, 14 Jun 2022 18:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655257230; cv=none; d=google.com; s=arc-20160816; b=LLvA+dc8L8FDs1HXMYE1/uhklncPNMMWAjsPVRtEpuGmGmWsRtEW97fWt0dTphcaTu UaK8JJczjl9bf+Bx7TkIpS0pvhvqo93cuo8iJox1g2OYSc9LfHJPbVxBwyNRxebunfbd apnzzmCvYBVcG5TQ1nubZTH1SE/bUUXDvT0vShstLdI+S6VvqP1dErAgq0EJ2CrEtkkk CfrjAgXygKyMtMXVeSu7zfZXl8CeiK/842cMr5LlFmY13vavHlIzj3LusGMccKJ/vPj7 oFx0c2bjmh4AK/CJWsPUxXTfECSeH9huEJQGmpbXRx/4yS/IaVYXrS1N3BP5Rp+xkVAC w0zw== 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=tN0GLrpbYXvxYrTXmmOQYcrfrPqC7A8Ul0Mb9zbk1eo=; b=l+HCZlHVt5MWXPcQfZBX/TFsTyXYCHr4O53/nJrdpb8AUS5nlJKm0/XS2xmXuT+H99 M8liiqWHTYaFg2EpsAj52zNe5iq66bHECno1/PrYswID63ZfB9/akUzArXz3zxigg1PM +5LQLaNoMDppmoyTS1/bqzVNA2ADtbFrnNrhJCrD67oXvEeHHN/9V1kS3kXWxmHzz+Of 7J5pjS/NDt9Z1Cn9p/dQ5P9n2/qzQPa3UJwFr2zb+NP+qTf5AMWTyVeVRqfNbwwE4NZw JVvaOyPBjynUkDts4HPnHjaKnD5VMDBxP4MCrsj8EOBsM/ztHk0GHYTa6eeYLyKyuoK+ 6vDA== 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 n2-20020a634d42000000b0040014afa1efsi15897384pgl.337.2022.06.14.18.40.15; Tue, 14 Jun 2022 18:40:30 -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 S235428AbiFOBjE (ORCPT + 99 others); Tue, 14 Jun 2022 21:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240009AbiFOBjB (ORCPT ); Tue, 14 Jun 2022 21:39:01 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 148C02FFDE; Tue, 14 Jun 2022 18:38:54 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LN7D60ZGXzRjXd; Wed, 15 Jun 2022 09:35:34 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 15 Jun 2022 09:38:51 +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; Wed, 15 Jun 2022 09:38:50 +0800 Subject: Re: [RFC 01/13] perf kwork: New tool To: Namhyung Kim CC: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , linux-kernel , linux-perf-users References: <20220613094605.208401-1-yangjihong1@huawei.com> <20220613094605.208401-2-yangjihong1@huawei.com> From: Yang Jihong Message-ID: Date: Wed, 15 Jun 2022 09:38:50 +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: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.4 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, Namhyung On 2022/6/15 5:43, Namhyung Kim wrote: > Hello, > > On Mon, Jun 13, 2022 at 2:48 AM Yang Jihong wrote: >> >> 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: >> >> # perf kwork -h >> >> Usage: perf kwork [] {record|report|latency|timehist} >> >> -D, --dump-raw-trace dump raw trace in ASCII >> -f, --force don't complain, do it >> -k, --kwork list of kwork to profile (irq, softirq, workqueue etc) >> -v, --verbose be more verbose (show symbol address, etc) >> >> # perf kwork record -- sleep 1 >> [ perf record: Woken up 0 times to write data ] >> [ perf record: Captured and wrote 1.696 MB perf.data ] >> >> # perf kwork report -h >> >> Usage: perf kwork report [] >> >> -C, --cpu list of cpus to profile >> -i, --input input file name >> -n, --name event name to profile >> -s, --sort >> sort by key(s): runtime, max, freq >> -S, --with-summary Show summary with statistics >> --time Time span for analysis (start,stop) >> >> # perf kwork latency -h >> >> Usage: perf kwork latency [] >> >> -C, --cpu list of cpus to profile >> -i, --input input file name >> -n, --name event name to profile >> -s, --sort >> sort by key(s): avg, max, freq >> --time Time span for analysis (start,stop) >> >> # perf kwork timehist -h >> >> Usage: perf kwork timehist [] >> >> -C, --cpu list of cpus to profile >> -g, --call-graph Display call chains if present >> -i, --input input file name >> -k, --vmlinux vmlinux pathname >> -n, --name event name to profile >> --kallsyms >> kallsyms pathname >> --max-stack Maximum number of functions to display backtrace. >> --symfs >> Look for files with symbols relative to this directory >> --time Time span for analysis (start,stop) > > I think you can add this and the documentation when you > actually add the functionality later. > OK, I'll fix in next version. Thanks, Jihong .