Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp727920ybx; Tue, 5 Nov 2019 04:43:23 -0800 (PST) X-Google-Smtp-Source: APXvYqwIuql4dvz6p9GdMfv943xDSt6lPT3TRh9TRKNhzK3WJG5OmrsM9IIDu3n/AhRQ83ARsoUq X-Received: by 2002:a05:6402:706:: with SMTP id w6mr2032293edx.38.1572957803581; Tue, 05 Nov 2019 04:43:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572957803; cv=none; d=google.com; s=arc-20160816; b=z+FqiEQBVqoa1+W+oxpEFhqDE23p2mzFkIuGzNHyKKAOjjTPmiby2vHV7fyYH37mOo rrO4YxOcP+dpQ9WFffonKw4RaG8jaEOYS0j5CanHT0NAXP9lqqrvIXkJ2N71aozIoKWq eBgHn26+7QxTetDg/TcvdUL+2EMMc25KXtg3qTEMBrKqOgasKENe9jAUYYSqi6OXvaGJ V0ZkpG+zZ3jMEoAJ6K7yqgk9nJzLaH8pctnp65MBRP7vTxW2SOJDK+1gnrntEXheUHcp sgF+QUjY9oDfckLzXkV5mrHPlRsPn/BFI/Hnvr3LNeUGh9k6Av1V0/EToUm+e3a83RSv /40g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5GrM7hrBp4W1SX1nzG0Hw0C0O3PeEOnEJs7jd2emyEs=; b=tnsrY0ScxxAyvJAyR8v7pLbkHZcjVHUjlne7Id6DtT1qmSp7Xlx0/U22qrdRt5d4nz yY3Wk1T2hhDiZSDA/mInTuqIGZv/piqQYKPfOmSMqa5PsaFxXQ120yNBvh8fpOFZ3MRv q1sZB5/EnktmmP/0SMETKILtJHsyuXkd5ceWCSvAiNyO+EcW9vLbVlsrFUBduc/qDeT8 TtcVbgBEQC4dmeVD1E2UR2gBkPIFKEU135CBtmWpfdCGgOny5WLB3+MsgtiCM/6fX9so xxy4VBj27hqmbSLu07qnN6ZbQ5o4o8uxebBkRxry2AuEk13rJ/4hc79Dcf904irJsoZA 6NPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Yvs7Wcio; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y38si10463173edb.87.2019.11.05.04.42.59; Tue, 05 Nov 2019 04:43:23 -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=@redhat.com header.s=mimecast20190719 header.b=Yvs7Wcio; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388564AbfKEMl7 (ORCPT + 99 others); Tue, 5 Nov 2019 07:41:59 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:48541 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388159AbfKEMl6 (ORCPT ); Tue, 5 Nov 2019 07:41:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572957717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5GrM7hrBp4W1SX1nzG0Hw0C0O3PeEOnEJs7jd2emyEs=; b=Yvs7WciogWRcxb/3COwIR/TI1IwdVnGajbfAkOZAOUASrZrw95WBjnlM5e7dLpBrCucEKw 8TTJaWVr7s0bsRr7nMUUIUH4amelc75ub4MCbn1/Nzr+SVKwgnBsaxF7nW622CrY13IoMT AnXMeyPK4qm9UT+PXNLEVASqkqeAXi4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-353-3A4bySEmO7qU0O7amoN1kw-1; Tue, 05 Nov 2019 07:41:54 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EDF93800C73; Tue, 5 Nov 2019 12:41:52 +0000 (UTC) Received: from krava (unknown [10.43.17.48]) by smtp.corp.redhat.com (Postfix) with SMTP id 005725D9C9; Tue, 5 Nov 2019 12:41:50 +0000 (UTC) Date: Tue, 5 Nov 2019 13:41:50 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo 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: <20191105124150.GD29390@krava> References: <20191104232711.16055-1-jolsa@kernel.org> <20191105004854.GA25308@tassilo.jf.intel.com> <20191105114941.GA4218@kernel.org> MIME-Version: 1.0 In-Reply-To: <20191105114941.GA4218@kernel.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: 3A4bySEmO7qU0O7amoN1kw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 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. > > >=20 > > > Check following report for longer workloads: > > > $ perf report -s time -F time,overhead --stdio > > >=20 > > > Fixing hist_entry__sort to properly return int64_t and > > > not possible cut int. > > >=20 > > > Cc: Andi Kleen > > > Link: http://lkml.kernel.org/n/tip-uetl5z1eszpubzqykvdftaq6@git.kerne= l.org > > > Signed-off-by: Jiri Olsa > >=20 > > Looks good. > >=20 > > Reviewed-by: Andi Kleen >=20 > Thanks, applied after adding: >=20 > 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.. ;-) thanks, jirka