From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933069AbbLTNvh (ORCPT ); Sun, 20 Dec 2015 08:51:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48610 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751087AbbLTNvg (ORCPT ); Sun, 20 Dec 2015 08:51:36 -0500 Date: Sun, 20 Dec 2015 14:51:32 +0100 From: Jiri Olsa To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , LKML , David Ahern , Steven Rostedt , Frederic Weisbecker , Andi Kleen , Wang Nan Subject: Re: [PATCH 05/10] perf tools: Add dynamic sort key for tracepoint events Message-ID: <20151220135132.GA17267@krava.local> References: <1450193743-4409-1-git-send-email-namhyung@kernel.org> <1450193743-4409-6-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1450193743-4409-6-git-send-email-namhyung@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 16, 2015 at 12:35:38AM +0900, Namhyung Kim wrote: SNIP > + > + if (!len) > + len = hde_width(hde); > + > + return len; > +} > + > +static int __sort__hde_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, > + struct hist_entry *he) > +{ > + struct hpp_dynamic_entry *hde; > + size_t len = fmt->user_len; > + struct trace_seq seq; > + int ret; > + > + hde = container_of(fmt, struct hpp_dynamic_entry, hpp); > + > + if (!len) > + len = hde_width(hde); > + > + if (hists_to_evsel(he->hists) != hde->evsel) > + return scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, "N/A"); hum, how can this happen? ... "hists_to_evsel(he->hists) != hde->evsel" thanks, jirka