hv-24x7-domains.h 1.0 KB

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