Skip to content

Commit 5786013

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 34a39b9 commit 5786013

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
@@ -203,13 +203,16 @@ Irrelevant to the availability of Intel RDT on the host operating system.
203203
* **`enabled`** (bool, OPTIONAL) represents whether the runtime supports Intel RDT.
204204
* **`schemata`** (bool, OPTIONAL) represents whether the
205205
(`schemata` field of `linux.intelRdt` in `config.json`)[config-linux.md#intelrdt] is supported.
206+
* **`monitoring`** (bool, OPTIONAL) represents whether the
207+
(`enableMonitoring` field of `linux.intelRdt` in `config.json`)[config-linux.md#intelrdt] is supported.
206208

207209
### Example
208210

209211
```json
210212
"intelRdt": {
211213
"enabled": true,
212-
"schemata": true
214+
"schemata": true,
215+
"monitoring": true
213216
}
214217
```
215218

features.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ Here is a full example for reference.
356356
},
357357
"intelRdt": {
358358
"enabled": true,
359-
"schemata": true
359+
"schemata": true,
360+
"monitoring": true
360361
}
361362
},
362363
"annotations": {

specs-go/features/features.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ type IntelRdt struct {
130130
// Unrelated to whether the host supports Intel RDT or not.
131131
// Nil value means "unknown", not "false".
132132
Enabled *bool `json:"enabled,omitempty"`
133+
// Monitoring is true if the "linux.intelRdt.enableMonitoring" field of the
134+
// spec is implemented.
135+
// Nil value means "unknown", not "false".
136+
Monitoring *bool `json:"monitoring,omitempty"`
133137
}
134138

135139
// MountExtensions represents the "mountExtensions" field.

0 commit comments

Comments
 (0)