cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

hv-24x7-domains.h (1081B)


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