Thread (18 messages) 18 messages, 5 authors, 2023-05-11

Re: [RFC PATCH 1/1] smp: Add tracepoints for functions called with smp_call_function*()

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2023-05-04 13:34:47
Also in: lkml

On Thu, 04 May 2023 12:59:41 +0100
Valentin Schneider [off-list ref] wrote:
+TRACE_EVENT(csd_queue_cpu,
+
+	TP_PROTO(const unsigned int cpu,
Why the "const" ?

-- Steve
+		 unsigned long callsite,
+		 smp_call_func_t func,
+		 call_single_data_t *csd),
+
+	TP_ARGS(cpu, callsite, func, csd),
+
+	TP_STRUCT__entry(
+		__field(unsigned int, cpu)
+		__field(void *, callsite)
+		__field(void *, func)
+		__field(void *, csd)
+	),
+
+	TP_fast_assign(
+		__entry->cpu = cpu;
+		__entry->callsite = (void *)callsite;
+		__entry->func = func;
+		__entry->csd  = csd;
+	),
+
+	TP_printk("cpu=%u callsite=%pS func=%pS csd=%p",
+		  __entry->cpu, __entry->callsite, __entry->func, __entry->csd)
+);
+
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help