API List

API Introduction

The msSanitizer tool contains two types of APIs: sanitizer APIs and mstx extended APIs. The sanitizer APIs are used to check the CANN software stack and correspond to the ACL series APIs. These APIs additionally report the code file and line number of the API called to the tool. The header file of the sanitizer APIs needs to be imported and the dynamic library needs to be linked. For details, see Importing API Header Files and Linking Dynamic Libraries. The mstx extended APIs are used to report custom memory pool information for more accurate check. For details, see mstx Extension Functions.

Table 1 msSanitizer APIs

Type

Name

Function Description

sanitizer APIs

sanitizerRtMalloc

Functions as the matching ACL APIs and reports the code file and line number of the sanitizer API calls to the msSanitizer tool.

sanitizerRtMallocCached

sanitizerRtFree

sanitizerRtMemset

sanitizerRtMemsetAsync

sanitizerRtMemcpy

sanitizerRtMemcpyAsync

sanitizerRtMemcpy2d

sanitizerRtMemcpy2dAsync

sanitizerReportMalloc

sanitizerReportFree

mstx Extension Functions

mstxDomainCreateA

Creates a domain.

mstxMemHeapRegister

Registers a memory pool.

mstxMemHeapUnregister

Deregisters a memory pool.

mstxMemRegionsRegister

Registers the secondary memory pool allocation.

mstxMemRegionsUnregister

Deregisters the secondary memory pool allocation.