From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: kan.liang@intel.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] perf tool: add hists__init for perf diff
Date: Wed, 22 Oct 2014 16:29:33 -0300 [thread overview]
Message-ID: <20141022192933.GB14687@kernel.org> (raw)
In-Reply-To: <1414004561-22096-1-git-send-email-kan.liang@intel.com>
Em Wed, Oct 22, 2014 at 03:02:41PM -0400, kan.liang@intel.com escreveu:
> From: Kan Liang <kan.liang@intel.com>
>
> perf diff also uses hists/hist_entries, hists__init() should be called
> before creating any evsels.
Thanks, this one merits perf/urgent :-\
- Arnaldo
> Signed-off-by: Kan Liang <kan.liang@intel.com>
> ---
> tools/perf/builtin-diff.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c
> index 8c5c11c..25114c9 100644
> --- a/tools/perf/builtin-diff.c
> +++ b/tools/perf/builtin-diff.c
> @@ -1142,6 +1142,11 @@ static int data_init(int argc, const char **argv)
>
> int cmd_diff(int argc, const char **argv, const char *prefix __maybe_unused)
> {
> + int ret = hists__init();
> +
> + if (ret < 0)
> + return ret;
> +
> perf_config(perf_default_config, NULL);
>
> argc = parse_options(argc, argv, options, diff_usage, 0);
> --
> 1.8.3.2
next prev parent reply other threads:[~2014-10-22 19:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-22 19:02 [PATCH 1/1] perf tool: add hists__init for perf diff kan.liang
2014-10-22 19:29 ` Arnaldo Carvalho de Melo [this message]
2014-10-24 7:55 ` [tip:perf/urgent] perf diff: Add missing hists__init() call at tool start tip-bot for Kan Liang
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=20141022192933.GB14687@kernel.org \
--to=acme@kernel.org \
--cc=kan.liang@intel.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.