From: Markus Trippelsdorf <markus@trippelsdorf.de>
To: linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Subject: [perf patch] perf doesn't delete /tmp/perf-vdso.so.* file on exit
Date: Thu, 21 Feb 2013 11:27:48 +0100 [thread overview]
Message-ID: <20130221102748.GB2919@x4> (raw)
In-Reply-To: <20130221094544.GA2919@x4>
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
next prev parent reply other threads:[~2013-02-21 10:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-21 9:45 [perf bugreport] perf doesn't delete /tmp/perf-vdso.so.* file on exit Markus Trippelsdorf
2013-02-21 10:27 ` Markus Trippelsdorf [this message]
2013-02-21 18:19 ` [perf patch] " Namhyung Kim
2013-02-27 13:03 ` Markus Trippelsdorf
2013-02-27 21:12 ` Namhyung Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130221102748.GB2919@x4 \
--to=markus@trippelsdorf.de \
--cc=acme@ghostprotocols.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox