Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1473371 > unrolled thread
| Started by | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| First post | 2016-08-31 13:50 +0200 |
| Last post | 2016-09-01 08:50 +0200 |
| Articles | 5 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v20 00/20] perf, tools: Add support for PMU events in JSON format Jiri Olsa <jolsa@redhat.com> - 2016-08-31 13:50 +0200
Re: [PATCH v20 00/20] perf, tools: Add support for PMU events in JSON format Andi Kleen <ak@linux.intel.com> - 2016-08-31 16:50 +0200
Re: [PATCH v20 00/20] perf, tools: Add support for PMU events in JSON format Jiri Olsa <jolsa@redhat.com> - 2016-08-31 17:00 +0200
Re: [PATCH v20 00/20] perf, tools: Add support for PMU events in JSON format Andi Kleen <ak@linux.intel.com> - 2016-08-31 18:20 +0200
Re: [PATCH v20 00/20] perf, tools: Add support for PMU events in JSON format Jiri Olsa <jolsa@redhat.com> - 2016-09-01 08:50 +0200
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Date | 2016-08-31 13:50 +0200 |
| Subject | Re: [PATCH v20 00/20] perf, tools: Add support for PMU events in JSON format |
| Message-ID | <sccbM-1TJ-35@gated-at.bofh.it> |
On Mon, Jun 20, 2016 at 09:02:30PM -0700, Sukadev Bhattiprolu wrote: > CPUs support a large number of performance monitoring events (PMU events) > and often these events are very specific to an architecture/model of the > CPU. To use most of these PMU events with perf, we currently have to identify > them by their raw codes: > > perf stat -e r100f2 sleep 1 > > This patchset allows architectures to specify these PMU events in JSON > files located in 'tools/perf/pmu-events/arch/' of the mainline tree. > The events from the JSON files for the architecture are then built into > the perf binary. > > At run time, perf identifies the specific set of events for the CPU and > creates "event aliases". These aliases allow users to specify events by > "name" as: > > perf stat -e pm_1plus_ppc_cmpl sleep 1 > > The file, 'tools/perf/pmu-events/README' in [PATCH 16/16] gives more > details. > > Note: > - All known events tables for the architecture are included in the > perf binary. > > - For architectures that don't have any JSON files, an empty mapping > table is created and they should continue to build. > > Thanks to input from Andi Kleen, Jiri Olsa, Namhyung Kim and Ingo Molnar. > > These patches are available from: > > https://github.com/sukadev/linux.git > > Branch Description > ------------------------------------------------------ > json-code-v20 Source Code only > json-data-v20 x86 and Powerpc datafiles only > json-code+data-v20 Both code and data (for build/test) > > NOTE: Only "source code" patches (i.e those in json-code-v20) are being > emailed. Please pull the "data files" from the json-data-v20 branch. > > Changelog[v20] > - Rebase to recent perf/core > - Add Patch 20/20 to allow perf-stat to work with the period= field hi, I had discussion with Ingo about the state of this patchset and there's one more requirement from his side - to split event files into per topic files I made some initial changes over latest Sukadev's branch and came up with something like this: $ find pmu-events/arch/x86/ pmu-events/arch/x86/ pmu-events/arch/x86/NehalemEX_core pmu-events/arch/x86/NehalemEX_core/Memory.json pmu-events/arch/x86/NehalemEX_core/Virtual-Memory.json pmu-events/arch/x86/NehalemEX_core/Cache.json pmu-events/arch/x86/NehalemEX_core/Pipeline.json pmu-events/arch/x86/NehalemEX_core/Floating-point.json pmu-events/arch/x86/NehalemEX_core/Other.json pmu-events/arch/x86/mapfile.csv pmu-events/arch/x86/Broadwell_core pmu-events/arch/x86/Broadwell_core/Memory.json pmu-events/arch/x86/Broadwell_core/Virtual-Memory.json pmu-events/arch/x86/Broadwell_core/Cache.json pmu-events/arch/x86/Broadwell_core/Pipeline.json pmu-events/arch/x86/Broadwell_core/Floating-point.json pmu-events/arch/x86/Broadwell_core/Other.json pmu-events/arch/x86/Broadwell_core/Frontend.json so let's have a discussion if this is acceptable for you guys I've already made some changes in pmu-events/* to support this hierarchy to see how bad the change would be.. and it's not that bad ;-) you can check followin patches (only 2 Intel files transformed): 1d5ffa8bb969 perf, tools: Change jevents 65919f8901e3 perf, tools: Split Broadwell_core.json 7cd309a85465 perf, tools: Add Broadwell V14 event file e316aff2dd4e perf, tools: Split NehalemEX_core.json e19e8de49408 perf, tools: Add NehalemEX V1 event file It's available in: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/json thanks, jirka
[toc] | [next] | [standalone]
| From | Andi Kleen <ak@linux.intel.com> |
|---|---|
| Date | 2016-08-31 16:50 +0200 |
| Message-ID | <sceZX-3Ew-15@gated-at.bofh.it> |
| In reply to | #1473371 |
> hi, > I had discussion with Ingo about the state of this patchset > and there's one more requirement from his side - to split > event files into per topic files Thanks Jiri. > > I made some initial changes over latest Sukadev's branch > and came up with something like this: Did you just split it by the "Topic" fields? > > $ find pmu-events/arch/x86/ > pmu-events/arch/x86/ > pmu-events/arch/x86/NehalemEX_core > pmu-events/arch/x86/NehalemEX_core/Memory.json > pmu-events/arch/x86/NehalemEX_core/Virtual-Memory.json > pmu-events/arch/x86/NehalemEX_core/Cache.json > pmu-events/arch/x86/NehalemEX_core/Pipeline.json > pmu-events/arch/x86/NehalemEX_core/Floating-point.json > pmu-events/arch/x86/NehalemEX_core/Other.json > pmu-events/arch/x86/mapfile.csv > pmu-events/arch/x86/Broadwell_core > pmu-events/arch/x86/Broadwell_core/Memory.json > pmu-events/arch/x86/Broadwell_core/Virtual-Memory.json > pmu-events/arch/x86/Broadwell_core/Cache.json > pmu-events/arch/x86/Broadwell_core/Pipeline.json > pmu-events/arch/x86/Broadwell_core/Floating-point.json > pmu-events/arch/x86/Broadwell_core/Other.json > pmu-events/arch/x86/Broadwell_core/Frontend.json > > so let's have a discussion if this is acceptable for you guys Splitting is fine for me, as long as it's scriptable. I already have some scripts to generate the perf json files, can update them to split. > > I've already made some changes in pmu-events/* to support > this hierarchy to see how bad the change would be.. and > it's not that bad ;-) Everything has to be automated, please no manual changes. -Andi
[toc] | [prev] | [next] | [standalone]
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Date | 2016-08-31 17:00 +0200 |
| Message-ID | <scf9E-3I8-29@gated-at.bofh.it> |
| In reply to | #1473560 |
On Wed, Aug 31, 2016 at 07:42:47AM -0700, Andi Kleen wrote: > > hi, > > I had discussion with Ingo about the state of this patchset > > and there's one more requirement from his side - to split > > event files into per topic files > > Thanks Jiri. > > > > I made some initial changes over latest Sukadev's branch > > and came up with something like this: > > Did you just split it by the "Topic" fields? yep > > > > > $ find pmu-events/arch/x86/ > > pmu-events/arch/x86/ > > pmu-events/arch/x86/NehalemEX_core > > pmu-events/arch/x86/NehalemEX_core/Memory.json > > pmu-events/arch/x86/NehalemEX_core/Virtual-Memory.json > > pmu-events/arch/x86/NehalemEX_core/Cache.json > > pmu-events/arch/x86/NehalemEX_core/Pipeline.json > > pmu-events/arch/x86/NehalemEX_core/Floating-point.json > > pmu-events/arch/x86/NehalemEX_core/Other.json > > pmu-events/arch/x86/mapfile.csv > > pmu-events/arch/x86/Broadwell_core > > pmu-events/arch/x86/Broadwell_core/Memory.json > > pmu-events/arch/x86/Broadwell_core/Virtual-Memory.json > > pmu-events/arch/x86/Broadwell_core/Cache.json > > pmu-events/arch/x86/Broadwell_core/Pipeline.json > > pmu-events/arch/x86/Broadwell_core/Floating-point.json > > pmu-events/arch/x86/Broadwell_core/Other.json > > pmu-events/arch/x86/Broadwell_core/Frontend.json > > > > so let's have a discussion if this is acceptable for you guys > > Splitting is fine for me, as long as it's scriptable. > > I already have some scripts to generate the perf json files, > can update them to split. yep, there's split-json.py script earlier in the perf/json branch > > > > > I've already made some changes in pmu-events/* to support > > this hierarchy to see how bad the change would be.. and > > it's not that bad ;-) > > Everything has to be automated, please no manual changes. sure so, if you're ok with the layout, how do you want to proceed further? thanks, jirka
[toc] | [prev] | [next] | [standalone]
| From | Andi Kleen <ak@linux.intel.com> |
|---|---|
| Date | 2016-08-31 18:20 +0200 |
| Message-ID | <scgp5-4D4-45@gated-at.bofh.it> |
| In reply to | #1473580 |
> > > > > > > > I've already made some changes in pmu-events/* to support > > > this hierarchy to see how bad the change would be.. and > > > it's not that bad ;-) > > > > Everything has to be automated, please no manual changes. > > sure > > so, if you're ok with the layout, how do you want to proceed further? If the split version is acceptable it's fine for me to merge it. I'll add split-json to my scripting, so the next update would be split too. -Andi
[toc] | [prev] | [next] | [standalone]
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Date | 2016-09-01 08:50 +0200 |
| Message-ID | <sctZ0-5lz-3@gated-at.bofh.it> |
| In reply to | #1473657 |
On Wed, Aug 31, 2016 at 09:15:30AM -0700, Andi Kleen wrote: > > > > > > > > > > > I've already made some changes in pmu-events/* to support > > > > this hierarchy to see how bad the change would be.. and > > > > it's not that bad ;-) > > > > > > Everything has to be automated, please no manual changes. > > > > sure > > > > so, if you're ok with the layout, how do you want to proceed further? > > If the split version is acceptable it's fine for me to merge it. > > I'll add split-json to my scripting, so the next update would > be split too. ook, I'll wait for patches then thanks, jirka
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web