All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fritz Koenig <frkoenig@google.com>
To: Nicolas Dufresne <nicolas@ndufresne.ca>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: V4L2 logging for multiple streams
Date: Mon, 1 Feb 2021 10:53:00 -0800	[thread overview]
Message-ID: <CAMfZQbyipb18qLJwhSwA1QS+63BrRnkFQ6mLBPs-xQBWw3aEoQ@mail.gmail.com> (raw)
In-Reply-To: <350a927bafbc6cf3e690db6f33bebbdafeb96d6d.camel@ndufresne.ca>

On Thu, Jan 28, 2021 at 1:45 PM Nicolas Dufresne <nicolas@ndufresne.ca> wrote:
>
> Le vendredi 15 janvier 2021 à 20:33 -0800, Fritz Koenig a écrit :
> > 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
> >
> > 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.
>
> I suppose this is m2m driver ? I think it would be nice to trace some instance
> ID, otherwise indeed, if you have two stream on the same m2m device node, the
> traces get confused.
>

Yes, m2m.  Instance doesn't seem to be a concept at that level.  The
driver itself holds an idea of instances (at least on venus).  I was
able to add debugging to trace instances in vdec.c, but I don't see a
generic way to add it.

-Fritz

>
> >
> > Thanks.
> >
> > -Fritz
>
>

      reply	other threads:[~2021-02-01 18:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-16  4:33 V4L2 logging for multiple streams Fritz Koenig
2021-01-20 10:07 ` Kieran Bingham
2021-02-06  0:59   ` Fritz Koenig
2021-01-28 21:44 ` Nicolas Dufresne
2021-02-01 18:53   ` Fritz Koenig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMfZQbyipb18qLJwhSwA1QS+63BrRnkFQ6mLBPs-xQBWw3aEoQ@mail.gmail.com \
    --to=frkoenig@google.com \
    --cc=linux-media@vger.kernel.org \
    --cc=nicolas@ndufresne.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.