On Wed, Jan 20, 2021 at 2:07 AM Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx> wrote: > > Hi Fritz, > > On 16/01/2021 04:33, Fritz Koenig wrote: > > Hi, > > > > I'm trying to sort some issues with regards to decoding multiple > > streams at once. Logging can be helpful with messages like this: > > > > [105188.500450] video2: VIDIOC_STREAMOFF: type=vid-out-mplane > > > > The type is telling you useful information there, is that what you are > after? > Sorry, I don't think I explained it well. Here I'm decoding 3 different streams at the same time, say 1080x720, 640x480, and 320x240. Nothing that denotes which is which is present in this level of logging. I understand the distinction between the CAPTURE and OUTPUT queues. I have found that at least for the venus driver, that information is not exported anywhere. This was also meant as a more general question of how to separate the debugging information. I've done that by creating trampoline functions that print out the context information before calling v4l2_m2m_ioctl_streamon/v4l2_m2m_ioctl_streamoff etc. But it's a patch that I have to maintain locally. -Fritz > > but when I have: > > > > [105188.498697] video2: VIDIOC_STREAMOFF: type=vid-out-mplane > > [105188.498715] video2: VIDIOC_STREAMOFF: type=vid-cap-mplane > > [105188.499116] video2: VIDIOC_UNSUBSCRIBE_EVENT: type=0x5, id=0x0, flags=0x0 > > [105188.500450] video2: VIDIOC_STREAMOFF: type=vid-out-mplane > > [105188.500467] video2: VIDIOC_STREAMOFF: type=vid-cap-mplane > > [105188.500611] video2: VIDIOC_UNSUBSCRIBE_EVENT: type=0x5, id=0x0, flags=0x0 > > [105188.501879] video2: VIDIOC_UNSUBSCRIBE_EVENT: type=0x5, id=0x0, flags=0x0 > > [105188.502276] video2: VIDIOC_STREAMOFF: type=vid-out-mplane > > [105188.502331] video2: VIDIOC_STREAMOFF: type=vid-cap-mplane > > > > I can't tell which stream VIDIOC_STREAMOFF is associated with. Is > > there a logging option that I'm missing that would help indicate which > > stream that ioctl is associated with. > > The type expresses if it's from an output queue or a capture queue. > > type=vid-out-mplane : Output queue > type=vid-cap-mplane : Capture queue > > > That's not so helpful/useful on the UNSUBSCRIBE_EVENT lines though, but > your specific request is regarding STREAMOFF. > > I hope that helps you read the logs a little. > > -- > Kieran