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

uncore-power.json (4288B)


      1[
      2    {
      3        "BriefDescription": "PCU clock ticks. Use to get percentages of PCU cycles events",
      4        "Counter": "0,1,2,3",
      5        "EventName": "UNC_P_CLOCKTICKS",
      6        "PerPkg": "1",
      7        "Unit": "PCU"
      8    },
      9    {
     10        "BriefDescription": "This is an occupancy event that tracks the number of cores that are in C0.  It can be used by itself to get the average number of cores in C0, with threshholding to generate histograms, or with other PCU events and occupancy triggering to capture other details",
     11        "Counter": "0,1,2,3",
     12        "EventCode": "0x80",
     13        "EventName": "UNC_P_POWER_STATE_OCCUPANCY.CORES_C0",
     14        "Filter": "occ_sel=1",
     15        "MetricExpr": "(UNC_P_POWER_STATE_OCCUPANCY.CORES_C0 / UNC_P_CLOCKTICKS) * 100.",
     16        "MetricName": "power_state_occupancy.cores_c0 %",
     17        "PerPkg": "1",
     18        "Unit": "PCU"
     19    },
     20    {
     21        "BriefDescription": "This is an occupancy event that tracks the number of cores that are in C3.  It can be used by itself to get the average number of cores in C0, with threshholding to generate histograms, or with other PCU events and occupancy triggering to capture other details",
     22        "Counter": "0,1,2,3",
     23        "EventCode": "0x80",
     24        "EventName": "UNC_P_POWER_STATE_OCCUPANCY.CORES_C3",
     25        "Filter": "occ_sel=2",
     26        "MetricExpr": "(UNC_P_POWER_STATE_OCCUPANCY.CORES_C3 / UNC_P_CLOCKTICKS) * 100.",
     27        "MetricName": "power_state_occupancy.cores_c3 %",
     28        "PerPkg": "1",
     29        "Unit": "PCU"
     30    },
     31    {
     32        "BriefDescription": "This is an occupancy event that tracks the number of cores that are in C6.  It can be used by itself to get the average number of cores in C0, with threshholding to generate histograms, or with other PCU events ",
     33        "Counter": "0,1,2,3",
     34        "EventCode": "0x80",
     35        "EventName": "UNC_P_POWER_STATE_OCCUPANCY.CORES_C6",
     36        "Filter": "occ_sel=3",
     37        "MetricExpr": "(UNC_P_POWER_STATE_OCCUPANCY.CORES_C6 / UNC_P_CLOCKTICKS) * 100.",
     38        "MetricName": "power_state_occupancy.cores_c6 %",
     39        "PerPkg": "1",
     40        "Unit": "PCU"
     41    },
     42    {
     43        "BriefDescription": "Counts the number of cycles that we are in external PROCHOT mode.  This mode is triggered when a sensor off the die determines that something off-die (like DRAM) is too hot and must throttle to avoid damaging the chip",
     44        "Counter": "0,1,2,3",
     45        "EventCode": "0xA",
     46        "EventName": "UNC_P_PROCHOT_EXTERNAL_CYCLES",
     47        "MetricExpr": "(UNC_P_PROCHOT_EXTERNAL_CYCLES / UNC_P_CLOCKTICKS) * 100.",
     48        "MetricName": "prochot_external_cycles %",
     49        "PerPkg": "1",
     50        "Unit": "PCU"
     51    },
     52    {
     53        "BriefDescription": "Counts the number of cycles when temperature is the upper limit on frequency",
     54        "Counter": "0,1,2,3",
     55        "EventCode": "0x4",
     56        "EventName": "UNC_P_FREQ_MAX_LIMIT_THERMAL_CYCLES",
     57        "MetricExpr": "(UNC_P_FREQ_MAX_LIMIT_THERMAL_CYCLES / UNC_P_CLOCKTICKS) * 100.",
     58        "MetricName": "freq_max_limit_thermal_cycles %",
     59        "PerPkg": "1",
     60        "Unit": "PCU"
     61    },
     62    {
     63        "BriefDescription": "Counts the number of cycles when the OS is the upper limit on frequency",
     64        "Counter": "0,1,2,3",
     65        "EventCode": "0x6",
     66        "EventName": "UNC_P_FREQ_MAX_OS_CYCLES",
     67        "MetricExpr": "(UNC_P_FREQ_MAX_OS_CYCLES / UNC_P_CLOCKTICKS) * 100.",
     68        "MetricName": "freq_max_os_cycles %",
     69        "PerPkg": "1",
     70        "Unit": "PCU"
     71    },
     72    {
     73        "BriefDescription": "Counts the number of cycles when power is the upper limit on frequency",
     74        "Counter": "0,1,2,3",
     75        "EventCode": "0x5",
     76        "EventName": "UNC_P_FREQ_MAX_POWER_CYCLES",
     77        "MetricExpr": "(UNC_P_FREQ_MAX_POWER_CYCLES / UNC_P_CLOCKTICKS) * 100.",
     78        "MetricName": "freq_max_power_cycles %",
     79        "PerPkg": "1",
     80        "Unit": "PCU"
     81    },
     82    {
     83        "BriefDescription": "Counts the number of cycles when current is the upper limit on frequency",
     84        "Counter": "0,1,2,3",
     85        "EventCode": "0x74",
     86        "EventName": "UNC_P_FREQ_TRANS_CYCLES",
     87        "MetricExpr": "(UNC_P_FREQ_TRANS_CYCLES / UNC_P_CLOCKTICKS) * 100.",
     88        "MetricName": "freq_trans_cycles %",
     89        "PerPkg": "1",
     90        "Unit": "PCU"
     91    }
     92]