Rate This Document
Findability
Accuracy
Completeness
Readability

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

devkit advisor run-mode {-i INPUT_PATH | --input INPUT_PATH} [-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

Table 1 Parameter description

Parameter

Option

Description

-h/--help

-

Obtains help information.

-i/--input

-

Path of the source code folder to be scanned.

-o/--output

-

Path for storing scan reports. By default, scan reports are stored in the current execution path. A report name is the format of Feature name_Timestamp.

--set-timeout

-

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.
  • 0: DEBUG
  • 1: INFO
  • 2: WARNING
  • 3: ERROR

-r/--report-type

all/json/html/csv

Scan report format, which defaults to all.
  • all: generates reports in JSON, HTML, and CSV formats.
  • json: generates a report only in JSON format.
  • html: generates a report only in HTML format.
  • csv: generates a report only in CSV format.

Example

In this example, the source code in the test005 folder is scanned, the scan report is stored in the /opt/DevKit directory, and the log level is DEBUG.

devkit advisor run-mode -i /opt/DevKit/workspace/devadmin/affinity/precheck/test005 -o /opt/DevKit -l 0
The following information is displayed and a report is generated:
Executing 64-bit Run Mode Check task, please wait...
Current progress: 
64-bit Run Mode Check task has been executed.
Environment cleared successfully.

Scanned time: 20240327163253
Scan status: Succeed. Some items are recommended to be modified.

Configuration:
     Source code file path: /opt/DevKit/workspace/devadmin/affinity/precheck/test005
     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_20240327163253_826a.json
    /opt/DevKit/mode_check_20240327163253_826a.html
    /opt/DevKit/mode_check_20240327163253_826a.csv

Output Report

Table 2 Output report parameters

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.