* [PATCH] libtracefs: Fixe tracefs_iterate_stop() when instance is used
@ 2022-11-15 4:56 Steven Rostedt
0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2022-11-15 4:56 UTC (permalink / raw)
To: Linux Trace Devel
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
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()")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
src/tracefs-events.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tracefs-events.c b/src/tracefs-events.c
index e92663656688..daa81c07ecb5 100644
--- a/src/tracefs-events.c
+++ b/src/tracefs-events.c
@@ -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;
--
2.35.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-15 4:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 4:56 [PATCH] libtracefs: Fixe tracefs_iterate_stop() when instance is used Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).