Message ID | 20230105215252.224044-2-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | cfe573a5f506dd6223de8047f2db5ee3b8026552 |
Headers | show |
Series | libtracefs: Fixups to tracefs_cpu_stop() | expand |
diff --git a/src/tracefs-record.c b/src/tracefs-record.c index 428bec0dfe3d..f998883134b8 100644 --- a/src/tracefs-record.c +++ b/src/tracefs-record.c @@ -421,7 +421,7 @@ int tracefs_cpu_stop(struct tracefs_cpu *tcpu) { int ret = 1; - if (tcpu->flags & TC_NONBLOCK) + if (tcpu->flags & TC_PERM_NONBLOCK) return 0; ret = write(tcpu->ctrl_pipe[1], &ret, 1);