Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp774912ybx; Tue, 5 Nov 2019 05:26:20 -0800 (PST) X-Google-Smtp-Source: APXvYqz9kcXZp32h7JDK9vJ/QJna4PK6+l8IvuSd9prQptT9nyyt2NP7J+RKI4FIXCDK/ietabYK X-Received: by 2002:a17:906:1d45:: with SMTP id o5mr29624403ejh.250.1572960380677; Tue, 05 Nov 2019 05:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572960380; cv=none; d=google.com; s=arc-20160816; b=w9LiOgmqKLXJtBzhFWxkE5Qlaee94N9i/rZ+inlGKf2tFUYhKbH6hoB0rAppqf5V1u FkwjtKPkKURqbL2TPwTie9fgRqvkuhzWlXG1mp2u6krs8xKW6F+JM3AR6MgMN1nTnzWn AM1DbQ8VS4Vo7I/VyPn36hOWQ74Oum9vvb5EGdwEWs0C1DUuqnGFqMOc2PnP43yaaGPX /aek5rWx2yE1M4NcrDem7BumbVzE8cPwbE/W5s8s3iSag+v36Uzl5Tl+OMEXMJARAjY4 zozB1hMNVg9RP5kq3xXTPx7avIA7Zuxncl/FrLTJWAeFh/TaM5oFC26MPpzzyAy6qDmq B7nw== 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:date:from:dkim-signature; bh=3P76VWwyyzkMre5YqvpviiNEGEPtbC29s2FU2fEI35o=; b=jTEnrdY+TyAOTIUnetEdDYt8t39Svql5WWzH5ZOQEwNFPaq7i1m5gD4GopnMURxJwt 0CorEyFxcTFPIkuubAxIgDwhTKvy0AbTH7Rdy6K9PROPn3DVzy+Ac6W7+cwZLA8UupJ9 CZMa34Tt4qWSdCBHfv8Q78C38phuWdxlmU4v5R25GWe8iIUCwHEfcGXEY/qKgqBYlrSh NXaA5FI6ZOnKPTrTpFFec3AUE6bjuGtFZJLHKDJ6ILWDo2pPziWDxVR5btudICivUJq+ iKCBG7tlVDs1luw2+6zhqHdaRtf6iriC+zGJOZser1A4hsc8iS3TiA/9Ajd/6J8g1ad7 a9PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UDXBPXTR; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17si10254025edc.152.2019.11.05.05.25.57; Tue, 05 Nov 2019 05:26:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UDXBPXTR; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388988AbfKENWc (ORCPT + 99 others); Tue, 5 Nov 2019 08:22:32 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:33007 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388802AbfKENWc (ORCPT ); Tue, 5 Nov 2019 08:22:32 -0500 Received: by mail-qk1-f193.google.com with SMTP id 71so21100918qkl.0 for ; Tue, 05 Nov 2019 05:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3P76VWwyyzkMre5YqvpviiNEGEPtbC29s2FU2fEI35o=; b=UDXBPXTRyciJeb8UhdLDYWIX+j/I8VjRc+rJ6JLJmPOn9krsbr7FwDABPDxKRWCIxS 2O2KvPxFsAJathqbJ0sCc8DHLCqh+nPoKGG1Aj9VHU7Te1IrgV7MLzvdobOALQvu/0EU aYCXSdRxK5IQZWZ8A0kvRYiQPCuASO+c2aPNNSz2jmXYiCRXW2Z++qivb+BzrRH/P6/0 YVC3UsIAUP6w+7Ct3jcKWTDkoGz1q5d5pNYOxMScLZ3KbpbtIcZ0RmJMTnVbF/b20LQp A+triu/nTf3U6O85Ftlz3iYSN5HbQ5DoR+ML0cVsJLCoyZfjac79k6/7LeB3nhQ7TnsC JQ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3P76VWwyyzkMre5YqvpviiNEGEPtbC29s2FU2fEI35o=; b=Nnh2kFTbiTdlAGm4oWFzFWyqAw9c1njLRIbu3Hb3ZEpc43LoE7c3CQtV622/HuZ9ze iGatUfugMx7YMeETqqc1xLYgzPTTTgz9noA4d2rMtuKRAQJY1eBcI9V3fkI2Yr6q8T/d 3mqqLzkUzuDnST3mWG+ZFmsL/zheBO4INwl0pqpAU2KgKSG404xkX0be2giil+XITuUW eE93kds0pMp9geV5T7fFbhUnhuWa4sIcOk7h9YfRgq2zfPcyDi9CP4nQ46AOcNzryhEy sSqwX+yHx1H0WCXuASk4SH0BvJiuVjfg7/2Cb51Tq+CkKAOmJZhBmB7bKKNlVHSEFUAn tWdg== X-Gm-Message-State: APjAAAWXOfE75CXEo88P4yMbgU28E1uMLocT239JShsNm+FyZy0O9DLB ZvuJM0cb5Bf9On/WYrCcbbTo73Tn X-Received: by 2002:a37:6087:: with SMTP id u129mr5601953qkb.219.1572960151009; Tue, 05 Nov 2019 05:22:31 -0800 (PST) Received: from quaco.ghostprotocols.net ([179.97.35.50]) by smtp.gmail.com with ESMTPSA id 27sm12829167qtu.71.2019.11.05.05.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 05:22:30 -0800 (PST) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 4B1DF40B1D; Tue, 5 Nov 2019 10:22:27 -0300 (-03) Date: Tue, 5 Nov 2019 10:22:27 -0300 To: Jiri Olsa Cc: Andi Kleen , Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: Re: [PATCH] perf tools: Fix time sorting Message-ID: <20191105132227.GA3636@kernel.org> References: <20191104232711.16055-1-jolsa@kernel.org> <20191105004854.GA25308@tassilo.jf.intel.com> <20191105114941.GA4218@kernel.org> <20191105124150.GD29390@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191105124150.GD29390@krava> X-Url: http://acmel.wordpress.com 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 Em Tue, Nov 05, 2019 at 01:41:50PM +0100, Jiri Olsa escreveu: > On Tue, Nov 05, 2019 at 08:49:41AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Nov 04, 2019 at 04:48:54PM -0800, Andi Kleen escreveu: > > > 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 > > > > Thanks, applied after adding: > > > > Fixes: 043ca389a318 ("perf tools: Use hpp formats to sort final output") > > Cc: stable@vger.kernel.org # v3.16+ > > I was wondering about putting some commit there, > because it was there for long time.. but that > commit you use seems to be old enough.. ;-) Yeah, I think it predates that, but the one I picked should have fixed that problem, as it was touching these routines, so I thought would be a good one to stick in a fixes tag :-) - Arnaldo > thanks, > jirka -- - Arnaldo