Checking Build Affinity Using Command Lines
Checks build affinity.
Syntax
devkit advisor constr-check {-i INPUT_PATH | --input INPUT_PATH} {-c COMMAND | --cmd COMMAND} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-b {make,cmake} | --build-tool {make,cmake}] [-r {all,json,html,csv} | --report-type {all,json,html,csv}] [-l {0,1,2,3} | --log-level {0,1,2,3}] [--set-timeout TIMEOUT]
Parameter Description
Argument |
Parameter |
Description |
|---|---|---|
-i/--input |
input_path |
Path of the source code folder. This parameter is mandatory. Example: /home/test |
-c/--cmd |
cmd |
Builds source code. This parameter is mandatory. Example: 'make all' |
-o/--output |
output_path |
Path for storing the report. This parameter is optional. By default, the report is saved in the current execution path and is named in the format of Feature name_Timestamp. |
-b/--build-tool |
make,cmake |
Build tool name. This parameter is optional. The options are make (default) and cmake. |
--set-timeout |
time |
Task timeout period. This parameter is optional. By default, there is no timeout interval. The task will be executed until it is complete. |
-l/--log-level |
0,1,2,3 |
Log level. The options are 0 (DEBUG), 1 (INFO), 2 (WARNING) and 3 (ERROR). The default value is 1 (INFO). |
-r/--report-type |
all,json,html,csv |
Format of the scan report. This parameter is optional. The default value is all, indicating that JSON, HTML, and CSV reports are generated. |
Example
Replace the path in the following example command with the actual path of the configuration file to be scanned.
devkit advisor constr-check -i /opt/testcase/affinity/build/wtdbg2-2.5 -c 'make' -r all
Build Affinity Affinity task has been executed.
Scanned time: 2024/03/21 06:11:08
Scan status: Succeed. Some items are recommended to be modified.
Configuration:
Source code file path: /opt/testcase/affinity/build/wtdbg2-2.5
Log level: info
Report type: all
Timeout interval setting: The timeout period is not set.
Summary:
2 dependency files can be accelerated. There are 1 recommended modifications, 1 lines of code need to be modified.
For the detailed information, please check:
/home/sw/testbuild_source/affinity/constr-check_20240321061108_ef0a.json
/home/sw/testbuild_source/affinity/constr-check_20240321061108_ef0a.html
/home/sw/testbuild_source/affinity/constr-check_20240321061108_ef0a.csv
Output Report Description
Parameter |
Description |
|---|---|
Configuration |
Displays the path of the software source file. |
Source File to Be Modified |
Displays information such as the path of the source file that needs to be modified. |