| .. | .. |
|---|
| 30 | 30 | All the topic JSON files for a CPU model/family should be in a separate |
|---|
| 31 | 31 | sub directory. Thus for the Silvermont X86 CPU: |
|---|
| 32 | 32 | |
|---|
| 33 | | - $ ls tools/perf/pmu-events/arch/x86/Silvermont_core |
|---|
| 34 | | - Cache.json Memory.json Virtual-Memory.json |
|---|
| 35 | | - Frontend.json Pipeline.json |
|---|
| 33 | + $ ls tools/perf/pmu-events/arch/x86/silvermont |
|---|
| 34 | + cache.json memory.json virtual-memory.json |
|---|
| 35 | + frontend.json pipeline.json |
|---|
| 36 | 36 | |
|---|
| 37 | 37 | The JSONs folder for a CPU model/family may be placed in the root arch |
|---|
| 38 | 38 | folder, or may be placed in a vendor sub-folder under the arch folder |
|---|
| .. | .. |
|---|
| 94 | 94 | |
|---|
| 95 | 95 | where 'pm_1plus_ppc_cmpl' is a Power8 PMU event. |
|---|
| 96 | 96 | |
|---|
| 97 | | -However some errors in processing may cause the perf build to fail. |
|---|
| 97 | +However some errors in processing may cause the alias build to fail. |
|---|
| 98 | 98 | |
|---|
| 99 | 99 | Mapfile format |
|---|
| 100 | 100 | =============== |
|---|
| .. | .. |
|---|
| 119 | 119 | |
|---|
| 120 | 120 | Header line |
|---|
| 121 | 121 | The header line is the first line in the file, which is |
|---|
| 122 | | - always _IGNORED_. It can empty. |
|---|
| 122 | + always _IGNORED_. It can be empty. |
|---|
| 123 | 123 | |
|---|
| 124 | 124 | CPUID: |
|---|
| 125 | 125 | CPUID is an arch-specific char string, that can be used |
|---|
| .. | .. |
|---|
| 138 | 138 | files, relative to the directory containing the mapfile.csv |
|---|
| 139 | 139 | |
|---|
| 140 | 140 | Type: |
|---|
| 141 | | - indicates whether the events or "core" or "uncore" events. |
|---|
| 141 | + indicates whether the events are "core" or "uncore" events. |
|---|
| 142 | 142 | |
|---|
| 143 | 143 | |
|---|
| 144 | 144 | Eg: |
|---|
| 145 | 145 | |
|---|
| 146 | | - $ grep Silvermont tools/perf/pmu-events/arch/x86/mapfile.csv |
|---|
| 147 | | - GenuineIntel-6-37,V13,Silvermont_core,core |
|---|
| 148 | | - GenuineIntel-6-4D,V13,Silvermont_core,core |
|---|
| 149 | | - GenuineIntel-6-4C,V13,Silvermont_core,core |
|---|
| 146 | + $ grep silvermont tools/perf/pmu-events/arch/x86/mapfile.csv |
|---|
| 147 | + GenuineIntel-6-37,v13,silvermont,core |
|---|
| 148 | + GenuineIntel-6-4D,v13,silvermont,core |
|---|
| 149 | + GenuineIntel-6-4C,v13,silvermont,core |
|---|
| 150 | 150 | |
|---|
| 151 | 151 | i.e the three CPU models use the JSON files (i.e PMU events) listed |
|---|
| 152 | | - in the directory 'tools/perf/pmu-events/arch/x86/Silvermont_core'. |
|---|
| 152 | + in the directory 'tools/perf/pmu-events/arch/x86/silvermont'. |
|---|