Skip to content

Instantly share code, notes, and snippets.

@agentzh
Last active June 13, 2020 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agentzh/96b9c2c1d8fded2bd0f940cf331d757e to your computer and use it in GitHub Desktop.
Save agentzh/96b9c2c1d8fded2bd0f940cf331d757e to your computer and use it in GitHub Desktop.
diff --git a/runtime/vma.c b/runtime/vma.c
index a14851b22..f0c8034e1 100644
--- a/runtime/vma.c
+++ b/runtime/vma.c
@@ -290,7 +290,7 @@ static int _stp_vma_init(void)
/* Get rid of the vma tracker (memory). */
static void _stp_vma_done(void)
{
-#if defined(CONFIG_UTRACE)
+#ifdef HAVE_TASK_FINDER
stap_destroy_vma_map();
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment