PROTOCOLS
RoleManager
Defined in fuchsia.scheduler/role.fidl
Allows callers to modify the runtime profiles of zircon objects.
SetRole
Sets the given object's performance parameters based on the requested role. The exact parameters of the role are system dependent and may vary based on device-specific tuning and/or runtime system goals.
- request
target
is a handle to a zircon object to which a profile can be applied. - request
role
is the name of the role to apply to the target. - request
input_parameters
is a vector of key/value pairs used to distinguish between multiple variants of the same role.
- response
output_parameters
is a vector of key/value pairs that roles can be configured to emit.
- error a zx_status value indicating success or failure.
Request
Name | Type |
---|---|
payload |
RoleManagerSetRoleRequest
|
Response
Name | Type |
---|---|
payload |
RoleManager_SetRole_Result
|
STRUCTS
Parameter
Defined in fuchsia.scheduler/role.fidl
Field | Type | Description | Default |
---|---|---|---|
key |
string:512
|
No default | |
value |
ParameterValue
|
No default |
RoleName
Defined in fuchsia.scheduler/role.fidl
Field | Type | Description | Default |
---|---|---|---|
role |
string:2048
|
No default |
TABLES
RoleManagerSetRoleRequest resource
Defined in fuchsia.scheduler/role.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
target |
RoleTarget
|
|
2 |
role |
RoleName
|
|
3 |
input_parameters |
vector<Parameter>:512
|
RoleManager_SetRole_Response resource
Defined in fuchsia.scheduler/role.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
output_parameters |
vector<Parameter>:512
|
UNIONS
ParameterValue flexible
Defined in fuchsia.scheduler/role.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
float_value |
float64
|
|
2 |
int_value |
int64
|
|
3 |
string_value |
string:2048
|
RoleManager_SetRole_Result strict resource
Defined in fuchsia.scheduler/role.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
RoleManager_SetRole_Response
|
|
2 |
err |
zx/Status
|
|
3 |
framework_err |
internal
|
RoleTarget flexible resource
Defined in fuchsia.scheduler/role.fidl
A Zircon object to which a profile can be applied. Currently, only threads and vmars are supported.
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
thread |
handle<thread>
|
|
2 |
vmar |
handle<vmar>
|
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
MAX_NAME_LENGTH |
2048
|
int32 |
|
MAX_PARAMETER_COUNT |
512
|
int32 |
|
MAX_PARAMETER_KEY_LENGTH |
512
|
int32 |
|
MAX_PARAMETER_VALUE_LENGTH |
2048
|
int32 |