| $input_559700 >= 8192 | 279 | | | | trc_dump_tevdesc( ID, TD, tid ) |
| | 280 | | | | TRC_ID ID; |
| | 281 | | | | TRC_TEVDESC TD; |
| | 282 | | | | int tid; |
| | 283 | | | | { |
| | 284 | | | | TRC_DATADESC DD; |
| | 285 | | | | |
| | 286 | | | | TRC_DID D; |
| | 287 | | | | |
| | 288 | | | | int user_defined; |
| | 289 | | | | int dummy; |
| | 290 | | | | |
| $input_559708 >= 8192 | 291 | | | | if ( ID->event_dump_hdr ) |
| $input_559716 >= 8192 | 292 | | | | (ID->event_dump_hdr)( ID, tid ); |
| | 293 | | | | |
| $input_559740 >= 8192 | 294 | | | | fprintf( ID->trace_out, "\n" ); |
| | 295 | | | | |
| $input_559764 >= 8192 | 296 | | | | if ( ID->event_dump_hdr ) |
| | 297 | | | | (ID->event_dump_hdr)( ID, tid ); |
| | 298 | | | | |
| $input_559772 >= 8192 | 299 | | | | if ( TD->index >= 0 ) |
| | 300 | | | | { |
| | 301 | | | | fprintf( ID->trace_out, "#%d: \"%s(", |
| | 302 | | | | ( 1000 * ( TD->index + 1 ) ) + ( 2 * TD->eid ) |
| | 303 | | | | + ( ( TD->entry_exit == TRC_EXIT_TEV ) ? 1 : 0 ),
|
| | 304 | | | | TD->name ); |
| | 305 | | | | |
| | 306 | | | | if ( TD->entry_exit == TRC_ENTRY_TEV )
|
| | 307 | | | | fprintf( ID->trace_out, "0." ); |
| | 308 | | | | |
| | 309 | | | | else if ( TD->entry_exit == TRC_EXIT_TEV )
|
| | 310 | | | | fprintf( ID->trace_out, "1." ); |
| | 311 | | | | |
| | 312 | | | | fprintf( ID->trace_out, "%d", TD->index ); |
| | 313 | | | | |
| | 314 | | | | fprintf( ID->trace_out, ")\"\n" ); |
| | 315 | | | | } |
| | 316 | | | | |
| $input_559780 >= 8192 | 317 | | | | else |
| $input_559788 >= 8192 | 318 | | | | fprintf( ID->trace_out, "#%d: \"%s\"\n", TD->eid, TD->name ); |
| | 319 | | | | |
| $input_559828 >= 8192 | 320 | | | | if ( ID->event_dump_hdr ) |
| | 321 | | | | (ID->event_dump_hdr)( ID, tid ); |
| | 322 | | | | |
| $input_559836 >= 8192 | 323 | | | | fprintf( ID->trace_out, "{\n" ); |
| | 324 | | | | |
| $input_559860 >= 8192 | 325 | | | | if ( ID->event_dump_hdr ) |
| | 326 | | | | (ID->event_dump_hdr)( ID, tid ); |
| | 327 | | | | |
| | 328 | | | | |
| | 329 | | | | |
| $input_559868 >= 8192 | 330 | | | | user_defined = !strcmp( TD->name, "user_defined" ); |
| | 331 | | | | |
| $input_559940 >= 8192 | 332 | | | | if ( user_defined ) |
| | 333 | | | | { |
| | 334 | | | | D = trc_get_did( (TRC_HOST) NULL, TEV_DID_TID );
|
| | 335 | | | | |
| | 336 | | | | fprintf( ID->trace_out, "\t// \"%s\" \"%s\"\n", |
| | 337 | | | | D->name, D->desc ); |
| | 338 | | | | |
| | 339 | | | | if ( ID->event_dump_hdr ) |
| | 340 | | | | (ID->event_dump_hdr)( ID, tid ); |
| | 341 | | | | |
| | 342 | | | | fprintf( ID->trace_out, "\t%s \"%s\";\n", |
| | 343 | | | | TRC_TYPE_STRS[ TEV_DATA_INT ], D->name );
|
| | 344 | | | | |
| | 345 | | | | if ( ID->event_dump_hdr ) |
| | 346 | | | | (ID->event_dump_hdr)( ID, tid ); |
| | 347 | | | | } |
| | 348 | | | | |
| | 349 | | | | |
| | 350 | | | | |
| $input_559948 >= 8192 | 351 | | | | DD = TD->ddesc; |
| | 352 | | | | |
| $input_559956 >= 8192 | 353 | | | | dummy = 0; |
| | 354 | | | | |
| $input_559964 >= 8192 | 355 | | | | while ( DD != NULL )
|
| | 356 | | | | { |
| | 357 | | | | if ( !user_defined || DD->did != NULL )
|
| | 358 | | | | { |
| | 359 | | | | fprintf( ID->trace_out, "\t// \"%s\" \"%s\"\n", |
| | 360 | | | | DD->did->name, DD->did->desc ); |
| | 361 | | | | } |
| | 362 | | | | |
| | 363 | | | | else |
| | 364 | | | | { |
| | 365 | | | | fprintf( ID->trace_out, |
| | | | | | ... |
| | 391 | | | | fprintf( ID->trace_out, "[]" ); |
| | 392 | | | | |
| | 393 | | | | fprintf( ID->trace_out, ";\n" ); |
| | 394 | | | | |
| | 395 | | | | if ( ID->event_dump_hdr ) |
| | 396 | | | | (ID->event_dump_hdr)( ID, tid ); |
| | 397 | | | | |
| | 398 | | | | DD = DD->next; |
| | 399 | | | | } |
| | 400 | | | | |
| $input_559972 >= 8192 | 401 | | | | fprintf( ID->trace_out, "};;\n" ); |
| | 402 | | | | |
| $input_559996 >= 8192 | 403 | | | | if ( ID->event_dump_hdr ) |
| | 404 | | | | (ID->event_dump_hdr)( ID, tid ); |
| | 405 | | | | |
| $input_560004 >= 8192 | 406 | | | | fprintf( ID->trace_out, "\n" ); |
| | 407 | | | | |
| $input_560028 >= 8192 | 408 | | | | TD->dump = TRC_FALSE;
|
| $input_560036 >= 8192 | 409 | | | | } |