Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp534954ybe; Mon, 2 Sep 2019 05:38:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxB9DU1xoL//B3w3zpiF4ZiEoz5x9WAN2A80bQxTBj+4AatIZdmEt7cMtDapncO3njiHmqS X-Received: by 2002:a17:902:1a6:: with SMTP id b35mr28519538plb.228.1567427925704; Mon, 02 Sep 2019 05:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567427925; cv=none; d=google.com; s=arc-20160816; b=jAQc9Jv72eL1RaLnXXC68EV8HXcrx6NyTZQP5a+romSX6LqomEEZwfwMUtb8UPIRgl zSBbN0rta0JoycbY/fLF3W/ySHrj+VZj6P8BB4j45dF23pXsGvHZaVZbMH/TfurW/hgr 1XgQ1hrjNOgZTXKF16cATDjm9EN3zw7YHhGNQniMpZBmclSy06I+Y2sUFihRXuL/eLEo 4nnjXdeVhMrleHTMWtw0L9JqrpFiaLRHU1kZQnG+ZWUol7iaeYDiVHuRvgr5CLh7uMBn EZMtrFbQeiWHU1zRw4dHekLdvmoVamfS0LHDYQBZmSXjWK7jNbSe/clVsCCeOuSzo5gA QXMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ff5h1KhfzZXACDt+91EiKnebZaXZ0om88QAWT8il6Cg=; b=r8wgTyFDxJCbZpiu0LERyyom6xEaibYseTSgW2Wcw1JYeh6ZLHwIz7hUQcCeR4ai61 dzEaUgr8A2rcenqkbx3ZFFOx+rDg7IGUn+Jjgkf1I3eyJueQeSw8ddvwmdh4J2vLi+TY lo7UJ5+xGVJxP2OMhCRI8KEcKybOPGCu8BtwXKEwhsTzs+VSw3vFa4gJ2IX+bUUYEbsr FYs2o3/PRKIjOqW4SheEMKMBezjR+VsyGZTGPfmblc1aU988nh4r6CgaUv/qFTgXPNuR Uci9KYGYEgjn/+/S/MpBXqlYtxwk3YvfrupB+qeLME3ZElyG6SIfC3mdpG4BsO2CwDel Hdlw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si6393116pld.370.2019.09.02.05.38.31; Mon, 02 Sep 2019 05:38:45 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731316AbfIBMM7 (ORCPT + 99 others); Mon, 2 Sep 2019 08:12:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42168 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729658AbfIBMM7 (ORCPT ); Mon, 2 Sep 2019 08:12:59 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B274EA909; Mon, 2 Sep 2019 12:12:58 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.103]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8BAE260C05; Mon, 2 Sep 2019 12:12:56 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Joe Mario , Kan Liang , Andi Kleen Subject: [PATCH 0/3] perf stat: Add --per-numa option Date: Mon, 2 Sep 2019 14:12:52 +0200 Message-Id: <20190902121255.536-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 02 Sep 2019 12:12:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, adding --per-numa option to aggregate stats per NUMA nodes, you can get now use stat command like: # perf stat -a -I 1000 -e cycles --per-numa # time numa cpus counts unit events 1.000542550 N0 20 6,202,097 cycles 1.000542550 N1 20 639,559 cycles 2.002040063 N0 20 7,412,495 cycles 2.002040063 N1 20 2,185,577 cycles 3.003451699 N0 20 6,508,917 cycles 3.003451699 N1 20 765,607 cycles ... thanks, jirka --- Jiri Olsa (3): libperf: Add perf_cpu_map__max function perf tools: Add perf_env__numa_node function perf stat: Add --per-numa agregation support tools/perf/Documentation/perf-stat.txt | 5 +++++ tools/perf/builtin-stat.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++---------- tools/perf/lib/cpumap.c | 12 ++++++++++++ tools/perf/lib/include/perf/cpumap.h | 1 + tools/perf/lib/libperf.map | 1 + tools/perf/util/cpumap.c | 18 ++++++++++++++++++ tools/perf/util/cpumap.h | 3 +++ tools/perf/util/env.c | 35 +++++++++++++++++++++++++++++++++++ tools/perf/util/env.h | 6 ++++++ tools/perf/util/stat-display.c | 15 +++++++++++++++ tools/perf/util/stat.c | 1 + tools/perf/util/stat.h | 1 + 12 files changed, 148 insertions(+), 10 deletions(-)