lkml.org 
[lkml]   [2013]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[perf patch] perf doesn't delete /tmp/perf-vdso.so.* file on exit
perf top doesn't unlink /tmp/perf-vdso.so.* on exit.
Fix this by calling vdso__exit() before exit(0).

Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>

diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index c9ff395..e910d91 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -20,6 +20,7 @@
#include "builtin.h"

#include "perf.h"
+#include "vdso.h"

#include "util/annotate.h"
#include "util/cache.h"
@@ -602,6 +603,7 @@ static void *display_thread_tui(void *arg)
&top->session->header.env);

exit_browser(0);
+ vdso__exit();
exit(0);
return NULL;
}
--
Markus

\
 
 \ /
  Last update: 2013-02-21 12:03    [W:0.060 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site