命令参数说明
字节对齐检查就是在需要考虑字节对齐时,检查源码中结构体类型变量的字节对齐检查。
命令功能
查看所有结构体字节对齐检查命令参数。
命令格式
devkit advisor byte-align -h
使用实例
执行以下命令,查看所有命令参数说明。
devkit advisor byte-align -h
返回信息如下:
OVERVIEW Run this command to check the byte alignment of structure variables in the source code. USAGE devkit advisor byte-align {-i INPUT_PATH | --input INPUT_PATH} {-c COMMAND | --cmd COMMAND} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-b {make,cmake, automake} | --build-tool {make,cmake, automake}] [-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] OPTIONS -i, --input INPUT_PATH [Mandatory option] Specifies the path of the source code folder to be scanned. -c, --cmd COMMAND [Mandatory option] Specifies the build command of the source code. -o, --output OUTPUT_PATH Specify the path for storing the scan report and the file name. By default, the file is stored in the current path(pwd) and its name is in the format of function name_timestamp. -b, --build-tool {make,cmake,automake} Specify the building tool. The default value is make. -l, --log-level {0,1,2,3} Specifies the log level of the current task, 0(DEBUG) | 1(INFO) | 2(WARNING) | 3(ERROR). The default value is 1(INFO). -r, --report-type {all,json,html,csv} Specify the report type for the scan report. The default value is all. --set-timeout <min> Specifies the timeout period of a task. By default, the timeout period is not set. EXAMPLE # Scan a project and generate scanning reports. devkit advisor byte-align -i /home/advisor/project -b make -c 'make'
父主题: 字节对齐检查