Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp459988rwb; Wed, 7 Dec 2022 21:26:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5VPxPXX9zWQ26GOer+R9zwJ8x7moKgC+9LTElVYujM2FSEcHamUaPE9s2HF3WAbGQ1Ja2M X-Received: by 2002:a17:906:fc0d:b0:7c0:d4c7:c00d with SMTP id ov13-20020a170906fc0d00b007c0d4c7c00dmr17757730ejb.345.1670477169156; Wed, 07 Dec 2022 21:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670477169; cv=none; d=google.com; s=arc-20160816; b=kAUR7gtpXZRHbv0UUn4p4CkfGcMLrGQ+hvKrT/U2D08fuEllGUehyXU0PCJyIaofkT DEPYnRTGrOe29hGdfLM4DXx3/74PmGxRPo1hmxTqVj2k8/J+2xbJmU0MHX33TK0AyB/E WKgzcXkMHj6tu61oZv2Y/vk7x+vHwXYrsldOeCHdOULrK6xLWt8YlZ2X4PLAnUzQIHqX aZpv89Y+6qYMToJVR9GWLj0J/deD7KdI3GlZsKhuJ/iLIf2be9XOZJ+tfMj/XmHPQjo3 UYmBFetX8fQCxA152lP4d0XMzAJVlmxc3p2n5p2vqphvTH5NbeP8ORbY2ujtAus6jD0n FkEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=HEABOhd6hdre/A2DrnBe6xPyxAgZ3J92ayUPieX7BSM=; b=DEPxAJrladlgnprBjPW7/YIFPryZovw6+v8fgw1j3SVlz87DhDmqjwsg8Lo+vsfjAI 6nWNJc1zBqfiANRYTBldQxnoSWmNwjtpjp2j/MusJh4l4BpmCCy50HTLFm8SfSLbuEHl TVpiXpNzkQcNWHQkFPDppAMiNlt+LF3cKywyCdRpxjNR4tqG+14sp2+rxdk9Jv96V+sc +DsuZ1pxwqszyGKRut1N73XxQXNj9UbTJPofYRW4tMa0dp3MyYk/7ZKaH16StSFMyTpQ Jdi+wVGy48jJ/0TwVGXeZDSO6DrG+ZHUHyhGkRFczCpvsgGTAaum2wDsjv39wJq4uvia I5VA== 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=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 qb26-20020a1709077e9a00b007ae3f78c8d5si16662084ejc.787.2022.12.07.21.25.51; Wed, 07 Dec 2022 21:26:09 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbiLHE7a (ORCPT + 73 others); Wed, 7 Dec 2022 23:59:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbiLHE72 (ORCPT ); Wed, 7 Dec 2022 23:59:28 -0500 Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 561588C6A0 for ; Wed, 7 Dec 2022 20:59:27 -0800 (PST) Received: by mail-io1-f48.google.com with SMTP id p6so130071iod.13 for ; Wed, 07 Dec 2022 20:59:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HEABOhd6hdre/A2DrnBe6xPyxAgZ3J92ayUPieX7BSM=; b=JssevVea5i8jS+l86dT7ED0xxRmp4xv+sewRNcKYa6cJNVUeqbWYCXZhkD45jRmvKG 4A1Ccj0rrOm1lyZOBE3U4H4QDhrqjtL6Aq3Ay8aPCSHrv3Q3Mdn6bJhHramL19tRMk5G dwHJQEsYay/XckRVXY0BB0onN3M5O7zCmQz2DmDG62JkCY+cbvCgmYWvjgeFdG/kpTF0 vU8cjHoxitNvPDH+mqtWQ38ToSnRDwE85w47DD/tA/pYO69y6yqaoefM4Ct9l6lxsPxn sGkl1QkKa7GE8oMleSC+SVTBDJd2PlHBJhkdS5zhQ/546WAbjGu8vhRg83u0Iou0yO54 BsDw== X-Gm-Message-State: ANoB5plze4lctocUFVsxuhTG25WjvtjoLq1CIbUBrq/m2XunjgZNTpPt iyxW3t77ZjbND6L/ppseu5uzf4lQGC9yRnuwhzlJHSSV X-Received: by 2002:a5d:87c8:0:b0:6e0:1ddd:7da6 with SMTP id q8-20020a5d87c8000000b006e01ddd7da6mr5899313ios.145.1670475566492; Wed, 07 Dec 2022 20:59:26 -0800 (PST) MIME-Version: 1.0 References: <20221206154406.41941-1-petar.gligor@gmail.com> In-Reply-To: From: Namhyung Kim Date: Wed, 7 Dec 2022 20:59:15 -0800 Message-ID: Subject: Re: [PATCH v2 0/3] perf: introduce perf based task analyzer To: Petar Gligoric Cc: linux-kernel@vger.kernel.org, Petar Gligoric , Arnaldo Carvalho de Melo , Andi Kleen , Jiri Olsa , Ian Rogers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Tue, Dec 6, 2022 at 2:21 PM Petar Gligoric wrote: > > On Tue, Dec 06, 2022 at 10:32:35AM -0800, Namhyung Kim wrote: > > Hello, > > > > Have you looked at 'perf sched timehist' ? > > I think it has the common functionality and can be easily extended if there's > > missing one. > > > > Thanks, > > Namhyung > > > > Thanks for the input! For this patchset we explicitly decided against > extending "perf sched timehist" - after some pros and cons. Mainly we > didn't want to break existing programs (which might parse the output of > perf sched) and also the goal of the task-analyzer is a bit different. > E.g what will follow as a follow-up patch, is to show IRQs visually > pleasing intermixed with tasks to show potential sources of task > latency. This will be offered as an option for the task-analyzer, but > would be too much functionality for "perf sched timehist". This was the > main reason why we decided against the extension. Then you might want to add a new sub-command under perf sched. But I guess we can just add a new option for the different output format in the perf sched timehist. Anyway, "perf script" is a generic tool not targeting specific events. This functionality requires sched_switch (and more?) then we need the record part to make sure the data has the events. That's why it's natural to have it in perf sched IMHO. Thanks, Namhyung