Thread (39 messages) 39 messages, 7 authors, 2025-08-10

Re: [PATCH v6 13/22] rv: Add support for LTL monitors

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-05-07 20:59:52
Also in: lkml

On Wed, 30 Apr 2025 13:02:28 +0200
Nam Cao [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/kernel/trace/rv/rv_trace.h b/kernel/trace/rv/rv_trace.h
index 99c3801616d4..f9fb848bae91 100644
--- a/kernel/trace/rv/rv_trace.h
+++ b/kernel/trace/rv/rv_trace.h
@@ -127,6 +127,53 @@ DECLARE_EVENT_CLASS(error_da_monitor_id,
 // Add new monitors based on CONFIG_DA_MON_EVENTS_ID here
 
 #endif /* CONFIG_DA_MON_EVENTS_ID */
+#if CONFIG_LTL_MON_EVENTS_ID
+TRACE_EVENT(event_ltl_monitor_id,
Needs to be:

#ifdef CONFIG_LTL_MON_EVENTS_ID

Otherwise I get this:

In file included from /work/git/test-linux.git/include/trace/trace_events.h:107,
                 from /work/git/test-linux.git/include/trace/define_trace.h:119:
/work/git/test-linux.git/kernel/trace/rv/./rv_trace.h:130:5: error: "CONFIG_LTL_MON_EVENTS_ID" is not defined, evaluates to 0 [-Werror=undef]
  130 | #if CONFIG_LTL_MON_EVENTS_ID

and it fails to build.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help