Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3608204pxy; Mon, 26 Apr 2021 05:54:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywjw27mnYYY5EN0XH+LIz5wJnHxtGi7sKxw/SnUZUWzkbtFzhDRFoaYL7qxMCeWhxRRLq1 X-Received: by 2002:a17:90b:4c8b:: with SMTP id my11mr6762706pjb.201.1619441665420; Mon, 26 Apr 2021 05:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619441665; cv=none; d=google.com; s=arc-20160816; b=CjHw/zH+FX54r2wpBfg+E7MAoYVLUZPzSJsQZPp3wPNiSJiy03XfpOA7TJi6lMtTCL sd91Nz/P5RL1R0ZM8IuUbsSZeac3UtfhHAKFsn64TtQ4neE2wu2lh9KBKXDzhd5vIioG S1+L4LYAHXF0ZLXuD1gsMxm7IvtCYp+FsltH4rDC8tH/ZirpIUpz1rFFVE3YIIhLcqnb liZc9EEUfQ2xCiYQeWlgQAVMS40JbXb9vuwSoO0BykRZtJAgYBhasfmgZ6UI2sZReeXf BfKdCtu057NhIvN5CZo7AVO7d3GzeF8CbL9L1hYHEtiycBqHBro6Iexhyz4PWCUuZLm5 CB5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XCq6PFwGCF9mv3OwGvWiLrggYuF4vPBhfbSUvb+unK4=; b=sspt0Kc9iYWboxMiBKfxFEpTvA0ZBilAP0lxhtSVs5nRBpvAr9OzLBynP8/981NtI2 nwTgY1JY+w+yA7Jk9XS0Ujx31TnRI5xnE5tLWpv0yG91esFpZKNaal/8Zcy1oWTShy5O WHq5JjprNfzaLETju9OY4YJ+c/cg6JmSU+vWweF8c/U/0l5utJ7ByhmZnXBHATeB1s7q MxfkWs0kTGmpbMium349ateAQLbZpJ1usJSTR/a3aAvvJd8AICr8Br8AUKRBKOOLa5Qf d77mC8Rp9U82gQ6/R0E+kmJ5sNp5TD7chJJF56l+kHkesnQCEquvIJArZFGn6tvlwtkc 7iiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PK9WGFts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si6678703pjz.86.2021.04.26.05.54.13; Mon, 26 Apr 2021 05:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PK9WGFts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233571AbhDZMyO (ORCPT + 99 others); Mon, 26 Apr 2021 08:54:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:34816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233506AbhDZMyD (ORCPT ); Mon, 26 Apr 2021 08:54:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B404F6101C; Mon, 26 Apr 2021 12:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619441601; bh=XP6V8WLfk/IYQoiDyR+sBWHoz1XSEonoi2ElBSLzOiQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PK9WGFtsvPdFRa4NWm3H1olA57WQGtdSXd6JX6aijtAdDDGbuIOaIBn4E21I3w4tV dwrDfdXcs68Vxo9JQ71zr4jfKTOjd/sUX5P4vR505Gleij7m7liXbJN431fzLRHjAg ba2AWvfRAEwkWTS4ipcz+kHpPHJcl/1/jb/Fgxd8Ikl7aGmTXcEX4nNOOy79SFg6HM X+OtZYZBoiES+UNUXeZBkrE74JrbTqyOPtlvW7tm8Ot8DRw6LDZ1lA6F1xHoa9tBLz Xyi1Blw6rUmW5w0jjKkhWXPMRGV24bNkNwtDXUMLQJ+JaU75jpV/XL92GeQqL/r0Ld seee8mmtBH1WQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 0CBDE40647; Mon, 26 Apr 2021 09:53:18 -0300 (-03) Date: Mon, 26 Apr 2021 09:53:17 -0300 From: Arnaldo Carvalho de Melo To: Andi Kleen Cc: Namhyung Kim , Jiri Olsa , Ingo Molnar , Peter Zijlstra , Mark Rutland , Alexander Shishkin , LKML , Ian Rogers Subject: Re: [PATCHSET 0/5] perf report: Make --stat output more compact Message-ID: References: <20210423182813.1472902-1-namhyung@kernel.org> <20210423184647.GN1401198@tassilo.jf.intel.com> <20210423202024.GO1401198@tassilo.jf.intel.com> <20210426043147.GU1401198@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210426043147.GU1401198@tassilo.jf.intel.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sun, Apr 25, 2021 at 09:31:47PM -0700, Andi Kleen escreveu: > > Hmm.. do you want something like this? > > TOTAL events: 20064 > > MMAP events: 239 ( 1.2%) > > COMM events: 1518 ( 7.6%) > > EXIT events: 1 (0.0%) > > FORK events: 1517 (7.6%) > > SAMPLE events: 4015 (20.0%) > > MMAP2 events: 12769 (63.6%) > Yes that's it. > Really shows how inefficient perf is for short measurement > periods. Brainstorming a bit: Yeah, I wonder if we could have a new mode where 'perf daemon' collects the !SAMPLE records and then a 'perf record' would collect just PERF_RECORD_SAMPLEs, and then 'perf report' would merge things up. A perf.data file cap for the 'perf daemon' would mean that when a 'perf report' result looks interesting, one could press a hotkey and generate a complete perf.data file with the !SAMPLE records needed to have it self sufficient. Additionally maybe we could have 'perf daemon' providing a interface to resolve samples, returning unresolved ones for older stuff. wdyt? - Arnaldo