Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp751878ybx; Tue, 5 Nov 2019 05:06:30 -0800 (PST) X-Google-Smtp-Source: APXvYqybfZrmf60HqAXASQ2przfUQJ4yk9EkKiGCVoS+3fXWoi83DwZxY5JipnbEUYnHn8UolNIY X-Received: by 2002:a17:906:6403:: with SMTP id d3mr3591000ejm.258.1572959190049; Tue, 05 Nov 2019 05:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572959190; cv=none; d=google.com; s=arc-20160816; b=b0748XI6S5BYdeJQsueblDRfBqlrbCnZ3YPT9aJJ0S0GJZwmFWVCyHB3ZtFipXhPki j+qSVwGWvXsm3xGB+RHxv2Gd05D1teCVyx2zNLfxIO+Ix7XQkU45XrOE5Gtr0w9o79pG JzYnhJUA46ABUN6lKjjUaxqOUXaD+4rL24FI3EcCxpLs0Y/u0bgDleozDSp450Iz0Z7/ 2nndffUcj0IghKbt8kcRg20m8jGJCTmxLvHW+gDMXe4PMEWYU1ySHk+YE5gSnmmkC1oF zW5ys94bO5HpDUcny+9gyQ+D+yf9/Mu/mPg1qonWBd+R+/giKkaz+P3UFz3oBXaLJAFn Gvhg== 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=YEDP+P6pRhLlcaoDzbSfhi4FuXteM9+sDOQkk5aS3IQ=; b=YLm2md6v0wPbhUoQvs0HwD1Tki/TZgIpqXs+42yU2od/uT25p/C/VUlKoU8o+GJIjt 0X7Fn+Rg6/69QdPkGCymS/1CwC8ujorPCSkwmok82t6fcZrSuyfsNsbSh0WdH9+p3W/l qERi/U7w5VYJqKKqZoUdRkwnXZRxwedyiT37zoLgmk2LlG98mnpn2t3aQdoV+OS6MOem mjEX29q3YbHLLZnCiA2PvbcztHgk3emWs4Gs7rpJKA/jESbRJyFD7BYCGByhVFIpacHP rBDO0CkTHuSTWg0fZ05Nm1cXzBbCkufFYn014NvEm4iSd023Mq112gHbgPf/YEhwJaAk r7gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TftV8xrU; 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 a25si10081477eda.222.2019.11.05.05.06.06; Tue, 05 Nov 2019 05:06:30 -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=TftV8xrU; 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 S2389028AbfKENED (ORCPT + 99 others); Tue, 5 Nov 2019 08:04:03 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:54999 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388738AbfKENEC (ORCPT ); Tue, 5 Nov 2019 08:04:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572959041; 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=YEDP+P6pRhLlcaoDzbSfhi4FuXteM9+sDOQkk5aS3IQ=; b=TftV8xrUzb4iXoFjLDpkz6c82PdWLLiKG8FrN8siAWk9RUh4c4ZUHMUyBFbCcD75Apmzaz d5jLHgsOkiQZ4geJDoX2fIr3jaWVVURP08SqDxFaX2stg+R/pKF/WaAtDYpm9Mme5t0d4s AkL7o+x/I/624dKDy/rzS51t0tO9ItU= 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-171-Kedje49YOyiXxCsMh4gcWw-1; Tue, 05 Nov 2019 08:03:59 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B94BC477; Tue, 5 Nov 2019 13:03:57 +0000 (UTC) Received: from krava (unknown [10.43.17.48]) by smtp.corp.redhat.com (Postfix) with SMTP id 426025C1B2; Tue, 5 Nov 2019 13:03:55 +0000 (UTC) Date: Tue, 5 Nov 2019 14:03:54 +0100 From: Jiri Olsa To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Joe Mario , Kan Liang , Andi Kleen , Alexey Budankov Subject: Re: [PATCHv2 0/3] perf stat: Add --per-node option Message-ID: <20191105130354.GE29390@krava> References: <20190904073415.723-1-jolsa@kernel.org> MIME-Version: 1.0 In-Reply-To: <20190904073415.723-1-jolsa@kernel.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: Kedje49YOyiXxCsMh4gcWw-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 Wed, Sep 04, 2019 at 09:34:12AM +0200, Jiri Olsa wrote: > hi, > adding --per-node option to aggregate stats per NUMA nodes, > you can get now use stat command like: > =20 > # perf stat -a -I 1000 -e cycles --per-node > # time node 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 > ... >=20 > v2 changes: > - use mallox instead of zalloc plus adding comment [Arnaldo] > - rename --per-numa to --per-node [Alexey] > - rename function names to have node instead of numa >=20 > Available also in: > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > perf/fixes I forgot about this one ;-) rebased the latest perf/core and pushed out.. thanks, jirka >=20 > thanks, > jirka >=20 >=20 > --- > Jiri Olsa (3): > libperf: Add perf_cpu_map__max function > perf tools: Add perf_env__numa_node function > perf stat: Add --per-node agregation support >=20 > 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 | 40 ++++++++++++++++++++++++++++= ++++++++++++ > 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, 153 insertions(+), 10 deletions(-)