Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp208301pxb; Fri, 15 Jan 2021 00:50:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp5lusxae/HextCOzaQ55xiRkMohtAjhXDqAkYq2BSEGDAKQDRaWgxxYvsb4zyP34uOjTE X-Received: by 2002:a17:907:68c:: with SMTP id wn12mr8276074ejb.41.1610700610550; Fri, 15 Jan 2021 00:50:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610700610; cv=none; d=google.com; s=arc-20160816; b=Ka3oE1CNm2wBQ1fghs9jAjwH9AIHpePTNZPvJ1/XaNIMz6ekle9ApTlYqQwqHkWNY1 7P4WhbT7fv0My436cHrgQWRe/5SPMGHXWdlyUpL3Tjo3ikjXAEC5cKgARnIzsrhglojn xGtoENq+8Zl5w8So/bm01lXloRdoxbjEI02qdJWTf9XB1LNPr7WWg6Yyv/1J8oh5L3QS dzi+5aIIq/GiucwYmNlEsQIYgvUs2Nx4IV/na9et93J2ZfrUa7sXy8LmmTI1CPf1jFh9 i37O0vC33ALit9igFKHf+4x8AhbHNsPtTGPtwgcZiAAvum48z0HLJnmbbWIyMUe1AmHO +4dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9VyTGSu/4EdqeONLHwub0wAsTysdWglfufBwrKW4n0M=; b=hQee1fdB2M38hC/KFoLP21kqXrBzaorhI9qEz2iFe0BdNwn5cnZ72WrzsRBkMK1z8K DLVx1VKMSwVHdvH8GuciBxHr+t/B3iQqnVf1Xn6riJ7vsS/jnpQWh9YGsV2Ol0vjOVoy y7irFtV3Yxo1V+vo/fE6yUVopD947krQRYonsb1P4n+JymZOPXQvmBxdPhIQ7cltKp3V IBT5CmvIdDJ9gU4abrF188aEa600+FLPFrQJ147+i6cPP+2zf3KOxALppgob7ue/4Qfw E9nM7KVkdmoXOwowB+FiGajiYP/XqgT+sZPHHlx/l9sUcsxvXSsuzY+VL9cUKlfvuHkc o1Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M43QMpv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k14si3960790edj.608.2021.01.15.00.49.46; Fri, 15 Jan 2021 00:50:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M43QMpv1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730971AbhAOIqZ (ORCPT + 99 others); Fri, 15 Jan 2021 03:46:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:20341 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730930AbhAOIqY (ORCPT ); Fri, 15 Jan 2021 03:46:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610700298; 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: in-reply-to:in-reply-to:references:references; bh=9VyTGSu/4EdqeONLHwub0wAsTysdWglfufBwrKW4n0M=; b=M43QMpv1+99s/WOkPlTBkGJb4Z6xf9wdSvykrOmaOvF83RLBGcH3oTxpmkKn3I/BRSaWS3 T5ZEeqXSMQDhb9LUy5oWuzqSG5uZtYX4qPY0b6grKqdIN4bR4rORGKw5YHUorjzzzxY9wL KfwOUtWkp1qL1r3PRB8ej87pCIfGz+8= 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-80-nIGqQn1gMb6VBMTslY6LVw-1; Fri, 15 Jan 2021 03:44:52 -0500 X-MC-Unique: nIGqQn1gMb6VBMTslY6LVw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D15671936B6D; Fri, 15 Jan 2021 08:44:50 +0000 (UTC) Received: from krava (unknown [10.40.194.69]) by smtp.corp.redhat.com (Postfix) with SMTP id 4D26610013C0; Fri, 15 Jan 2021 08:44:48 +0000 (UTC) Date: Fri, 15 Jan 2021 09:44:47 +0100 From: Jiri Olsa To: Leo Yan Cc: Arnaldo Carvalho de Melo , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Joe Mario , David Ahern , Don Zickus , Joe Perches , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/6] perf c2c: Code refactoring Message-ID: <20210115084447.GC1470103@krava> References: <20210114154646.209024-1-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210114154646.209024-1-leo.yan@linaro.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 11:46:40PM +0800, Leo Yan wrote: > This patch series is for several minor code refactoring, which is > extracted from the patch series "perf c2c: Sort cacheline with all > loads" [1]. > > There has a known issue for Arm SPE store operations and Arm SPE is > the only consumer for soring with all loads, this is the reason in this > series drops the changes for dimensions and sorting, and only extracts > the patches related with code refactoring. So this series doesn't > introduce any functionality change. > > The patches have been tested on x86_64 and compared the result before > and after applying the patches, and confirmed no difference for the > output result. > > Changes from v3: > * Refined patch 03/06 to remove unnecessary parentheses and test and > return early in the function filter_display() (Joe Perches); > * Added new patch 04/06 to make argument type as u32 for percent(). Acked-by: Jiri Olsa thanks, jirka > > Changes from v2: > * Changed to use static functions to replace macros (Namhyung); > * Added Jiri's Ack tags in the unchanged patches; > * Minor improvement in the commit logs. > > [1] https://lore.kernel.org/patchwork/cover/1353064/ > > > Leo Yan (6): > perf c2c: Rename for shared cache line stats > perf c2c: Refactor hist entry validation > perf c2c: Refactor display filter > perf c2c: Fix argument type for percent() > perf c2c: Refactor node display > perf c2c: Add local variables for output metrics > > tools/perf/builtin-c2c.c | 168 +++++++++++++++++++++++---------------- > 1 file changed, 99 insertions(+), 69 deletions(-) > > -- > 2.25.1 >