From c396a8419a176d0eda4a96a639f1cafb178e6dc7 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Fri, 25 Sep 2009 15:15:18 -0400 Subject: [PATCH] add ust_potential_exec, to prepare for execs --- libust/tracectl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libust/tracectl.c b/libust/tracectl.c index 1dd7162..97c515c 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -1128,6 +1128,13 @@ static void __attribute__((destructor)) keepalive() ustcomm_fini_app(&ustcomm_app); } +void ust_potential_exec(void) +{ + trace_mark(ust, potential_exec, MARK_NOARGS); + + keepalive(); +} + /* Notify ust that there was a fork. This needs to be called inside * the new process, anytime a process whose memory is not shared with * the parent is created. If this function is not called, the events -- 2.34.1