Skip to content

Commit 0758679

Browse files
committed
features-linux: expose IntelRdt monitoring support
Commit 34a39b9 introduced the "linux.intelRdt.enableMonitoring" field. This patch supplements it by adding "linux.intelRdt.monitoring" field in the features.json to check if the runtime implementation supports the new field of the spec. Signed-off-by: Markus Lehtonen <[email protected]>
1 parent cabadbc commit 0758679

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

features-linux.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,16 @@ Irrelevant to the availability of Intel RDT on the host operating system.
234234
* **`enabled`** (bool, OPTIONAL) represents whether the runtime supports Intel RDT.
235235
* **`schemata`** (bool, OPTIONAL) represents whether the
236236
(`schemata` field of `linux.intelRdt` in `config.json`)[config-linux.md#intelrdt] is supported.
237+
* **`monitoring`** (bool, OPTIONAL) represents whether the
238+
(`enableMonitoring` field of `linux.intelRdt` in `config.json`)[config-linux.md#intelrdt] is supported.
237239

238240
### Example
239241

240242
```json
241243
"intelRdt": {
242244
"enabled": true,
243-
"schemata": true
245+
"schemata": true,
246+
"monitoring": true
244247
}
245248
```
246249

features.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ Here is a full example for reference.
372372
},
373373
"intelRdt": {
374374
"enabled": true,
375-
"schemata": true
375+
"schemata": true,
376+
"monitoring": true
376377
}
377378
},
378379
"annotations": {

specs-go/features/features.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ type IntelRdt struct {
134134
// Schemata is true if the "linux.intelRdt.enableMonitoring" field of the
135135
// spec is implemented.
136136
Schemata *bool `json:"schemata,omitempty"`
137+
// Monitoring is true if the "linux.intelRdt.enableMonitoring" field of the
138+
// spec is implemented.
139+
// Nil value means "unknown", not "false".
140+
Monitoring *bool `json:"monitoring,omitempty"`
137141
}
138142

139143
// MemoryPolicy represents the "memoryPolicy" field.

0 commit comments

Comments
 (0)