After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 797171 - omx: log OMX commands and events
omx: log OMX commands and events
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-omx
git master
Other Linux
: Normal enhancement
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-09-19 08:52 UTC by Guillaume Desmottes
Modified: 2018-09-26 07:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
omx: rename log_omx_performance() to log_omx_performance_buffer() (2.59 KB, patch)
2018-09-19 08:52 UTC, Guillaume Desmottes
committed Details | Review
omx: log OMX events with OMX_PERFORMANCE debug category (5.30 KB, patch)
2018-09-19 08:53 UTC, Guillaume Desmottes
committed Details | Review
omx: factor out gst_omx_component_send_command() (2.36 KB, patch)
2018-09-19 08:53 UTC, Guillaume Desmottes
committed Details | Review
omx: log OMX commands with OMX_PERFORMANCE debug category (2.65 KB, patch)
2018-09-19 08:53 UTC, Guillaume Desmottes
committed Details | Review
omx: rename OMX_PERFORMANCE debug cat to OMX_API_TRACE (3.70 KB, patch)
2018-09-19 08:53 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2018-09-19 08:52:03 UTC
We often found the need to have a clear view of the OMX <-> gst exchanges while debugging. We were having a good view of the buffer exchanges thanks to the OMX_PERFORMANCE debug cat but not the commands and events.

So I extended it and renamed it to OMX_API_TRACE as it's now more generic.
Comment 1 Guillaume Desmottes 2018-09-19 08:52:28 UTC
Created attachment 373697 [details] [review]
omx: rename log_omx_performance() to log_omx_performance_buffer()

I'm about to log more things under this category
Comment 2 Guillaume Desmottes 2018-09-19 08:53:05 UTC
Created attachment 373698 [details] [review]
omx: log OMX events with OMX_PERFORMANCE debug category

It has been useful to have a clear raw and structured view of the gst
<-> OMX exchanges when debugging.
Comment 3 Guillaume Desmottes 2018-09-19 08:53:17 UTC
Created attachment 373699 [details] [review]
omx: factor out gst_omx_component_send_command()

No semantic change. I'm going to add extra debug in this function.
Comment 4 Guillaume Desmottes 2018-09-19 08:53:23 UTC
Created attachment 373700 [details] [review]
omx: log OMX commands with OMX_PERFORMANCE debug category

It has been useful to have a clear raw and structured view of the gst
<-> OMX exchanges when debugging.
Comment 5 Guillaume Desmottes 2018-09-19 08:53:29 UTC
Created attachment 373701 [details] [review]
omx: rename OMX_PERFORMANCE debug cat to OMX_API_TRACE

This debug category can now be used to track more OMX calls and events
so best to rename it to something more generic.
Comment 6 Nicolas Dufresne (ndufresne) 2018-09-22 17:37:57 UTC
Review of attachment 373697 [details] [review]:

.
Comment 7 Nicolas Dufresne (ndufresne) 2018-09-22 17:38:25 UTC
Review of attachment 373698 [details] [review]:

.
Comment 8 Nicolas Dufresne (ndufresne) 2018-09-22 17:39:00 UTC
Review of attachment 373699 [details] [review]:

.
Comment 9 Nicolas Dufresne (ndufresne) 2018-09-22 17:39:40 UTC
Review of attachment 373700 [details] [review]:

.
Comment 10 Nicolas Dufresne (ndufresne) 2018-09-22 17:40:32 UTC
Review of attachment 373701 [details] [review]:

This is a first step, should be rename the functions too ?
Comment 11 Guillaume Desmottes 2018-09-26 07:20:20 UTC
(In reply to Nicolas Dufresne (ndufresne) from comment #10)
> Review of attachment 373701 [details] [review] [review]:
> 
> This is a first step, should be rename the functions too ?

Good point. I renamed them to log_omx_api_trace_*
Comment 12 Guillaume Desmottes 2018-09-26 07:21:43 UTC
Attachment 373697 [details] pushed as 313deb4 - omx: rename log_omx_performance() to log_omx_performance_buffer()
Attachment 373698 [details] pushed as 9b1598e - omx: log OMX events with OMX_PERFORMANCE debug category
Attachment 373699 [details] pushed as 68f1834 - omx: factor out gst_omx_component_send_command()
Attachment 373700 [details] pushed as 3a16094 - omx: log OMX commands with OMX_PERFORMANCE debug category
Attachment 373701 [details] pushed as 6207459 - omx: rename OMX_PERFORMANCE debug cat to OMX_API_TRACE