linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: acme@kernel.org
Cc: jolsa@kernel.org, linux-kernel@vger.kernel.org
Subject: Support Intel uncore event lists v2
Date: Tue, 18 Oct 2016 16:07:38 -0700	[thread overview]
Message-ID: <1476832069-364-1-git-send-email-andi@firstfloor.org> (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-1

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

v1: Initial post
v2: Address review feedback. See changelog in commits.

-Andi

             reply	other threads:[~2016-10-18 23:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-18 23:07 Andi Kleen [this message]
2016-10-18 23:07 ` [PATCH 01/11] perf, tools: Factor out scale conversion code Andi Kleen
2016-10-18 23:07 ` [PATCH 02/11] perf, tools: Only print Using CPUID message once Andi Kleen
2016-10-18 23:07 ` [PATCH 03/11] perf, tools: Parse eventcode as number in jevents Andi Kleen
2016-10-18 23:07 ` [PATCH 04/11] perf, tools: Add support for parsing uncore json files Andi Kleen
2016-10-18 23:07 ` [PATCH 05/11] perf, tools: Support per pmu json aliases Andi Kleen
2016-10-18 23:07 ` [PATCH 06/11] perf, tools: Support event aliases for non cpu// pmus Andi Kleen
2016-10-18 23:07 ` [PATCH 07/11] perf, tools: Add debug support for outputing alias string Andi Kleen
2016-10-18 23:07 ` [PATCH 08/11] perf, tools: Collapse identically named events in perf stat Andi Kleen
2016-10-18 23:07 ` [PATCH 09/11] perf, tools: Expand PMU events by prefix match Andi Kleen
2016-10-18 23:07 ` [PATCH 10/11] perf, tools: Support DividedBy header in JSON event list Andi Kleen
2016-10-18 23:07 ` [PATCH 11/11] perf, tools, stat: Output generic dividedby metric Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476832069-364-1-git-send-email-andi@firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=acme@kernel.org \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).