From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755650AbdERQNG (ORCPT ); Thu, 18 May 2017 12:13:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36078 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754085AbdERQND (ORCPT ); Thu, 18 May 2017 12:13:03 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 36F3980468 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jolsa@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 36F3980468 Date: Thu, 18 May 2017 18:12:58 +0200 From: Jiri Olsa To: David Carrillo-Cisneros Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Andi Kleen , Simon Que , Wang Nan , Jiri Olsa , He Kuang , Masami Hiramatsu , David Ahern , Namhyung Kim , Stephane Eranian , Paul Turner Subject: Re: [PATCH 7/7] perf tools: add feature header record to pipe-mode Message-ID: <20170518161258.GA17926@krava> References: <20170518041602.28689-1-davidcc@google.com> <20170518041602.28689-8-davidcc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170518041602.28689-8-davidcc@google.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 18 May 2017 16:13:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2017 at 09:16:02PM -0700, David Carrillo-Cisneros wrote: > Add header record types to pipe-mode, reusing the functions > used in file-mode and leveraging the new struct feat_fd. > > Add the perf_event__synthesize_feature event call back to > process the new header records. > > Before this patch: > > $ perf record -o - -e cycles -c 100000 sleep 1 | perf report --stdio > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.000 MB - ] > ... > > After this patch: > $ perf record -o - -e cycles -c 100000 sleep 1 | perf report --stdio > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.000 MB - ] > # hostname : lphh7 > # os release : 4.11.0-dbx-up_perf > # perf version : 4.11.rc6.g6277c80 > # arch : x86_64 > # nrcpus online : 72 > # nrcpus avail : 72 > # cpudesc : Intel(R) Xeon(R) CPU E5-2696 v3 @ 2.30GHz > # cpuid : GenuineIntel,6,63,2 > # total memory : 263457192 kB > # cmdline : /root/perf record -o - -e cycles -c 100000 sleep 1 > # HEADER_CPU_TOPOLOGY info available, use -I to display > # HEADER_NUMA_TOPOLOGY info available, use -I to display > # pmu mappings: intel_bts = 6, uncore_imc_4 = 22, uncore_sbox_1 = 47, uncore_cbox_5 = 33, uncore_ha_0 = 16, uncore_cbox > Percent | Source code & Disassembly of kcore for cycles (9 samples) > ... thanks a lot for doing this, comments comming shortly jirka