Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp141650lqo; Thu, 9 May 2024 15:33:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhAJ0kv8B13Pa9qUnsgv53G78hHk375gldDIyqgbiulqYnpPB575K8Gh1WYnZD3o9vBUVdtkIbmzy/kyAOldC02rOUWpmYC9y/t/cTIQ== X-Google-Smtp-Source: AGHT+IFJKAoVUZ+ZZsSIIjoUxoIJH+tw/HEo60+q0CrE9igHIGTSAjp+HT9yEYBnYlp3j2p4Dcer X-Received: by 2002:ac8:5fd2:0:b0:43d:f71d:98cf with SMTP id d75a77b69052e-43dfda9494emr9802071cf.11.1715294030689; Thu, 09 May 2024 15:33:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715294030; cv=pass; d=google.com; s=arc-20160816; b=JxHszj0SCX9QIpxCUG1hXMB06vscg15wIP+waNWRGqFkE3X7oGWgvmB2scW4yJFSSr o+9O2mG13YoabB6tKp5bMwwiI40092q0W5C136b9eYQWuybhr/WCZGgQXV6YQY396tAE Va5m/HQCTlOLWS15cOoHS1BbJ0wQoBVzW7J87WmP66Oh//LQEGi9hRUsQMcyzhVN/iP1 qanbNGyAQ5o5FQRwX9N/lAGGRfTgX7JcOF7kbe6zvAfd7rpmhajpkqLsCibW8w53VPjJ D8Y5FGj/0782MdVmMVyC9mUkuoUXb2xftAApVmhSFK/x8jgqY1ncEYsW6Q3PnRlxCL+N tslQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=xQMYI/Us6+hzUkBBoGt7mILopno4K42cldFrLm7Ole8=; fh=6M0LfXkE+85MeYMWAyFPVZax5R9d5jt/2wftGtcmisQ=; b=AjDHhbZafuwo/N2is1kxRdPARFSio3IWypxkzaFsmnKUiQ3lVa7gtomjnLjs8J/Pq1 lynzftl05sjdfngAKDrmxmTrOo77CQp79tw9h236WKDZq0M1NGcuoccAFk9ksZPqETpj NJbjJP36uiFO+bKVTJmZGZaiSRsK/Fp3qn2mlWvHPbHOMVt8t3ipS+AE+dWs7itkSy6t TA2OotDkZvn58LaMokVBcOeVPiqqHF2QvGnbJ+4uSqt0iXCes64CYVmuTFNk+nd093cO zTHLErFwQrwqXsNfvrMFxbM00MUoD9emYZikEzYwiiuI8m8AeVQTsRmnheUMtWujhU/Z OKlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-175036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df56f6a3fsi21644541cf.797.2024.05.09.15.33.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:33:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-175036-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175036-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6C9981C21F11 for ; Thu, 9 May 2024 22:33:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3752E12D1E0; Thu, 9 May 2024 22:33:43 +0000 (UTC) Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62C5410A0D; Thu, 9 May 2024 22:33:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715294022; cv=none; b=kdVmsHXF9huohJ1M2IKz5TiHVMDRc6CoCBWsY3JYgl9zLXGKCHEdNlsPiiGrxGiWwNQzqjzER4720xENqEZUDpTM2PEPasJ+EcZwIQk30bmElfW9t/GtyaNPduZDNfG7/vj3/2R0GRpEk62BH9P/gbshwOzNluNImggYv3tfTY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715294022; c=relaxed/simple; bh=uiPN+A9TYk8sL9k0FkSt+zGzCf+75RAq93wpeE8+KT0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=awtsOXWHxhQ/LDztlynYMU7Xffy9ZQaC7gj8PoURYRXQhSaqZaqwbAZn3uaEn4/ZyZpi8wPUFFegZOH4NGdiDS2mq4HMxTGNfK6xvteCWw8hdk/3xc+v7qrMrlVetDAkVWe2lDioPIYvdbZyQY73EMTW7J16cQGocX0wp7k+2ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5ca29c131ebso1015409a12.0; Thu, 09 May 2024 15:33:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715294020; x=1715898820; h=content-transfer-encoding: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=xQMYI/Us6+hzUkBBoGt7mILopno4K42cldFrLm7Ole8=; b=pFYOLDmd1ricNiWNo26/joyBO2LUzQtY2GCyXUBsxRCfnUzUuYZJYZ0HcnJEeUAA9f 7JeL4kyjwobXVChsKojX8x6HIXFJsZ06S7ALj5LGzzOQ/6nTxtOXtBmVkM/kNgfQ0ljK X9sbL8ZdYeQOPAfL48sRwKO1pnWSibwj3QnlabyoRnj5qhCaMgGC5ShzStBLb4nDzR43 Z9Jh9i/wjxG/Nuci6RVeXyOoYhLqhigGaOy/CBmBmom6xydtbqIb/GAm50FbpIUdu4n2 HQY19BXBK+4+CaOuRCIupVg2Z2dvnTXGpHhOjZIFCVuCmjmCusNbJzAibWjI5+hZ1MwI k/tg== X-Forwarded-Encrypted: i=1; AJvYcCUULjslJO9VeG8btMwmxUBG30yKFa7VWhc6D/8QkqO8KzaF6piDOuAUtNSgSad/vzYG0+zerU0gJKQZcvD4hff3u3dAbwRfafqPi6dnCsIeE5Cf58L/6ap0ruvLofG4+ShLTu2A+ZOV+p/t9zXp8w== X-Gm-Message-State: AOJu0YzpFQywWa4uQ6HzOdDtF3IpSW1ryfwUSs26zUEv31ipnMFH1EvV u2HmdCye1+Jrm26EgbFuQTTO+WKG9776imf52ZD0L6mlBHMwXAmNYsMFuYf+2jORj4xddTn12fb dFF1jsFbokqr/5a/sInmM4tiDgng= X-Received: by 2002:a17:90b:11d4:b0:2b4:3659:8709 with SMTP id 98e67ed59e1d1-2b6ccc72f69mr976802a91.34.1715294020419; Thu, 09 May 2024 15:33:40 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240508060427.417-1-ravi.bangoria@amd.com> <0689aa59-426e-2f37-dcc4-d79b1e89403c@amd.com> In-Reply-To: <0689aa59-426e-2f37-dcc4-d79b1e89403c@amd.com> From: Namhyung Kim Date: Thu, 9 May 2024 15:33:29 -0700 Message-ID: Subject: Re: [RFC 0/4] perf sched: Introduce schedstat tool To: Ravi Bangoria Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, irogers@google.com, swapnil.sapkal@amd.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, rostedt@goodmis.org, vincent.guittot@linaro.org, bristot@redhat.com, adrian.hunter@intel.com, james.clark@arm.com, kan.liang@linux.intel.com, gautham.shenoy@amd.com, kprateek.nayak@amd.com, juri.lelli@redhat.com, yangjihong@bytedance.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, santosh.shukla@amd.com, ananth.narayan@amd.com, sandipan.das@amd.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 8, 2024 at 11:02=E2=80=AFPM Ravi Bangoria wrote: > > >> USAGE > >> ----- > >> > >> # perf sched schedstat record > >> # perf sched schedstat report > > > > Hmm. I think we can remove the duplication in 'sched'. :) > > You mean `perf sched stat record/report` ? > > > Given you are thinking of taskstat, how about making it > > 'cpustat' instead? > > Sure. How about: > > # perf sched stat --cpu --task record If you plan to support both cpu and task at the same time, then I'm ok with this. But if they're mutually exclusive, then probably you want to have them as sub-commands. Thanks, Namhyung > # perf sched stat report > > > Also I think it'd be easier if you also provide 'live' mode so that > > users can skip record + report steps and run the workload > > directly like uftrace does. :) > > > > Something like this > > > > # perf sched cpustat myworkload > > (result here ...) > > Sure. > > Thanks for the feedback, > Ravi