diff mbox series

[4/4] rt-tests: oslat: Close trace fds

Message ID 20201107095843.11909-5-kurt@linutronix.de
State New
Headers show
Series rt-tests: rt-utils: Close trace fds | expand

Commit Message

Kurt Kanzenbach Nov. 7, 2020, 9:58 a.m. UTC
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(+)

Comments

John Kacur Nov. 11, 2020, 2:34 a.m. UTC | #1
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 mbox series

Patch

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;
 }