diff options
Diffstat (limited to 'arch/powerpc/perf/hv-24x7-domains.h')
-rw-r--r-- | arch/powerpc/perf/hv-24x7-domains.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/powerpc/perf/hv-24x7-domains.h b/arch/powerpc/perf/hv-24x7-domains.h new file mode 100644 index 000000000000..49c1efd50045 --- /dev/null +++ b/arch/powerpc/perf/hv-24x7-domains.h | |||
@@ -0,0 +1,28 @@ | |||
1 | |||
2 | /* | ||
3 | * DOMAIN(name, num, index_kind, is_physical) | ||
4 | * | ||
5 | * @name: An all caps token, suitable for use in generating an enum | ||
6 | * member and appending to an event name in sysfs. | ||
7 | * | ||
8 | * @num: The number corresponding to the domain as given in | ||
9 | * documentation. We assume the catalog domain and the hcall | ||
10 | * domain have the same numbering (so far they do), but this | ||
11 | * may need to be changed in the future. | ||
12 | * | ||
13 | * @index_kind: A stringifiable token describing the meaning of the index | ||
14 | * within the given domain. Must fit the parsing rules of the | ||
15 | * perf sysfs api. | ||
16 | * | ||
17 | * @is_physical: True if the domain is physical, false otherwise (if virtual). | ||
18 | * | ||
19 | * Note: The terms PHYS_CHIP, PHYS_CORE, VCPU correspond to physical chip, | ||
20 | * physical core and virtual processor in 24x7 Counters specifications. | ||
21 | */ | ||
22 | |||
23 | DOMAIN(PHYS_CHIP, 0x01, chip, true) | ||
24 | DOMAIN(PHYS_CORE, 0x02, core, true) | ||
25 | DOMAIN(VCPU_HOME_CORE, 0x03, vcpu, false) | ||
26 | DOMAIN(VCPU_HOME_CHIP, 0x04, vcpu, false) | ||
27 | DOMAIN(VCPU_HOME_NODE, 0x05, vcpu, false) | ||
28 | DOMAIN(VCPU_REMOTE_NODE, 0x06, vcpu, false) | ||