From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752591AbdGUMMQ (ORCPT ); Fri, 21 Jul 2017 08:12:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41678 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003AbdGUMMP (ORCPT ); Fri, 21 Jul 2017 08:12:15 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 42B1E6572D Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=jolsa@kernel.org DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 42B1E6572D From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Peter Zijlstra , Alexander Shishkin , Namhyung Kim , David Ahern , Andi Kleen Subject: [PATCH 0/4] perf stat: Enable group read of counters Date: Fri, 21 Jul 2017 14:12:08 +0200 Message-Id: <20170721121212.21414-1-jolsa@kernel.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 21 Jul 2017 12:12:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, sending changes to enable group read of perf counters for perf stat command. It allows us to read whole group of counters within single read syscall. Also available in here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/stat_group Not sure why we haven't supported yet, but anyway it was unavailable for some time due to a bug which was fixed just recently via: ba5213ae6b88 ("perf/core: Correct event creation with PERF_FORMAT_GROUP") thanks, jirka --- Jiri Olsa (4): perf tools: Add verbose output for sys_perf_event_open fallback perf tools: Add perf_evsel__read_size function perf tools: Add perf_evsel__read_counter function perf stat: Use group read for event groups tools/perf/builtin-stat.c | 30 +++++++++++++++++++--- tools/perf/util/counts.h | 1 + tools/perf/util/evsel.c | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- tools/perf/util/evsel.h | 2 ++ tools/perf/util/stat.c | 3 +++ tools/perf/util/stat.h | 5 ++-- 6 files changed, 182 insertions(+), 6 deletions(-)