| | 3073 | | trc_process_trace_event( ID, name, entry_exit, index ) |
| | 3074 | | TRC_ID ID; |
| | 3075 | | char *name; |
| | 3076 | | int entry_exit; |
| | 3077 | | int index; |
| | 3078 | | { |
| | 3079 | | TRC_DATADESC DD; |
| | 3080 | | |
| | 3081 | | TRC_TEVDESC TD; |
| | 3082 | | |
| | 3083 | | TRC_TEVREC TR; |
| | | | ... |
| | 3094 | | short read_short; |
| | 3095 | | long read_long; |
| | 3096 | | int read_int; |
| | 3097 | | |
| | 3098 | | char c; |
| | 3099 | | |
| | 3100 | | int i, j; |
| | 3101 | | int flag; |
| | 3102 | | int num; |
| | 3103 | | |
| | 3104 | | if ( !(ID->handle_event) ) |
| | 3105 | | { |
| | 3106 | | trc_find_event_end( ID ); |
| | 3107 | | |
| | 3108 | | return( TRC_TRUE );
|
| | 3109 | | } |
| | 3110 | | |
| | 3111 | | TD = (TRC_TEVDESC) trc_lookup_trie( TRC_EVENT_TRIE, name ); |
| | 3112 | | |
| | 3113 | | while ( TD != NULL &&
|
| | 3114 | | ( TD->entry_exit != entry_exit || TD->index != index ) ) |
| | 3115 | | { |
| | 3116 | | TD = TD->next; |
| | 3117 | | } |
| | 3118 | | |
| | 3119 | | if ( TD == NULL )
|
| | 3120 | | { |
| | 3121 | | printf( "Error: Event \"%s\" Descriptor Not Found\n", name ); |
| | 3122 | | |
| | 3123 | | trc_find_event_end( ID ); |
| | 3124 | | |
| | 3125 | | return( TRC_FALSE );
|
| | 3126 | | } |
| | 3127 | | |
| | 3128 | | if ( !trc_find_event_str( ID, "{" ) ) |
| | 3129 | | return( TRC_FALSE );
|
| | 3130 | | |
| | 3131 | | |
| | 3132 | | |
| | 3133 | | DD = TD->ddesc; |
| | 3134 | | |
| | 3135 | | TR = (TRC_TEVREC) NULL;
|
| | 3136 | | |
| | 3137 | | while ( DD != NULL )
|
| | 3138 | | { |
| | 3139 | | if ( TR == NULL )
|