Files
Vincent Donnefort ea908a2b79 tracing: Add a trace remote module for testing
Add a module to help testing the tracefs support for trace remotes. This
module:

  * Use simple_ring_buffer to write into a ring-buffer.
  * Declare a single "selftest" event that can be triggered from
    user-space.
  * Register a "test" trace remote.

This is intended to be used by trace remote selftests.

Link: https://patch.msgid.link/[email protected]
Reviewed-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Vincent Donnefort <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
2026-03-09 12:33:55 -04:00

11 lines
191 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#define REMOTE_TEST_EVENT_ID 1
REMOTE_EVENT(selftest, REMOTE_TEST_EVENT_ID,
RE_STRUCT(
re_field(u64, id)
),
RE_PRINTK("id=%llu", __entry->id)
);