Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "GUO Ren (XuanTie)" <guoren@kernel.org>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH RFC v4 3/4] RISC-V: paravirt: pvqspinlock: Add trace point for pv_kick/wait
Date: Mon, 21 Sep 2026 12:39:36 +0000	[thread overview]
Message-ID: <20260921123937.6103B1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921-pvqspinlock-v4-3-409a22aed6ef@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] trace: incorrect TRACE_INCLUDE_PATH depth causes brittle include resolution
--

commit 2603329e3e16137c739dbffd2974c6bd447b6ee2
Author: GUO Ren (XuanTie) <guoren@kernel.org>

RISC-V: paravirt: pvqspinlock: Add trace point for pv_kick/wait

This commit adds tracepoints for paravirt qspinlock operations pv_kick and
pv_wait. These tracepoints allow observation of paravirt qspinlock behavior
via the paravirt trace event system.

> diff --git a/arch/riscv/kernel/trace_events_filter_paravirt.h b/arch/riscv/kernel/trace_events_filter_paravirt.h
> new file mode 100644
> index 0000000000000..8d57efda2c177
> --- /dev/null
> +++ b/arch/riscv/kernel/trace_events_filter_paravirt.h

[ ... ]

> +#endif /* _TRACE_PARAVIRT_H || TRACE_HEADER_MULTI_READ */
> +
> +#undef TRACE_INCLUDE_PATH
> +#undef TRACE_INCLUDE_FILE
> +#define TRACE_INCLUDE_PATH ../../../arch/riscv/kernel/

[Severity: Low]
Is this TRACE_INCLUDE_PATH definition too deep?

The three levels of parent directories (../../../) navigate outside the
kernel source tree relative to include/trace/define_trace.h. This currently
builds because the compiler falls back to searching the
-I$(srctree)/arch/riscv/include path, where the three directory levels happen
to perfectly cancel out the depth of the fallback path.

Could the include path be corrected to avoid compilation failures if the
include paths change or if built with compilers that evaluate fallbacks
differently?

> +#define TRACE_INCLUDE_FILE trace_events_filter_paravirt
> +
> +/* This part must be outside protection */
> +#include <trace/define_trace.h>

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-pvqspinlock-v4-0-409a22aed6ef@kernel.org?part=3

  reply	other threads:[~2026-09-21 12:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 12:27 [PATCH RFC v4 0/4] RISC-V: Add PARAVIRT_SPINLOCKS support GUO Ren (XuanTie)
2026-09-21 12:27 ` [PATCH RFC v4 1/4] RISC-V: paravirt: Add pvqspinlock KVM backend GUO Ren (XuanTie)
2026-09-21 12:35   ` sashiko-bot
2026-09-21 12:27 ` [PATCH RFC v4 2/4] RISC-V: paravirt: Add pvqspinlock frontend GUO Ren (XuanTie)
2026-09-21 12:41   ` sashiko-bot
2026-09-21 12:27 ` [PATCH RFC v4 3/4] RISC-V: paravirt: pvqspinlock: Add trace point for pv_kick/wait GUO Ren (XuanTie)
2026-09-21 12:39   ` sashiko-bot [this message]
2026-09-21 12:27 ` [PATCH RFC v4 4/4] RISC-V: paravirt: Support nopvspin to disable PARAVIRT_SPINLOCKS GUO Ren (XuanTie)
2026-09-21 12:41   ` 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=20260921123937.6103B1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=guoren@kernel.org \
    --cc=kvm@vger.kernel.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