Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753183AbcLFLQO (ORCPT ); Tue, 6 Dec 2016 06:16:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47882 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752603AbcLFLQM (ORCPT ); Tue, 6 Dec 2016 06:16:12 -0500 Date: Tue, 6 Dec 2016 12:16:08 +0100 From: Jiri Olsa To: kan.liang@intel.com Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, tglx@linutronix.de, namhyung@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, wangnan0@huawei.com, mark.rutland@arm.com, andi@firstfloor.org Subject: Re: [PATCH V2 07/13] perf tools: handle PERF_RECORD_OVERHEAD record type Message-ID: <20161206111608.GA7730@krava> References: <1480713561-6617-1-git-send-email-kan.liang@intel.com> <1480713561-6617-8-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1480713561-6617-8-git-send-email-kan.liang@intel.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 06 Dec 2016 11:16:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1576 Lines: 33 On Fri, Dec 02, 2016 at 04:19:15PM -0500, kan.liang@intel.com wrote: > From: Kan Liang > > The infrastructure to handle PERF_RECORD_OVERHEAD record type. > A new perf report option is introduced as a knob to show the profiling > overhead information. The option also forces tty output. > > The overhead information is auxillary information, so it should be > possible to access it together with normal sampling information in a > single output file. But the overhead is overall profiling time cost, not > per-sample/event profiling time cost. Making overhead a standard sort > key could confuse the normal samples. > So the information is printed separately in the head of the output. > > Signed-off-by: Kan Liang > --- > tools/perf/Documentation/perf-report.txt | 3 +++ > tools/perf/builtin-report.c | 16 +++++++++++++++- > tools/perf/util/event.c | 9 +++++++++ > tools/perf/util/event.h | 11 +++++++++++ > tools/perf/util/evlist.c | 6 ++++++ > tools/perf/util/evlist.h | 1 + > tools/perf/util/machine.c | 10 ++++++++++ > tools/perf/util/machine.h | 3 +++ > tools/perf/util/session.c | 21 +++++++++++++++++++++ > tools/perf/util/session.h | 3 +++ > tools/perf/util/symbol.h | 3 ++- > tools/perf/util/tool.h | 1 + > 12 files changed, 85 insertions(+), 2 deletions(-) I think also perf inject needs repipe this overhead handler jirka