stats.go 592 B

123456789101112131415161718192021222324
  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 Stats struct {
  9. // The read-only L3 cache information
  10. L3CacheInfo *L3CacheInfo `json:"l3_cache_info,omitempty"`
  11. // The read-only L3 cache schema in root
  12. L3CacheSchemaRoot string `json:"l3_cache_schema_root,omitempty"`
  13. // The L3 cache schema in 'container_id' group
  14. L3CacheSchema string `json:"l3_cache_schema,omitempty"`
  15. }
  16. func NewStats() *Stats {
  17. return &Stats{}
  18. }