1    /*
     2     * Copyright (c) 2012, Texas Instruments Incorporated
     3     * All rights reserved.
     4     *
     5     * Redistribution and use in source and binary forms, with or without
     6     * modification, are permitted provided that the following conditions
     7     * are met:
     8     *
     9     * *  Redistributions of source code must retain the above copyright
    10     *    notice, this list of conditions and the following disclaimer.
    11     *
    12     * *  Redistributions in binary form must reproduce the above copyright
    13     *    notice, this list of conditions and the following disclaimer in the
    14     *    documentation and/or other materials provided with the distribution.
    15     *
    16     * *  Neither the name of Texas Instruments Incorporated nor the names of
    17     *    its contributors may be used to endorse or promote products derived
    18     *    from this software without specific prior written permission.
    19     *
    20     * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    21     * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    22     * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    23     * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
    24     * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    25     * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
    26     * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
    27     * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    28     * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
    29     * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
    30     * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    31     * */
    32    
    33    /*
    34     *  ======== DvtTypes.xdc ========
    35     */
    36    
    37    package ti.uia.events;
    38    import xdc.runtime.Diags;
    39    
    40    /*!
    41     *  ======== DvtTypes ========
    42     *  Constants and types used by DVT meta data
    43     */
    44    
    45    module DvtTypes {
    46    
    47        metaonly enum DvtAnalysisType {
    48            DvtAnalysisType_START,
    49            DvtAnalysisType_STOP,
    50            DvtAnalysisType_STARTSTOP,
    51            DvtAnalysisType_FUNCTIONENTRY,
    52            DvtAnalysisType_FUNCTIONEXIT,
    53            DvtAnalysisType_SYNCPOINT,
    54            DvtAnalysisType_CONTEXTCHANGE,
    55            DvtAnalysisType_STATECHANGE,
    56            DvtAnalysisType_MESSAGEMONITOR,
    57            DvtAnalysisType_STATISTIC,
    58            DvtAnalysisType_SEMAPHORE,
    59            DvtAnalysisType_LOCK,
    60            DvtAnalysisType_EVENTMARKER,
    61            DvtAnalysisType_MEMORYSNAPSHOT,
    62            DvtAnalysisType_STRINGSNAPSHOT,
    63            DvtAnalysisType_NAMESNAPSHOT,
    64            DvtAnalysisType_STACKSNAPSHOT,
    65            DvtAnalysisType_REGISTERSNAPSHOT,
    66            DvtAnalysisType_CUSTOM
    67        }
    68    
    69        metaonly enum DvtDataDesc {
    70            DvtDataDesc_TIMESTAMP32,
    71            DvtDataDesc_TIMESTAMP64_MSW,
    72            DvtDataDesc_TIMESTAMP64_LSW,
    73            DvtDataDesc_TIMESTAMP_CTIME,
    74    
    75            DvtDataDesc_COOKIE,
    76            DvtDataDesc_SIZE,
    77    
    78            DvtDataDesc_PROGRAMADRS,
    79            DvtDataDesc_FUNCTIONADRS,
    80            DvtDataDesc_DATAADRS,
    81            DvtDataDesc_STRINGADRS,
    82    
    83            DvtDataDesc_INSTANCE,
    84            DvtDataDesc_INITIATOR,
    85            DvtDataDesc_PROCESSID,
    86            DvtDataDesc_THREADID,
    87            DvtDataDesc_TASKID,
    88            DvtDataDesc_CHANNELID,
    89            DvtDataDesc_PACKETID,
    90            DvtDataDesc_FRAMEID,
    91            DvtDataDesc_APPID,
    92            DvtDataDesc_HWIID,
    93            DvtDataDesc_SWIID,
    94            DvtDataDesc_STATEID,
    95            DvtDataDesc_STATESTRINGADRS,
    96    
    97            DvtDataDesc_COUNTER,
    98            DvtDataDesc_VALUE,
    99            DvtDataDesc_FLAG,
   100            DvtDataDesc_SEMAPHORE,
   101            DvtDataDesc_RETURNVALUE,
   102            DvtDataDesc_PARAMVALUE,
   103            DvtDataDesc_EXPECTEDVALUE,
   104    
   105            DvtDataDesc_TESTNUMBER,
   106            DvtDataDesc_RESULT,
   107            DvtDataDesc_ERRORCODE,
   108            DvtDataDesc_EVENTCODE,
   109    
   110            DvtDataDesc_FILENAMESTR,
   111            DvtDataDesc_LINENUM,
   112            DvtDataDesc_FMTSTR,
   113    
   114            DvtDataDesc_GLOBALSYMBOLADRS,
   115            DvtDataDesc_ENUMVALUE,
   116            DvtDataDesc_LENGTHINMAUS,
   117            DvtDataDesc_DATAARRAY,
   118            DvtDataDesc_REFERENCEID,
   119            DvtDataDesc_SNAPSHOTID,
   120            DvtDataDesc_CUSTOM
   121        }
   122    
   123        metaonly struct ParamDescriptor {
   124            String name;
   125            DvtDataDesc dataDesc;
   126            String strCustomDataDesc;
   127            String dataTypeName;
   128            String units;
   129            Bool isHidden;
   130            Int  lsb;
   131        }
   132    
   133        /*!
   134         *  ======== EventDescriptor ========
   135         *  @_nodoc
   136         *  DVT event descriptor.
   137         */
   138        metaonly struct MetaEventDescriptor {
   139            String versionId;
   140            DvtAnalysisType analysisType;
   141            String strCustomAnalysisType;
   142            String displayText;
   143            String tooltipText;
   144            Bool isMultiEventRecordItem;
   145            Int multiEventRecordItemIndex;
   146            Int multiEventRecordLength;
   147            Int numParameters;
   148            ParamDescriptor paramInfo[];
   149        }
   150    
   151    }