Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp892552pxb; Wed, 13 Jan 2021 19:42:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzr6+v+WtFkF8mCbxNx7GVGf98nn5wPIwejMRi9Pgy4V3Wizaa83o0HZ7pW/K+/42oA4GVC X-Received: by 2002:a17:906:2e16:: with SMTP id n22mr3915624eji.477.1610595771659; Wed, 13 Jan 2021 19:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610595771; cv=none; d=google.com; s=arc-20160816; b=NFSK407Ds6Hx3kJg3cbWiQCUBp48RSfelSN4YRh5JWAZTj1TUuDpRKlpB2NgRU9Zvl +Vl4llu84n3cL+4eMGQRgUS50u2iAMUxUIwioq6E0MDxQcv5crHtt/tKv/MF7dYElpA5 6cLWzVK5y0ltrr7/DCGLp+AFFtgNmzFrhsp3GJH3y0iaGVeP4XwyonZEcbdGLx5N6Tyo dqH6qkvPzS4wviy07cOF/lX3pKJvPv5IYehj9mZ4qAP0MnEmPJueeNQ800Ov6uHT/hPe bTMDfW8369L9f8MoIGWc2XlWOLeezKP3/Comv83Oeu6ESaKbCdJiFFHhwmeTVc5Gifw1 g8Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oYFy3drdLKWF4Sxrfj42pwCBQFMVHVpWg2T7oMMvvMc=; b=odQa35gp//w0hUAQvf8koY0xeK3FzxcDwpiEuZVCnJd172THgM+jObKT1kk2ZiLC+3 nq5/6SaWSe3N9TIvUPqv/hTpybHyGg5L1+cVr7mboYo01cm/Sbxvga2IgbUeX6C2V1Sf OVY9eQ5zocc4Pm8tLv1uJhSO8hyfbBtzvVFqAl/0t3QDjxefGg4hQqKrRnDfX+3dFaR1 1Bay/dueWMx6Lh/5ube358e4+Nn75orj9MKu9z3vEQw3hqzEQspW28mi54XHgnxqm/7R Y9sLCbO+GathwjM8y6JAFyTEbuYoWc5I7rGxEJosqTKs3HKZKvi5Dsj7j6JdDbBOogoS XDHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nBjdV2PU; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si1902773eds.174.2021.01.13.19.42.28; Wed, 13 Jan 2021 19:42:51 -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=@linaro.org header.s=google header.b=nBjdV2PU; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727271AbhANDkf (ORCPT + 99 others); Wed, 13 Jan 2021 22:40:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbhANDke (ORCPT ); Wed, 13 Jan 2021 22:40:34 -0500 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FEBCC061786 for ; Wed, 13 Jan 2021 19:39:54 -0800 (PST) Received: by mail-pg1-x52a.google.com with SMTP id p18so2838556pgm.11 for ; Wed, 13 Jan 2021 19:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oYFy3drdLKWF4Sxrfj42pwCBQFMVHVpWg2T7oMMvvMc=; b=nBjdV2PU9bczMEYF1gXIya60Nsq5SPgB5Lj/eOuISAGLa5iPJbePRJdSbOL2EwdUeg jXzOTK8gIRu+Ith9d5AWCkIoaey1TLuhBih4YOG3UWDfAmQ29b/Ki/eGFOmbq2ay3jJI +qIgsEET+53OqXGw+sfi46FHkUCuOv1P4WV3O7GtxFf2UdwX/8c4MrieXpMoZ+gCbJ93 ceBAssr6QcZwK9wLEMMSKld2Fu0uepYKaSDJBkzJK/iiS4gK7V9I1qRpCBb32LhpIFet zF3Qutl49jwb7nGAvVjzNAI+4bA8jf8Z9vKK3cGtOTX+srQb/yjCxwEVP89mnz7/3akT amXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oYFy3drdLKWF4Sxrfj42pwCBQFMVHVpWg2T7oMMvvMc=; b=UnCsh/GJ1jCEUD0gTDEtLRY7/LFluqystv2mTpmEx3zp4u7HZISdsZS1N41oIrVcaX W7ozlc/sPBK3cXYiO+276W/DCstkxcNcAEGFdYrW9LWXZmgeMToqk7ciFY7SqpjEJAxs 3kAAGUohetHrytdLE7s2tiouMqOgoOOSEA//Zqrj0wTQjgoMdOlOvHnMKdKdcTtFN1+r eMLsDa35lBg+cZ6EwWGLgYqRs0W18xpEy94pvp3tqwVRdIQpLYXvZAhQk+GARTmF+VfY GqVWk754qeucW2MfLSWoiVET6BqBImYUSsdzG8ivATyudlkPK69zcg8enYe/AiHAMdxB 05sQ== X-Gm-Message-State: AOAM532NFkyvdI4Lyud80MnnJ5UuHpzs6+i2njjvORDd0s9v3Szv2F32 qjB3btXO29YrUQtVxg2gNyFITQ== X-Received: by 2002:aa7:8583:0:b029:1a9:39bc:ed3b with SMTP id w3-20020aa785830000b02901a939bced3bmr5407787pfn.48.1610595594204; Wed, 13 Jan 2021 19:39:54 -0800 (PST) Received: from localhost ([45.137.216.7]) by smtp.gmail.com with ESMTPSA id y1sm3795863pff.17.2021.01.13.19.39.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 19:39:53 -0800 (PST) From: Leo Yan To: Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Joe Mario , David Ahern , Don Zickus , linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v3 0/5] perf c2c: Code refactoring Date: Thu, 14 Jan 2021 11:39:34 +0800 Message-Id: <20210114033939.164538-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 (5): perf c2c: Rename for shared cache line stats perf c2c: Refactor hist entry validation perf c2c: Refactor display filter perf c2c: Refactor node display perf c2c: Add local variables for output metrics tools/perf/builtin-c2c.c | 173 ++++++++++++++++++++++++--------------- 1 file changed, 105 insertions(+), 68 deletions(-) -- 2.25.1