Thread (16 messages) 16 messages, 2 authors, 2025-05-09

Re: [PATCH 2/4] tracing: tprobe-events: Support multiple tprobes on the same tracepoint

From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Date: 2025-03-29 13:35:44
Also in: lkml

On Wed, 26 Mar 2025 07:08:09 +0900
Masami Hiramatsu (Google) [off-list ref] wrote:
quoted
quoted
+	/* tpoint can be NULL, but we don't care here. */
+
+	/* Search existing tracepoint_user */
+	for_each_trace_fprobe(tf, dpos) {
+		if (!trace_fprobe_is_tracepoint(tf))
+			continue;
+		if (!strcmp(tf->symbol, name)) {
If the try_module_get() failed, can this every be true?
Ah, that becomes true in the next patch. In this patch, it should
not be true.
No, I was wrong. Even if the try_module_get() failed, tracepoint_user
is allocated anyway (with tpoint = NULL). Thus this can be true.

Thank you,

-- 
Masami Hiramatsu (Google) [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help