Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp113332ybx; Mon, 4 Nov 2019 16:50:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzqgJxiHlXPcrjTFQ8tKdA6y5tZnioGPO8Jl+ZqguU1BYUI2PJ3knvdiGpmgzdgWSEb5CD/ X-Received: by 2002:a17:906:c7d5:: with SMTP id dc21mr11890206ejb.267.1572915046274; Mon, 04 Nov 2019 16:50:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572915046; cv=none; d=google.com; s=arc-20160816; b=t+QKXsNuxb+v/a0NJAC28cQpl8upqZRsebuYc9aGBeI0ThSThr+n0fmZgkZyYVNjbr RyRp8pFI+fvZhGLJwxoBwpAba3I9mMeYI7VKWZfEtI4wvH0D7Nc/bOmrLgdzqdzqKX6B CIHNmvUH4SNJjrp+XIrotrS9bgPePUIFt7x65LcZzOQvPe+xR5Qv0WNXyF/N55el5HXq jFGHxmxNKaJQLBKjQz8Z4xEfgczLDKIF7GO1iiPhGfTG48Gophuk+jOo2V417qwmZFZe pKY5xSoqNSymOqrcOS7lNJGrRxvXWn/gVUFTxAJGj6/F8q6WIfUUWt4tp2RmdMstuUA9 mORg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Qsr4jbNncgJVmfY0Ytwhp1knZkg2Natny5BT32zwKOI=; b=VF2GbABZAmMVUqDQdzRMqUKh3bYWDakxfvav5P0z80gESeriqMQMVD61lRfdFN9EB8 n1bnPq/iYQRNa5nB8C1xztoNqm1B9dk5UEbUoWe8y/FbPnHOy2jfxqIOT+0fPeQh+USo xKJiP1PW9gFRHCyOwq12Dg2MhazoyhPIRg6uYz3zIBPUhERfeHijh2V8KdNa6alkWzZx esq5ibWxCsc+NHpcu2lzynJv2v9IgMigR50ufUgaMwKRgkQtlHO2YQjUBKiZ/+9Dbpnh 2jOOf8LQMxQkPYRNL/15FfIx4cvuo/bMdaeeD/qydQuQ0O9UfsIVNkDzPX76XdIYI/tm IBow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si6658108ejv.278.2019.11.04.16.50.22; Mon, 04 Nov 2019 16:50:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730087AbfKEAsz (ORCPT + 99 others); Mon, 4 Nov 2019 19:48:55 -0500 Received: from mga12.intel.com ([192.55.52.136]:18172 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729443AbfKEAsz (ORCPT ); Mon, 4 Nov 2019 19:48:55 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Nov 2019 16:48:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,268,1569308400"; d="scan'208";a="205349175" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga006.jf.intel.com with ESMTP; 04 Nov 2019 16:48:54 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 75043300884; Mon, 4 Nov 2019 16:48:54 -0800 (PST) Date: Mon, 4 Nov 2019 16:48:54 -0800 From: Andi Kleen To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: Re: [PATCH] perf tools: Fix time sorting Message-ID: <20191105004854.GA25308@tassilo.jf.intel.com> References: <20191104232711.16055-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191104232711.16055-1-jolsa@kernel.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 05, 2019 at 12:27:11AM +0100, Jiri Olsa wrote: > The final sort might get confused when the comparison > is done over bigger numbers than int like for -s time. > > Check following report for longer workloads: > $ perf report -s time -F time,overhead --stdio > > Fixing hist_entry__sort to properly return int64_t and > not possible cut int. > > Cc: Andi Kleen > Link: http://lkml.kernel.org/n/tip-uetl5z1eszpubzqykvdftaq6@git.kernel.org > Signed-off-by: Jiri Olsa Looks good. Reviewed-by: Andi Kleen -Andi