stats.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // +build linux
  2. package intelrdt
  3. type L3CacheInfo struct {
  4. CbmMask string `json:"cbm_mask,omitempty"`
  5. MinCbmBits uint64 `json:"min_cbm_bits,omitempty"`
  6. NumClosids uint64 `json:"num_closids,omitempty"`
  7. }
  8. type MemBwInfo struct {
  9. BandwidthGran uint64 `json:"bandwidth_gran,omitempty"`
  10. DelayLinear uint64 `json:"delay_linear,omitempty"`
  11. MinBandwidth uint64 `json:"min_bandwidth,omitempty"`
  12. NumClosids uint64 `json:"num_closids,omitempty"`
  13. }
  14. type Stats struct {
  15. // The read-only L3 cache information
  16. L3CacheInfo *L3CacheInfo `json:"l3_cache_info,omitempty"`
  17. // The read-only L3 cache schema in root
  18. L3CacheSchemaRoot string `json:"l3_cache_schema_root,omitempty"`
  19. // The L3 cache schema in 'container_id' group
  20. L3CacheSchema string `json:"l3_cache_schema,omitempty"`
  21. // The read-only memory bandwidth information
  22. MemBwInfo *MemBwInfo `json:"mem_bw_info,omitempty"`
  23. // The read-only memory bandwidth schema in root
  24. MemBwSchemaRoot string `json:"mem_bw_schema_root,omitempty"`
  25. // The memory bandwidth schema in 'container_id' group
  26. MemBwSchema string `json:"mem_bw_schema,omitempty"`
  27. }
  28. func NewStats() *Stats {
  29. return &Stats{}
  30. }