Resource Tuner
Loading...
Searching...
No Matches
Resource Class Reference

Used to store information regarding Resources / Tunables which need to be Provisioned as part of the tuneResources API. More...

#include <Resource.h>

Public Attributes

union { 
 
   int32_t   value 
 Use this field for single Valued Resources.
 
   std::vector< int32_t > *   values 
 Use this field for Multi Valued Resources.
 
mResValue 
 The value to be Configured for this Resource Node.
 

Private Attributes

uint32_t mResCode
 A uniqued 32-bit (unsigned) identifier for the Resource.
 
uint32_t mResInfo
 Holds Logical Core and Cluster Information:
 
int32_t mOptionalInfo
 Field to hold optional information for Request Processing.
 
int32_t mNumValues
 Number of values to be configured for the Resource, both single-valued and multi-valued Resources are supported.
 

Detailed Description

Used to store information regarding Resources / Tunables which need to be Provisioned as part of the tuneResources API.

Definition at line 16 of file Resource.h.

Member Data Documentation

◆ mResCode

uint32_t Resource::mResCode
private

A uniqued 32-bit (unsigned) identifier for the Resource.

  • The last 16 bits (17-32) are used to specify the ResId
  • The next 8 bits (9-16) are used to specify the ResType (type of the Resource)
  • In addition for Custom Resources, then the MSB must be set to 1 as well

Definition at line 24 of file Resource.h.

◆ mResInfo

uint32_t Resource::mResInfo
private

Holds Logical Core and Cluster Information:

  • The last 8 bits (25-32) hold the Logical Core Value
  • The next 8 bits (17-24) hold the Logical Cluster Value
  • The next 16 bits hold the Mpam Group ID

Definition at line 32 of file Resource.h.


The documentation for this class was generated from the following file: