[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190311123227.GA26829@krava>
Date: Mon, 11 Mar 2019 13:32:27 +0100
From: Jiri Olsa <jolsa@...hat.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: acme@...nel.org, jolsa@...nel.org,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH v5 11/15] perf tools report: Implement browsing of
individual samples
On Fri, Mar 08, 2019 at 09:56:24PM -0800, Andi Kleen wrote:
SNIP
> diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
> index 08e2b3be4c1b..da3a944f42aa 100644
> --- a/tools/perf/util/hist.c
> +++ b/tools/perf/util/hist.c
> @@ -445,6 +445,14 @@ static int hist_entry__init(struct hist_entry *he,
> return -ENOMEM;
> }
> }
> +
> + if (symbol_conf.res_sample) {
> + he->res_samples = calloc(sizeof(struct res_sample),
> + symbol_conf.res_sample);
> + if (!he->res_samples)
you need to free the memory in here, anyway this function
just changed, so please rebase on latest Arnaldo's perf/core
jirka
> + return -ENOMEM;
> + }
> +
SNIP
Powered by blists - more mailing lists