Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Vincent Donnefort <vdonnefort@google.com>
Cc: mhiramat@kernel.org, mathieu.desnoyers@efficios.com,
	linux-trace-kernel@vger.kernel.org, maz@kernel.org,
	oliver.upton@linux.dev, joey.gouly@arm.com,
	suzuki.poulose@arm.com, yuzenghui@huawei.com,
	kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
	jstultz@google.com, qperret@google.com, will@kernel.org,
	kernel-team@android.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 02/11] ring-buffer: Expose buffer_data_page material
Date: Thu, 6 Mar 2025 14:56:07 -0500	[thread overview]
Message-ID: <20250306145607.0aa91e22@gandalf.local.home> (raw)
In-Reply-To: <20250224121353.98697-3-vdonnefort@google.com>

On Mon, 24 Feb 2025 12:13:44 +0000
Vincent Donnefort <vdonnefort@google.com> wrote:

> @@ -61,11 +65,50 @@ enum ring_buffer_type {
>  	RINGBUF_TYPE_TIME_STAMP,
>  };
>  
> +#define TS_SHIFT        27
> +#define TS_MASK         ((1ULL << TS_SHIFT) - 1)
> +#define TS_DELTA_TEST   (~TS_MASK)

By moving this to include/linux you need to add a prefix to prevent name
space conflicts.

 RB_TS_SHIFT
 RB_TS_MASK
 RB_TS_DELTA_TEST

-- Steve


> +
> +/*
> + * We need to fit the time_stamp delta into 27 bits.
> + */
> +static inline bool test_time_stamp(u64 delta)
> +{
> +	return !!(delta & TS_DELTA_TEST);
> +}
> +


  reply	other threads:[~2025-03-06 20:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-24 12:13 [PATCH 00/11] Tracefs support for pKVM Vincent Donnefort
2025-02-24 12:13 ` [PATCH 01/11] ring-buffer: Introduce ring-buffer remote Vincent Donnefort
2025-02-24 12:13 ` [PATCH 02/11] ring-buffer: Expose buffer_data_page material Vincent Donnefort
2025-03-06 19:56   ` Steven Rostedt [this message]
2025-02-24 12:13 ` [PATCH 03/11] KVM: arm64: Support unaligned fixmap in the nVHE hyp Vincent Donnefort
2025-02-24 12:13 ` [PATCH 04/11] KVM: arm64: Add clock support " Vincent Donnefort
2025-02-24 12:13 ` [PATCH 05/11] KVM: arm64: Add tracing support for the pKVM hyp Vincent Donnefort
2025-02-24 12:13 ` [PATCH 06/11] KVM: arm64: Add hyp tracing to tracefs Vincent Donnefort
2025-02-24 12:13 ` [PATCH 07/11] KVM: arm64: Add clock for hyp tracefs Vincent Donnefort
2025-02-24 12:13 ` [PATCH 08/11] KVM: arm64: Add raw interface " Vincent Donnefort
2025-02-24 12:13 ` [PATCH 09/11] KVM: arm64: Add trace " Vincent Donnefort
2025-02-24 12:13 ` [PATCH 10/11] KVM: arm64: Add support for hyp events Vincent Donnefort
2025-02-24 12:13 ` [PATCH 11/11] KVM: arm64: Add kselftest for tracefs hyp tracefs Vincent Donnefort

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=20250306145607.0aa91e22@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=joey.gouly@arm.com \
    --cc=jstultz@google.com \
    --cc=kernel-team@android.com \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=maz@kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=oliver.upton@linux.dev \
    --cc=qperret@google.com \
    --cc=suzuki.poulose@arm.com \
    --cc=vdonnefort@google.com \
    --cc=will@kernel.org \
    --cc=yuzenghui@huawei.com \
    /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