PROTOCOLS
RoleManager
Defined in fuchsia.scheduler/role.fidl
Allows callers to modify the runtime profiles of zircon objects.
GetProfileForRole
Returns a profile handle for the requested role.
- request
targetis the type of profile to retrieve. - request
roleis the name of the role to retrieve. - request
input_parametersis a vector of key/value pairs used to distinguish between multiple variants of the same role.
- response
profileis the handle to the requested profile. - response
output_parametersis 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 |
RoleManagerGetProfileForRoleRequest
|
Response
| Name | Type |
|---|---|
payload |
RoleManager_GetProfileForRole_Result
|
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
targetis a handle to a zircon object to which a profile can be applied. - request
roleis the name of the role to apply to the target. - request
input_parametersis a vector of key/value pairs used to distinguish between multiple variants of the same role.
- response
output_parametersis 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 |
ENUMS
RoleType strict
Type: uint32
Defined in fuchsia.scheduler/role.fidl
| Name | Value | Description |
|---|---|---|
TASK |
0 |
|
MEMORY |
1 |
TABLES
RoleManagerGetProfileForRoleRequest resource
Defined in fuchsia.scheduler/role.fidl
| Ordinal | Field | Type | Description |
|---|---|---|---|
1 |
target |
RoleType
|
|
2 |
role |
RoleName
|
|
3 |
input_parameters |
vector<Parameter>:512
|
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_GetProfileForRole_Response resource
Defined in fuchsia.scheduler/role.fidl
| Ordinal | Field | Type | Description |
|---|---|---|---|
1 |
profile |
handle<profile>
|
|
2 |
output_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_GetProfileForRole_Result strict resource
Defined in fuchsia.scheduler/role.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
RoleManager_GetProfileForRole_Response
|
|
2 |
err |
zx/Status
|
|
3 |
framework_err |
internal
|
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 |