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 v3 1/9] media: Move visl traces to v4l2-core
Date: Wed, 25 Nov 2026 18:58:33 +0000	[thread overview]
Message-ID: <sashiko-outbox-234024@kernel.org> (raw)
In-Reply-To: <20261125-v4l2-add-ftrace-v3-1-1d1db48372ed@collabora.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] media: v4l2-trace: missing exports for HEVC SPS RPS tracepoints
- [Medium] media: v4l2_controls: commit message and doc trace system
  mismatch
- [Low] media: v4l2_controls: V4L2_FLAG() truncates HEVC PPS flag name
--

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

media: Move visl traces to v4l2-core

This commit moves the stateless V4L2 control tracepoint definitions from
the visl test driver into include/trace/events/v4l2_controls.h and exports
them from v4l2-core so other V4L2 drivers can use them.

[Severity: Medium]
Does the commit message match the trace header and trace system names
introduced by this patch?

The commit message refers to a new v4l2_requests.h header and a
v4l2_requests event directory, whereas the patch adds
include/trace/events/v4l2_controls.h and sets TRACE_SYSTEM to
v4l2_controls (placing the events under
/sys/kernel/tracing/events/v4l2_controls/).  In addition,
Documentation/admin-guide/media/visl.rst still tells users to look up and
enable trace events under the removed per-codec visl_*_controls
directories.  Also, in drivers/media/v4l2-core/v4l2-trace.c,
EXPORT_TRACEPOINT_SYMBOL_GPL(v4l2_ctrl_vp9_frame) is placed under the VP8
controls comment block instead of the VP9 comment block.

[Severity: High]
Are EXPORT_TRACEPOINT_SYMBOL_GPL(v4l2_ctrl_hevc_ext_sps_lt_rps) and
EXPORT_TRACEPOINT_SYMBOL_GPL(v4l2_ctrl_hevc_ext_sps_st_rps) missing from
drivers/media/v4l2-core/v4l2-trace.c?

Both trace events are defined in include/trace/events/v4l2_controls.h and
called from visl_trace_ctrls() in
drivers/media/test-drivers/visl/visl-dec.c.  When CONFIG_VIDEO_VISL=m and
CONFIG_TRACEPOINTS=y, the build fails at modpost with undefined symbol
errors for both tracepoints, and scripts/tracepoint-update warns about
unused tracepoints when CONFIG_TRACEPOINT_VERIFY_USED=y and visl is not
built-in.

[Severity: Low]
In include/trace/events/v4l2_controls.h, does V4L2_FLAG(HEVC_PPS_FLAG_OUTPUT,
PRESENT) in v4l2_ctrl_hevc_pps_tmpl truncate the printed flag name for
V4L2_HEVC_PPS_FLAG_OUTPUT_FLAG_PRESENT?

Because V4L2_FLAG(type, name) stringifies only its second argument, this
expands the trace output string to "PRESENT" instead of the previous
"OUTPUT_FLAG_PRESENT", which is ambiguous next to the five other
*_PRESENT flags in struct v4l2_ctrl_hevc_pps.  Using V4L2_FLAG(HEVC_PPS,
OUTPUT_FLAG_PRESENT) would preserve the full flag name, and V4L2_FLAG
should also be undefined before the end of the header so it does not leak
into including translation units.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-v4l2-add-ftrace-v3-0-1d1db48372ed@collabora.com?part=1

  reply	other threads:[~2026-11-25 18:58 UTC|newest]

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

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-234024@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