From: Robert Richter <robert.richter@amd.com>
To: Namhyung Kim <namhyung@kernel.org>
Cc: <mingo@kernel.org>, <hpa@zytor.com>, <paulus@samba.org>,
<linux-kernel@vger.kernel.org>, <acme@redhat.com>,
<a.p.zijlstra@chello.nl>, <namhyung.kim@lge.com>,
<tglx@linutronix.de>, <namhyung@kernel.org>,
<linux-tip-commits@vger.kernel.org>
Subject: Re: [tip:perf/core] perf hists: Introduce perf_hpp for hist period printing
Date: Wed, 12 Sep 2012 19:26:41 +0200 [thread overview]
Message-ID: <20120912172641.GB29278@erda.amd.com> (raw)
In-Reply-To: <tip-ea251d51d2c7d7233790123227f787c477f567f5@git.kernel.org>
On 09.09.12 01:54:39, tip-bot for Namhyung Kim wrote:
> Commit-ID: ea251d51d2c7d7233790123227f787c477f567f5
> Gitweb: http://git.kernel.org/tip/ea251d51d2c7d7233790123227f787c477f567f5
> Author: Namhyung Kim <namhyung.kim@lge.com>
> AuthorDate: Mon, 3 Sep 2012 11:53:06 +0900
> Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
> CommitDate: Sat, 8 Sep 2012 13:19:44 -0300
>
> perf hists: Introduce perf_hpp for hist period printing
>
> Current hist print functions are messy because it has to consider many
> of command line options and the code doing that is scattered around to
> places. So when someone wants to add an option to manipulate the hist
> output it'd very easy to miss to update all of them in sync. And things
> getting worse as more options/features are added continuously.
>
> So I'd like to refactor them using hpp formats and move common code to
> ui/hist.c in order to make it easy to maintain and to add new features.
>
> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Link: http://lkml.kernel.org/r/1346640790-17197-2-git-send-email-namhyung@kernel.org
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> ---
> tools/perf/Makefile | 2 +
> tools/perf/builtin-diff.c | 1 +
> tools/perf/ui/hist.c | 340 ++++++++++++++++++++++++++++++++++++++++++++
> tools/perf/ui/setup.c | 8 +-
> tools/perf/ui/stdio/hist.c | 238 ++++++-------------------------
> tools/perf/util/hist.h | 37 +++++
> 6 files changed, 426 insertions(+), 200 deletions(-)
This patch breaks perf-record/report that the number of samples can't
be shown in pipe mode:
# perf record -e cycles -aq sleep 1 ; perf report -n --sort comm,dso | sed '/%/q;d' ; \
perf record -e cycles -aq sleep 1 | perf report -n --sort comm,dso | sed '/%/q;d'
99.86% 11804 swapper [kernel.kallsyms]
91.57% swapper [kernel.kallsyms]
^^^^^^
number of samples missing
Moving and changing the code at the same time make the patch
unreviewable. So no clue that's the problem here.
-Robert
--
Advanced Micro Devices, Inc.
Operating System Research Center
next prev parent reply other threads:[~2012-09-12 17:28 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-03 2:53 [PATCHSET RESEND 0/5] perf tools: Cleanup hist printing code (v4) Namhyung Kim
2012-09-03 2:53 ` [PATCH 1/5] perf hists: Introduce perf_hpp for hist period printing Namhyung Kim
2012-09-09 8:54 ` [tip:perf/core] " tip-bot for Namhyung Kim
2012-09-12 17:26 ` Robert Richter [this message]
2012-09-12 18:48 ` Arnaldo Carvalho de Melo
2012-09-13 2:43 ` Namhyung Kim
2012-09-13 3:51 ` Arnaldo Carvalho de Melo
2012-09-13 4:14 ` [PATCH] perf record: Add missing perf_hpp__init for pipe-mode Namhyung Kim
2012-09-13 4:21 ` Namhyung Kim
2012-09-13 9:48 ` Robert Richter
2012-09-19 15:25 ` [tip:perf/core] perf report: " tip-bot for Namhyung Kim
2012-09-03 2:53 ` [PATCH 2/5] perf hists: Handle field separator properly Namhyung Kim
2012-09-09 8:55 ` [tip:perf/core] " tip-bot for Namhyung Kim
2012-09-03 2:53 ` [PATCH 3/5] perf hists: Use perf_hpp__format->width to calculate the column widths Namhyung Kim
2012-09-09 8:56 ` [tip:perf/core] perf hists: Use perf_hpp__format-> width " tip-bot for Namhyung Kim
2012-09-03 2:53 ` [PATCH 4/5] perf ui/browser: Use perf_hpp__format functions Namhyung Kim
2012-09-08 0:32 ` Arnaldo Carvalho de Melo
2012-09-08 14:05 ` Namhyung Kim
2012-09-12 6:25 ` Namhyung Kim
2012-09-09 8:57 ` [tip:perf/core] perf hists browser: " tip-bot for Namhyung Kim
2012-09-03 2:53 ` [PATCH 5/5] perf gtk/browser: " Namhyung Kim
2012-09-09 8:58 ` [tip:perf/core] " tip-bot for Namhyung Kim
2012-09-08 0:48 ` [PATCHSET RESEND 0/5] perf tools: Cleanup hist printing code (v4) Arnaldo Carvalho de Melo
2012-09-08 14:00 ` Namhyung Kim
2012-09-08 15:08 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120912172641.GB29278@erda.amd.com \
--to=robert.richter@amd.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung.kim@lge.com \
--cc=namhyung@kernel.org \
--cc=paulus@samba.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).