Path: csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Jiri Olsa Newsgroups: linux.kernel Subject: Re: Support Intel uncore event lists Date: Mon, 17 Oct 2016 13:10:01 +0200 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 17 Oct 2016 10:58:52 +0000 (UTC) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 42 Organization: linux.* mail to news gateway X-Original-Cc: acme@kernel.org, jolsa@kernel.org, sukadev@linux.vnet.ibm.com, eranian@google.com, linux-kernel@vger.kernel.org X-Original-Date: Mon, 17 Oct 2016 12:58:50 +0200 X-Original-Message-ID: <20161017105850.GB21993@krava> X-Original-References: <1476393332-20732-1-git-send-email-andi@firstfloor.org> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1501879 On Thu, Oct 13, 2016 at 02:15:22PM -0700, Andi Kleen wrote: > This adds uncore support on top of the recently merged JSON event list > infrastructure for core events. Uncore is everything outside the core, > including memory controllers, PCI, interconnect etc. > > Uncore is more complicated to handle than core events because it uses > many duplicated PMUs, which leads to long event lists and verbose duplicated > outputs. > > In fact previously it was nearly unusable for many cases without special > tools to generate event list and aggregate data (such as > https://github.com/andikleen/pmu-tools/tree/master/ucevent) > > With this patchkit we add: > - Basic support for uncore events in JSON events > - Support aliases that get duplicated over many PMUs transparently > - Support summing up duplicated PMUs per socket > - Support extending the perf stat builtin metrics with simple ratios > specified in the event list. This covers the vast majority of useful > metrics. > > So far mainly servers are supported. Also this is not using full event lists > (which are full of very obscure events) but only for a smaller subset of > curated useful and understandable metrics. > > The actual event lists are not posted, but available at > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc perf/intel-uncore-json-files-1 > > The code is available here > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc perf/builtin-json-15 perf test 5 is failing [jolsa@krava perf]$ sudo ./perf test 5 -v ... mem-loads -> cpu/event=0xcd,umask=0x1,ldlat=3/ failed to parse event 'mem-snp-hit:u,cpu/event=mem-snp-hit/u', err 1 test child finished with 1 ---- end ---- parse events tests: FAILED! jirka