Message ID | 20201107095843.11909-5-kurt@linutronix.de |
---|---|
State | New |
Headers | show |
Series | rt-tests: rt-utils: Close trace fds | expand |
On Sat, 7 Nov 2020, Kurt Kanzenbach wrote: > oslat is also using enable_trace_mark() and never closes the fds. Add it. > > Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de> > --- > src/oslat/oslat.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/oslat/oslat.c b/src/oslat/oslat.c > index 918e6733c066..0018c472e0c1 100644 > --- a/src/oslat/oslat.c > +++ b/src/oslat/oslat.c > @@ -871,5 +871,7 @@ int main(int argc, char *argv[]) > g.cpu_list = NULL; > } > > + disable_trace_mark(); > + > return 0; > } > -- > 2.26.2 > > Signed-off-by: John Kacur <jkacur@redhat.com>
diff --git a/src/oslat/oslat.c b/src/oslat/oslat.c index 918e6733c066..0018c472e0c1 100644 --- a/src/oslat/oslat.c +++ b/src/oslat/oslat.c @@ -871,5 +871,7 @@ int main(int argc, char *argv[]) g.cpu_list = NULL; } + disable_trace_mark(); + return 0; }
oslat is also using enable_trace_mark() and never closes the fds. Add it. Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de> --- src/oslat/oslat.c | 2 ++ 1 file changed, 2 insertions(+)