Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp674349ybx; Tue, 5 Nov 2019 03:51:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyJ3geI66WawcCfcyHRNCE3B54yLcKpqRaXfn0UMXepGiMdTqVe1fOQkxlj0RTVEVEi71Wv X-Received: by 2002:aa7:d483:: with SMTP id b3mr34915983edr.178.1572954692626; Tue, 05 Nov 2019 03:51:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572954692; cv=none; d=google.com; s=arc-20160816; b=aqvssfRDhTPFbv+FIX5og8XMXf4ZJ7fxbmhyizk93L9CO0wNqbZX9mqlr8OZnZQtiA YUTXTPKIDJ3fEwtcqKl305HtyUBKl7WJAnVIYlwhz8MvMdJ+C8b+eB1sTxjGe0X4bLBj d1VIcBDHeHG0n4UdVM8ET904wmJm+pAL8ZmwO4/zmRPs4cAbTohNIWmgoFrEsiKc9VBA fQaViW0z9VOuvButT1RofGakV9abEqNMV+KVC1iLuf2Eo35ABVSeZvMuN+QtG3D55NFW 49oREPS3Cm8JHtFanjuwa8YxLwVD8pbydVJ/DcRyJ4GS1PTm12lsvHjkXODXwwblb69X wX9w== 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=68rczn7OyxeGKSaq0BpAGwbvXEAyyb5/nH3vd7TkL24=; b=pe36+s96swjnbR9Sn42YFP+aMb4O42u2irPps1nmOlcoPOAu6FBd0WgSb1xEDIwWCN nalpBQ5ngzkG2IuH+tPNoZO2m/0UzBrVYusTKKqf1V6OmCLJeEfe/ETQESyy6UOk3nrs FBnxPqu8EXOMjcDGb8M0ZiaBZowx60rFoC+dipPkzqNPl6miW5XxrCRKPYqC40eiMNmi 6rESzMwNR6zMp+idz6RlIG28yMkm/m/SvBlIDvbDQNYkGsfQbZUJL9Jv+ihCydHwnwUO aMDbVhLy+0BcMrmfeRyzi4LZ9lWw/vQm973493D2cqAsqtVW+UmK5/kDHur4pF64Dz7i RqXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fF9B5Ug+; 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 a25si4248299ejr.185.2019.11.05.03.51.08; Tue, 05 Nov 2019 03:51:32 -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=fF9B5Ug+; 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 S1730946AbfKELtq (ORCPT + 99 others); Tue, 5 Nov 2019 06:49:46 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34002 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730704AbfKELtq (ORCPT ); Tue, 5 Nov 2019 06:49:46 -0500 Received: by mail-qt1-f196.google.com with SMTP id h2so15653476qto.1 for ; Tue, 05 Nov 2019 03:49:45 -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=68rczn7OyxeGKSaq0BpAGwbvXEAyyb5/nH3vd7TkL24=; b=fF9B5Ug+LEiBghwJbWUKYZH5v/wjn5XZl8bI6Ec28rgU20Wp1jIxTPH0sYhwUIJxIG mr09ysk9ASGmXKcbPyXJKoRbhOJh80u1OldOAiRodeJgBgu6XUUM9KREVvskRQWsdTn3 bjiiCbDkINUJITw0Gm5AU9RG/zRDRtPn8m46UzH+Xyq4orkW5AzpevsjeDNOM50GvJgN c2j5fdwl8vE43koPgnBIENTtPQMM13WoQLKohC9uBJf8ax9np1veFBCCbLik+uQnOdqL jFAUgG3CuY8D2Xw4LCzxNnNFl6mgfg0M7jwv3yz5U0ntOwehVxxdLcUWtZ087xlzrOSu Pafg== 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=68rczn7OyxeGKSaq0BpAGwbvXEAyyb5/nH3vd7TkL24=; b=hdanHihnV370uHfyHYiDTDt5J4mWlDaLhDk8q/g9Ik3fVjBnWG+JNoIJRNgTLaFQoX 0pw8lkppuIBBjtrtq1R/0vL3gLvDLD2IEu9+dK74qufn8jjyHXIzKLPMmoOB3Bv+V6VN +3f33uVyGcv2mPWY723jqLcIywzZVLPkZz36MEmdRbrJrDgvAi0o2EXfJ3cehkbQv80o ohmmH32l2EI7XqnfX0rWnAAWlRn5thA2ad20ESHAA+vb4pZUnmdgldlDdAAOeWzFH23w a7l+Ygd3n/ZfZPZx2k6Nosg+XTv7SJcMR+iHr+JAD+mAUdEOwl+krIyxI/FwHB2yo+fD SnAg== X-Gm-Message-State: APjAAAU8oWFWGb0oZUVvgDGN1STshsAZ+wMZzcd4gUwwyNmA3TGsyDRb +KK6/unvDJS8Jd1yJcF8HfE= X-Received: by 2002:ac8:6ec4:: with SMTP id f4mr17312531qtv.271.1572954584862; Tue, 05 Nov 2019 03:49:44 -0800 (PST) Received: from quaco.ghostprotocols.net ([179.97.35.50]) by smtp.gmail.com with ESMTPSA id a18sm10487213qkc.2.2019.11.05.03.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 03:49:43 -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 C0F41408F8; Tue, 5 Nov 2019 08:49:41 -0300 (-03) Date: Tue, 5 Nov 2019 08:49:41 -0300 To: Andi Kleen Cc: Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: Re: [PATCH] perf tools: Fix time sorting Message-ID: <20191105114941.GA4218@kernel.org> References: <20191104232711.16055-1-jolsa@kernel.org> <20191105004854.GA25308@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191105004854.GA25308@tassilo.jf.intel.com> 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 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+ - Arnaldo