1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun /* 4*4882a593Smuzhiyun * DOMAIN(name, num, index_kind, is_physical) 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * @name: An all caps token, suitable for use in generating an enum 7*4882a593Smuzhiyun * member and appending to an event name in sysfs. 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * @num: The number corresponding to the domain as given in 10*4882a593Smuzhiyun * documentation. We assume the catalog domain and the hcall 11*4882a593Smuzhiyun * domain have the same numbering (so far they do), but this 12*4882a593Smuzhiyun * may need to be changed in the future. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * @index_kind: A stringifiable token describing the meaning of the index 15*4882a593Smuzhiyun * within the given domain. Must fit the parsing rules of the 16*4882a593Smuzhiyun * perf sysfs api. 17*4882a593Smuzhiyun * 18*4882a593Smuzhiyun * @is_physical: True if the domain is physical, false otherwise (if virtual). 19*4882a593Smuzhiyun * 20*4882a593Smuzhiyun * Note: The terms PHYS_CHIP, PHYS_CORE, VCPU correspond to physical chip, 21*4882a593Smuzhiyun * physical core and virtual processor in 24x7 Counters specifications. 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun DOMAIN(PHYS_CHIP, 0x01, chip, true) 25*4882a593Smuzhiyun DOMAIN(PHYS_CORE, 0x02, core, true) 26*4882a593Smuzhiyun DOMAIN(VCPU_HOME_CORE, 0x03, vcpu, false) 27*4882a593Smuzhiyun DOMAIN(VCPU_HOME_CHIP, 0x04, vcpu, false) 28*4882a593Smuzhiyun DOMAIN(VCPU_HOME_NODE, 0x05, vcpu, false) 29*4882a593Smuzhiyun DOMAIN(VCPU_REMOTE_NODE, 0x06, vcpu, false) 30