Commit 7f1e8eb
[rocDecode] Add core function entry and exit logs. (#3851)
## Motivation
This PR adds entry and exit logs for core functions.
## Technical Details
- Info level (3) logs are added at core function entry and exit points.
- Monotonic clock stamp, process id, thread id, and file name are added
to the logs.
- The logs now have similar format to HIP logs for better viewing when
both are present.
- Direct error or warning logs to std::cerr. Other logs still go to
std::cout.
## JIRA ID
<!-- If applicable, mention the JIRA ID resolved by this PR (Example:
Resolves SWDEV-12345). -->
<!-- Do not post any JIRA links here. -->
## Test Plan
Set env variable ROCDEC_LOG_LEVEL to control log output.
All CTests and conformance tests must pass. Example summary of the test
results:
- CTests:
Start 1: video_decodeRaw-HEVC
1/15 Test #1: video_decodeRaw-HEVC ............. Passed 2.05 sec
Start 2: video_decodeRaw-AVC
2/15 Test #2: video_decodeRaw-AVC .............. Passed 1.89 sec
Start 3: video_decodeRaw-AV1
3/15 Test #3: video_decodeRaw-AV1 .............. Passed 2.31 sec
Start 4: video_decodeRaw-VP9
4/15 Test #4: video_decodeRaw-VP9 .............. Passed 2.04 sec
Start 5: rocdec_Decode-HEVC
5/15 Test #5: rocdec_Decode-HEVC ............... Passed 0.92 sec
Start 6: rocDecode_Negative_API_Tests
6/15 Test #6: rocDecode_Negative_API_Tests ..... Passed 0.78 sec
Start 7: video_decode-HEVC
7/15 Test #7: video_decode-HEVC ................ Passed 2.74 sec
Start 8: video_decode-AVC
8/15 Test #8: video_decode-AVC ................. Passed 2.64 sec
Start 9: video_decode-AV1
9/15 Test #9: video_decode-AV1 ................. Passed 2.74 sec
Start 10: video_decode-VP9
10/15 Test #10: video_decode-VP9 ................. Passed 2.78 sec
Start 11: video_decodePerf-HEVC
11/15 Test #11: video_decodePerf-HEVC ............ Passed 2.92 sec
Start 12: video_decodeBatch
12/15 Test #12: video_decodeBatch ................ Passed 4.34 sec
Start 13: video_decodeRGB-HEVC
13/15 Test #13: video_decodeRGB-HEVC ............. Passed 33.51 sec
Start 14: video_decodeMem-HEVC
14/15 Test #14: video_decodeMem-HEVC ............. Passed 2.09 sec
Start 15: video_decodeRGB-Resize
15/15 Test #15: video_decodeRGB-Resize ........... Passed 33.94 sec
100% tests passed, 0 tests failed out of 15
- AVC conformance test:
Conformance test completed on the 127 streams:
- The number of passing streams is 127
- The number of failing streams is 0
- The number of streams that did not finish decoding is 0
- HEVC conformance test:
Conformance test completed on the 135 streams:
- The number of passing streams is 135
- The number of failing streams is 0
- The number of streams that did not finish decoding is 0
- AV1 conformance test:
Conformance test completed on the 162 streams:
- The number of passing streams is 162
- The number of failing streams is 0
- The number of streams that did not finish decoding is 0
- VP9 conformance test:
Conformance test completed on the 108 streams:
- The number of passing streams is 108
- The number of failing streams is 0
- The number of streams that did not finish decoding is 0
## Test Result
Function entry/exit logs should show up when ROCDEC_LOG_LEVEL >= 3.
All conformance tests should pass.
## Submission Checklist
- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.1 parent b37bd57 commit 7f1e8eb
File tree
19 files changed
+609
-129
lines changed- projects/rocdecode
- docs/reference
- src
- bit_stream_reader
- parser
- rocdecode-host
- avcodec
- rocdecode
- vaapi
19 files changed
+609
-129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 66 | + | |
| 67 | + | |
74 | 68 | | |
75 | 69 | | |
76 | | - | |
77 | | - | |
| 70 | + | |
| 71 | + | |
78 | 72 | | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
82 | 76 | | |
83 | 77 | | |
84 | 78 | | |
| 79 | + | |
85 | 80 | | |
86 | 81 | | |
87 | 82 | | |
| |||
97 | 92 | | |
98 | 93 | | |
99 | 94 | | |
| 95 | + | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
103 | 99 | | |
| 100 | + | |
104 | 101 | | |
105 | 102 | | |
106 | 103 | | |
| |||
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
| 116 | + | |
119 | 117 | | |
120 | 118 | | |
121 | 119 | | |
| |||
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
| 159 | + | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| 341 | + | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
| 346 | + | |
344 | 347 | | |
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
349 | 352 | | |
350 | 353 | | |
| 354 | + | |
351 | 355 | | |
352 | 356 | | |
353 | 357 | | |
| |||
364 | 368 | | |
365 | 369 | | |
366 | 370 | | |
| 371 | + | |
367 | 372 | | |
368 | 373 | | |
369 | 374 | | |
| |||
375 | 380 | | |
376 | 381 | | |
377 | 382 | | |
| 383 | + | |
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
| |||
404 | 410 | | |
405 | 411 | | |
406 | 412 | | |
| 413 | + | |
407 | 414 | | |
408 | 415 | | |
409 | 416 | | |
| |||
423 | 430 | | |
424 | 431 | | |
425 | 432 | | |
| 433 | + | |
426 | 434 | | |
427 | 435 | | |
428 | 436 | | |
429 | 437 | | |
| 438 | + | |
430 | 439 | | |
431 | 440 | | |
432 | 441 | | |
| |||
444 | 453 | | |
445 | 454 | | |
446 | 455 | | |
| 456 | + | |
447 | 457 | | |
448 | 458 | | |
449 | 459 | | |
450 | 460 | | |
| 461 | + | |
451 | 462 | | |
| 463 | + | |
452 | 464 | | |
453 | 465 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
458 | 476 | | |
459 | 477 | | |
460 | 478 | | |
| |||
464 | 482 | | |
465 | 483 | | |
466 | 484 | | |
467 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
468 | 488 | | |
469 | 489 | | |
470 | 490 | | |
471 | 491 | | |
| 492 | + | |
472 | 493 | | |
473 | 494 | | |
474 | 495 | | |
475 | 496 | | |
476 | 497 | | |
477 | 498 | | |
| 499 | + | |
| 500 | + | |
478 | 501 | | |
479 | 502 | | |
480 | | - | |
| 503 | + | |
| 504 | + | |
481 | 505 | | |
482 | | - | |
| 506 | + | |
| 507 | + | |
483 | 508 | | |
484 | 509 | | |
485 | | - | |
| 510 | + | |
| 511 | + | |
486 | 512 | | |
487 | | - | |
| 513 | + | |
| 514 | + | |
488 | 515 | | |
489 | | - | |
| 516 | + | |
| 517 | + | |
490 | 518 | | |
| 519 | + | |
| 520 | + | |
491 | 521 | | |
492 | 522 | | |
493 | 523 | | |
| 524 | + | |
494 | 525 | | |
495 | 526 | | |
496 | 527 | | |
| |||
557 | 588 | | |
558 | 589 | | |
559 | 590 | | |
| 591 | + | |
560 | 592 | | |
561 | 593 | | |
562 | 594 | | |
563 | 595 | | |
| 596 | + | |
564 | 597 | | |
565 | 598 | | |
566 | 599 | | |
| |||
656 | 689 | | |
657 | 690 | | |
658 | 691 | | |
| 692 | + | |
659 | 693 | | |
660 | 694 | | |
661 | 695 | | |
662 | 696 | | |
| 697 | + | |
663 | 698 | | |
664 | 699 | | |
665 | 700 | | |
| |||
800 | 835 | | |
801 | 836 | | |
802 | 837 | | |
| 838 | + | |
803 | 839 | | |
804 | 840 | | |
805 | 841 | | |
806 | 842 | | |
| 843 | + | |
807 | 844 | | |
808 | 845 | | |
| 846 | + | |
809 | 847 | | |
810 | 848 | | |
811 | 849 | | |
| |||
819 | 857 | | |
820 | 858 | | |
821 | 859 | | |
| 860 | + | |
822 | 861 | | |
823 | 862 | | |
824 | 863 | | |
| |||
840 | 879 | | |
841 | 880 | | |
842 | 881 | | |
| 882 | + | |
843 | 883 | | |
844 | 884 | | |
845 | 885 | | |
| |||
858 | 898 | | |
859 | 899 | | |
860 | 900 | | |
| 901 | + | |
861 | 902 | | |
862 | 903 | | |
863 | 904 | | |
| |||
1092 | 1133 | | |
1093 | 1134 | | |
1094 | 1135 | | |
| 1136 | + | |
1095 | 1137 | | |
1096 | 1138 | | |
1097 | 1139 | | |
1098 | 1140 | | |
| 1141 | + | |
1099 | 1142 | | |
1100 | 1143 | | |
1101 | 1144 | | |
| |||
1127 | 1170 | | |
1128 | 1171 | | |
1129 | 1172 | | |
| 1173 | + | |
1130 | 1174 | | |
1131 | 1175 | | |
1132 | 1176 | | |
1133 | 1177 | | |
| 1178 | + | |
1134 | 1179 | | |
1135 | 1180 | | |
1136 | 1181 | | |
| |||
1172 | 1217 | | |
1173 | 1218 | | |
1174 | 1219 | | |
| 1220 | + | |
1175 | 1221 | | |
1176 | 1222 | | |
1177 | 1223 | | |
1178 | 1224 | | |
| 1225 | + | |
1179 | 1226 | | |
1180 | 1227 | | |
1181 | 1228 | | |
| |||
1207 | 1254 | | |
1208 | 1255 | | |
1209 | 1256 | | |
| 1257 | + | |
1210 | 1258 | | |
1211 | 1259 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
0 commit comments