aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2022-11-14 23:56:51 -0500
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-11-15 09:57:09 -0500
commitad79e3d6799286f329db3e0521a97b1c5690f884 (patch)
treeb798698d61e26f020932211a7dfc04d33c0c758d
parenta60e3a1bd086b730014c2d01b7d822c9b49454ae (diff)
downloadlibtracefs-ad79e3d6799286f329db3e0521a97b1c5690f884.tar.gz
libtracefs: Fix tracefs_iterate_stop() when instance is used
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. Link: https://lore.kernel.org/linux-trace-devel/20221114235651.7c1b98d7@gandalf.local.home Fixes: ffcc062c6352d ("libtracefs: Add tracefs_iterate_stop()") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r--src/tracefs-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tracefs-events.c b/src/tracefs-events.c
index 57b2296..3a06209 100644
--- a/src/tracefs-events.c
+++ b/src/tracefs-events.c
@@ -234,7 +234,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 = NULL;
int count = 0;