Linux Trace Kernel
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Detlev Casanova" <detlev.casanova@collabora.com>
Cc: linux-trace-kernel@vger.kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v4 6/9] media: Trace the stateless controls when set in v4l2-ctrls-core.c
Date: Fri, 27 Nov 2026 17:04:02 +0000	[thread overview]
Message-ID: <sashiko-outbox-237960@kernel.org> (raw)
In-Reply-To: <20261127-v4l2-add-ftrace-v4-6-24138479002f@collabora.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] media: v4l2-ctrls: missing array loops in
  v4l2_ctrl_type_op_trace()
--

commit b1326148b2e9e09d59e2a932934d81276051e3bb
Author: Detlev Casanova <detlev.casanova@collabora.com>

media: Trace the stateless controls when set in v4l2-ctrls-core.c

This commit moves stateless control tracing from the visl test driver into
the V4L2 control core by introducing a trace callback in
v4l2_ctrl_type_ops and calling it when controls are set.

[Severity: Medium]
In drivers/media/v4l2-core/v4l2-ctrls-core.c, in v4l2_ctrl_type_op_trace()
(lines 1626 and 1672), should the V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS and
V4L2_CTRL_TYPE_AV1_TILE_GROUP_ENTRY cases loop over ctrl->new_elems like
V4L2_CTRL_TYPE_HEVC_EXT_SPS_ST_RPS and V4L2_CTRL_TYPE_HEVC_EXT_SPS_LT_RPS
do?

In drivers/media/v4l2-core/v4l2-ctrls-defs.c, v4l2_ctrl_fill() marks both
V4L2_CID_STATELESS_HEVC_SLICE_PARAMS (line 1574) and
V4L2_CID_STATELESS_AV1_TILE_GROUP_ENTRY (line 1605) with
V4L2_CTRL_FLAG_DYNAMIC_ARRAY. Tracing only ptr.p_hevc_slice_params and
ptr.p_av1_tile_group_entry at index 0 drops all remaining slice parameters
and tile group entries when userspace submits a multi-slice HEVC frame or
a multi-tile AV1 frame.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-v4l2-add-ftrace-v4-0-24138479002f@collabora.com?part=6

  reply	other threads:[~2026-11-27 17:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 16:45 [PATCH v4 0/9] v4l2: Add tracing for stateless codecs Detlev Casanova
2026-11-27 16:45 ` [PATCH v4 1/9] media: Move visl traces to v4l2-core Detlev Casanova
2026-11-27 16:45 ` [PATCH v4 2/9] media: Map each struct field to its own trace field Detlev Casanova
2026-11-27 16:45 ` [PATCH v4 3/9] media: Add tgid and fd fields in v4l2_fh struct Detlev Casanova
2026-11-27 16:57   ` sashiko-bot
2026-11-27 16:45 ` [PATCH v4 4/9] media: Add tgid and fd to the v4l2-requests trace fields Detlev Casanova
2026-11-27 16:45 ` [PATCH v4 5/9] media: Add missing types to v4l2_ctrl_ptr Detlev Casanova
2026-11-27 16:45 ` [PATCH v4 6/9] media: Trace the stateless controls when set in v4l2-ctrls-core.c Detlev Casanova
2026-11-27 17:04   ` sashiko-bot [this message]
2026-11-27 16:45 ` [PATCH v4 7/9] media: Add stream on/off traces and run them in the ioctl Detlev Casanova
2026-11-27 16:45 ` [PATCH v4 8/9] media: Add HW run/done trace events Detlev Casanova
2026-11-27 16:45 ` [PATCH v4 9/9] media: hantro: Add v4l2_hw run/done traces Detlev Casanova

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=sashiko-outbox-237960@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=detlev.casanova@collabora.com \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=media-ci@linuxtv.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox