Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1525817

Support Intel uncore event lists in perf

From Andi Kleen <andi@firstfloor.org>
Newsgroups linux.kernel
Subject Support Intel uncore event lists in perf
Date 2016-11-19 01:40 +0100
Message-ID <sF1Rf-5ZF-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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-2

The code is available here
git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc perf/builtin-json-19

v1: Initial post
v2: Address review feedback. See changelog in commits.
v3: Repost. Rebase to latest tree.

-Andi

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Support Intel uncore event lists in perf Andi Kleen <andi@firstfloor.org> - 2016-11-19 01:40 +0100
  [PATCH 01/10] perf, tools: Factor out scale conversion code Andi Kleen <andi@firstfloor.org> - 2016-11-19 01:40 +0100
    Re: [PATCH 01/10] perf, tools: Factor out scale conversion code Jiri Olsa <jolsa@redhat.com> - 2016-11-23 10:30 +0100
    Re: [PATCH 01/10] perf, tools: Factor out scale conversion code Jiri Olsa <jolsa@redhat.com> - 2016-11-23 10:50 +0100
  [PATCH 10/10] perf, tools, stat: Output generic dividedby metric Andi Kleen <andi@firstfloor.org> - 2016-11-19 01:40 +0100
  [PATCH 06/10] perf, tools: Add debug support for outputing alias string Andi Kleen <andi@firstfloor.org> - 2016-11-19 01:40 +0100
  [PATCH 02/10] perf, tools: Parse eventcode as number in jevents Andi Kleen <andi@firstfloor.org> - 2016-11-19 01:40 +0100
    Re: [PATCH 02/10] perf, tools: Parse eventcode as number in jevents Jiri Olsa <jolsa@redhat.com> - 2016-11-23 10:50 +0100

csiph-web