Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp417464imn; Thu, 28 Jul 2022 04:57:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vcvQMiWMSKeW9nvvNbZ2DYU/wJGoYG4ygYmVO5KvPEiC/Er9i5hnbO9Tkp7xah+s3lfrTP X-Received: by 2002:a63:86c2:0:b0:415:cb:e12 with SMTP id x185-20020a6386c2000000b0041500cb0e12mr22818042pgd.144.1659009468946; Thu, 28 Jul 2022 04:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659009468; cv=none; d=google.com; s=arc-20160816; b=b2QVMzeApl1vwp0OJ+/OsLAMZONEatbf9g8HQBvJb+5WvnRYls0qODNJ6FlkC8+mYA z6pQMxkQmPy77TpRKcUmTaLL8V9v+p48uiNIwf+/YVoYL/fxvmVmT1Dadl8C4RHaVC1D 6gsADrFbhGxM61Uh1GpqMjQHNTVAiuOWSyNu2PrWUqThqXk4AGKnRAxOcofvUOfAXEIO Wefj4VSfuA087MkhKSrJc0H4r5FRKT6NghdTLsg4xd49A0QNaY/rtEuIBoocLJE+d8yT A9SNSSCVQf6vZksc/Xty8mwDIVhODS+iCItQiD++jHzUjO+pReoUu819T5DI1Lz1x1yB NmzA== 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=WqviijN41D0RqNpJoVDrvx1pQeuyGzlqn8NczDWAw4w=; b=ho1mm0OJ8UCausZneXS6HXl22dInQtmD/N+o4UUY0AAtvLvHo21iWL0HLpJIIYXW86 mPrUMA7jv4L3Ztt5/rlQMqMs76L7ajztvukYcOx+yD02Z4IS7Et98LOvwXzoSMyGp5jM kjqBsbtZMz0S/7cYGhsDvM9NAy5yqlaBQzS4aYRdVFBXoFvufLB+Sj5qZV5D2Z5aWvXU As417ZwXbxyqP7F/EJOcHYG6XArVOXFwhUR9IozA0DZr0RMnoMp8lbm3hR/XAkZVVIMI Crvj91Ut859rLzbpHe+ylcFLSKB4b+WW9HGwmoux9kkbiL9HgF2Q6O5MbOpDJ2/kD9gd W6hQ== 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 v6-20020a056a00148600b0052af232ccb9si500275pfu.151.2022.07.28.04.57.34; Thu, 28 Jul 2022 04:57:48 -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 S237058AbiG1LtB (ORCPT + 99 others); Thu, 28 Jul 2022 07:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235656AbiG1LtA (ORCPT ); Thu, 28 Jul 2022 07:49:00 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A4CA691ED; Thu, 28 Jul 2022 04:48:57 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Ltpkc2pKQzjXVh; Thu, 28 Jul 2022 19:46:00 +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, 28 Jul 2022 19:48:55 +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, 28 Jul 2022 19:48:54 +0800 Subject: Re: [RFC v3 01/17] perf kwork: New tool To: Namhyung Kim CC: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Paul Clarke" , linux-kernel , linux-perf-users References: <20220709015033.38326-1-yangjihong1@huawei.com> <20220709015033.38326-2-yangjihong1@huawei.com> From: Yang Jihong Message-ID: <289300c6-f822-03de-9a6b-f2352421097b@huawei.com> Date: Thu, 28 Jul 2022 19:48:53 +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: 7bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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 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/7/28 7:33, Namhyung Kim wrote: > Hello, > > On Fri, Jul 8, 2022 at 6:53 PM 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. >> >> This is the first commit to reuse perf_record framework code to >> implement a simple record function, kwork is not supported currently. >> >> Test cases: >> >> # perf >> >> usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS] >> >> The most commonly used perf commands are: >> >> iostat Show I/O performance metrics >> kallsyms Searches running kernel for symbols >> kmem Tool to trace/measure kernel memory properties >> kvm Tool to trace/measure kvm guest os >> kwork Tool to trace/measure kernel work properties (latencies) >> list List all symbolic event types >> lock Analyze lock events >> mem Profile memory accesses >> record Run a command and record its profile into perf.data >> >> See 'perf help COMMAND' for more information on a specific command. >> >> # perf kwork >> >> Usage: perf kwork [] {record} >> >> -D, --dump-raw-trace dump raw trace in ASCII >> -f, --force don't complain, do it >> -k, --kwork list of kwork to profile >> -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.787 MB perf.data ] >> >> Signed-off-by: Yang Jihong >> --- > [SNIP] >> + >> +static int perf_kwork__record(struct perf_kwork *kwork, >> + int argc, const char **argv) >> +{ >> + const char **rec_argv; >> + unsigned int rec_argc, i, j; >> + struct kwork_class *class; >> + >> + const char *const record_args[] = { >> + "record", >> + "-a", >> + "-R", >> + "-m", "1024", >> + "-c", "1", > > Please consider adding '--synth task' to skip costly synthesis > if you don't need user space symbols. > Yes, we don't need user space symbols now, I'll add this option in next fix patch,thanks for your suggestion. Regards, Jihong > . >