---
title: 使用命令行进行64位运行模式检查
description: "使用命令通过终端工具进行运行模式检查。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdevkithistory/devkit_24_rc1/cliuserguide/KunpengDevKitCli_0021.html
sourcePath: /source/zh/kunpengdevkithistory/devkit_24_rc1/cliuserguide/KunpengDevKitCli_0021.html
indexId: 7ecdf23198b6cac947bbbaa28dd74ea191e045b3dba9e253f3d12776491afd9085
---
# 使用命令行进行64位运行模式检查

#### 命令功能

使用命令通过终端工具进行运行模式检查。


#### 命令格式

```
devkit advisor mode-check {-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]
```


#### 参数说明


**表1 参数说明**

| 参数 | 参数选项 | 参数说明 |
| --- | --- | --- |
| \-i/\-\-input | path\-to\-package | 待扫描的源码文件夹路径。 必选参数。 例如：/home/test1 |
| \-o/\-\-output | path\-to\-output | 报告存放路径。 可选参数。 报告默认存放在当前执行路径下，名称默认为“特性名称\_时间戳”。 |
| \-\-set\-timeout | time | 任务超时时间。 可选参数。 默认无超时时间，任务将持续执行直到结束。 |
| \-l/\-\-log\-level | 0,1,2,3 | 日志等级，可选参数：0（DEBUG）、1（INFO）、2（WARNING）、3（ERROR），默认为1（INFO）。 |
| \-r/\-\-report\-type | all,json,html,csv | 扫描报告的格式。 可选参数。 默认为all，即默认生成json、html、csv三种报告。 |


#### 使用实例

此处以以下命令为例，请根据实际情况替换成实际需要扫描的源码文件路径。

```
devkit advisor mode-check -i /opt/DevKit/workspace/devadmin/affinity/precheck/test005 -o /opt/DevKit -l 0
```

返回信息如下，并输出报告。
```
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
```


#### 输出报告说明


**表2 运行模式检查输出报告参数说明**

| 参数 | 说明 |
| --- | --- |
| 配置信息 | 显示软件源码文件存放路径。 |
| 需要修改的源码文件 | 显示需要进行修改的源码文件路径等相关信息。 |
