Rate This Document
Findability
Accuracy
Completeness
Readability

Viewing Analysis Results

Prerequisites

The analysis task is complete.

The porting reports vary with the target OS because different OSs support different SO libraries.

Viewing a Porting Report

  1. Click Source Code Porting in the navigation pane on the left. Historical reports are listed.
  2. In the historical report list, click the report name of the analysis task. The report details page is displayed.

    To display Manpower in the upper right corner of the page, set Display Workload Estimation Results to Yes on the Scan Parameter Settings page.

    Figure 1 Porting report
    Table 1 Parameters in the porting report

    Parameter

    Description

    Configuration

    Task name, report generation time, source file storage path, target OS, target OS kernel version, compiler version, build tool, compile command, user-defined x86 macro, and porting result.

    Architecture-Related Dependencies

    SO files.

    • You can click Download in the Handling Suggestions column to download the dynamic libraries, static library files, software packages, executable files, and JAR packages that are compatible with the Kunpeng platform. You can also download the source code of the Kunpeng version and compile it. For some non–open source dependency files, the download URLs are not available. You need to obtain the files yourself and use them to replace the architecture-related dependency files.
    • For a file whose compatibility with the Kunpeng platform is unknown, verify its compatibility on the Kunpeng platform first. If it is not compatible with the Kunpeng platform, obtain a compatible version from the vendor, obtain the source code and compile it, or use alternative software.

    Source Files to Be Ported

    Number of source files to be ported and number of code lines to be modified. You can click View Suggested Source Code in the Operation column to view the suggestions.

    The file types include C/C++ source file, Fortran, makefile, Python, Go, Java, Scala, and ASM file. You can filter files to view specific file types.

    The file paths are sorted based on Unicode, and the code lines to be modified are sorted in sequence.

Viewing Source Code Porting Suggestions

When editing the original code, save the modification in time. Otherwise, the modification may be lost due to session timeout.

  1. In the Operation column of the report, click View Suggested Source Code.
  2. On the Source Code Porting Suggestions tab page, view the suggestions.
    Figure 2 Source code porting suggestions
    Table 2 Parameter description

    Parameter

    Description

    File List

    Lists the source files analyzed.

    Original Source Code

    Displays the original source code.

    • You can modify the source code. After the modification is complete, click Save, Roll Back, or Cancel in the upper right corner as required.
    • You can move the mouse pointer to the code with a red wavy line and click Quick Fix in the floating message to apply the change automatically. You can also select Batch Apply This Suggestion to modify the same type of code in batches.
    • If you use shortcut keys to modify the source code, pay attention to shortcut key conflicts caused by the input method or IDE environment.
    • Click in the file list on the left to download the required source file.
    • Do not rescan the assembly source code after porting and modification. A rescan may cause inaccurate analysis results.