From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752476AbcJDWqU (ORCPT ); Tue, 4 Oct 2016 18:46:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40644 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbcJDWqT (ORCPT ); Tue, 4 Oct 2016 18:46:19 -0400 Date: Wed, 5 Oct 2016 00:46:12 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Don Zickus , Joe Mario , Ingo Molnar , Peter Zijlstra , Namhyung Kim , David Ahern , Andi Kleen Subject: Re: [PATCH 20/57] perf c2c report: Add dcacheline dimension key Message-ID: <20161004224612.GA10962@krava> References: <1474558645-19956-1-git-send-email-jolsa@kernel.org> <1474558645-19956-21-git-send-email-jolsa@kernel.org> <20161004165012.GH7143@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161004165012.GH7143@kernel.org> User-Agent: Mutt/1.7.0 (2016-08-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 04 Oct 2016 22:46:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 04, 2016 at 01:50:12PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Sep 22, 2016 at 05:36:48PM +0200, Jiri Olsa escreveu: > > Adding dcacheline dimension key support. It > > displays cacheline address as hex number. > > > > Using c2c wrapper to standard 'dcacheline' object > > to defined own header and simple (just address) > > cacheline output. > > So, at this point I move from: > > # perf c2c report > Error: Invalid --fields key: `dcacheline' > # > > To: > > [root@jouet ~]# perf c2c report > Error: Unknown --fields key: `offset' > Segmentation fault (core dumped) > [root@jouet ~]# oops, attached patch should fix that, but I needed to change following patches: perf c2c report: Add cacheline hists processing perf c2c report: Decode c2c_stats for hist entries I updated perf/c2c_v4 branch with the fix and rebased to your current perf/core.. let me know if I need to repost thanks, jirka --- diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 335c0fd30757..74c7822460e1 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c @@ -86,7 +86,7 @@ he__get_c2c_hists(struct hist_entry *he, ret = c2c_hists__init(hists, sort); if (ret) - free(hists); + zfree(&hists); return hists; }