msptiCallbackData

msptiCallbackData is the struct corresponding to cbdata of msptiCallbackFunc. It is used to specify the data transferred to the callback function.

The definition is as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
typedef struct {
    msptiApiCallbackSite callbackSite;    // Position of the callback trigger point (start or end).
    const char *functionName;    // Name of the current function
    const void *functionParams;    // Parameter of the current function
    const void *functionReturnValue;    // Pointer to the return value of the Runtime or driver API
    const char *symbolName;    // Name of the symbol operated by the current function
    uint64_t correlationId;    // ID used to correlate msptiCallbackData with activity records. In runtime callback scenarios, the activity record corresponds to the msptiActivityApi data. This ID is identical to correlationId in the msptiActivityApi data that records the runtime callback and can be used for data correlation.
    uint64_t reserved1;    // Reserved.
    uint64_t reserved2;    // Reserved.
    uint64_t *correlationData;    // Pointer for sharing data between API entry and exit points. This field can be used to pass 64-bit data from the entry callback to the exit callback.


} msptiCallbackData;