aclprofSetConfig
Description
Functions as an extended API of aclprofCreateConfig and is used to set profile data collection parameters.
This API can be called for multiple times. You need to ensure data consistency and accuracy.
Restrictions
Call aclprofSetConfig and then aclprofStart. You can call this API as required.
Prototype
aclError aclprofSetConfig(aclprofConfigType configType, const char *config, size_t configLength)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
configType |
Input |
Select from the following values as the value of configType: Each enumerated value indicates a different collection configuration. To collect multiple types of profile data, you need to call this API for multiple times. The details are as follows:
|
config |
Input |
Configuration parameter value. |
configLength |
Input |
Length of the config, in bytes. The maximum length is 256 bytes. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.