64-Bit Running Mode Check
The 64-bit running mode check function identifies the 32-bit applications to be ported to the 64-bit platform and provides modification suggestions. It supports GCC 4.8.5 to GCC 10.3.0.
Command Function
Uses the terminal tool to check the running mode.
Syntax
1 | devkit advisor run-mode [-h | --help] {-i INPUT_PATH | --input INPUT_PATH} {-c COMMAND | --command COMMAND} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-l {0,1,2,3} | --log-level {0,1,2,3}] [-r {all,json,html,csv} | --report-type {all,json,html,csv}] [--set-timeout TIMEOUT] |
Parameter Description
Parameter |
Option |
Description |
|---|---|---|
-h/--help |
- |
Obtains help information. |
-i/--input |
input_path |
Path to the source code folder to be scanned. This parameter is mandatory. |
-c/--command |
command |
Source code build command. This parameter is mandatory. If there are multiple build commands executed on the server, separate them with semicolons (;) and enclose them with double quotation marks ("). If a command contains spaces, enclose the spaces as well. Example: "mkdir build;cd build;cmake ..;make" NOTE:
The source code build command in the command line tool does not support variable setting and environment variable export. Example: "CFLAGS='-O0 -g';make" or "export CFLAGS='-O0 -g';make" |
-o/--output |
output_path |
Path for storing scan reports. By default, scan reports are stored in the current execution path. A report name is the format of Module name_Timestamp. |
--set-timeout |
time |
Timeout interval of a task, in minutes. If the execution duration exceeds the timeout interval, the task exits. 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, which defaults to 1.
|
-r/--report-type |
all/json/html/csv |
Scan report format, which defaults to all.
|
Example
In this example, the source code in the test005 folder is scanned, the build command is make, the scan report is stored in the /opt/DevKit directory, and the log level is DEBUG. Replace the example parameter values with the actual ones.
1 | devkit advisor run-mode -i /opt/DevKit/workspace/devadmin/affinity/precheck/test005 -c make -o /opt/DevKit -l 0 |
The following information is displayed and a report is generated:
debug: Enter the second level command: advisor
Executing 64-bit Run Mode Check task, please wait...
Current progress: [0%]
Start to get the compile database
Current progress: ################################# [100%]
64-bit Run Mode Check task has been executed.
Environment cleared successfully.
Scanned time: 2025/04/07 01:31:40
Scan status: Succeed. Some items are recommended to be modified.
Configuration:
Source code file path: /opt/DevKit/workspace/devadmin/affinity/precheck/test005
Compile command: make
Log level: debug
Report type: all
Timeout interval setting: The timeout period is not set.
Summary:
5 source files to be modified have been scanned. There are 8 recommended modifications, 8 lines of code need to be modified.
For the detailed information, please check:
/opt/DevKit/mode_check_20250407013140_222d.json
/opt/DevKit/mode_check_20250407013140_222d.html
/opt/DevKit/mode_check_20250407013140_222d.csv
Output Report
Parameter |
Description |
|---|---|
Configuration |
Displays the software source file path. |
Source File to Be Modified |
Displays information such as the path of the source file to be modified. |