Skip to contentSkip to conversation

libtracefs: Fixe tracefs_iterate_stop() when instance is used

PATCH New Steven Rostedt 1 participant 1 message Nov 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtracefs: Fixe tracefs_iterate_stop() when instance is used

From: "Steven Rostedt (Google)" <[email protected]>

There was a cut and paste error where tracefs_iterate_stop() was using the instance->pipe_keep_going instead of the instance->iterate_keep_going and it caused the tracefs_iterate_stop() to not stop the iterator on instances.

Fixes ffcc062c6352d ("libtracefs: Add tracefs_iterate_stop()")
---
 src/tracefs-events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/tracefs-events.c +1 -1
index e92663656688..daa81c07ecb5 100644
@@ -418,7 +418,7 @@ int tracefs_iterate_raw_events(struct tep_handle *tep,
 						int, void *),
 				void *callback_context)
 {
-	bool *keep_going = instance ? &instance->pipe_keep_going :
+	bool *keep_going = instance ? &instance->iterate_keep_going :
 				      &top_iterate_keep_going;
 	struct cpu_iterate *all_cpus;
 	int count = 0;
Signature · 1 line
2.35.1