Skip to content

Instantly share code, notes, and snippets.

@agentzh

agentzh/a.patch Secret

Created October 21, 2020 21:21
Show Gist options
  • Save agentzh/e05586565b77e6c791b41e6350a5df29 to your computer and use it in GitHub Desktop.
Save agentzh/e05586565b77e6c791b41e6350a5df29 to your computer and use it in GitHub Desktop.
diff --git a/runtime/task_finder_vma.c b/runtime/task_finder_vma.c
index 74d78da4b..0b1c85bbe 100644
--- a/runtime/task_finder_vma.c
+++ b/runtime/task_finder_vma.c
@@ -35,7 +35,9 @@ static inline int atomic_fetch_add_unless(atomic_t *v, int a, int u)
}
#endif
-#define __STP_TF_HASH_BITS 4
+#ifndef __STP_TF_HASH_BITS
+#define __STP_TF_HASH_BITS 8
+#endif
#define __STP_TF_TABLE_SIZE (1 << __STP_TF_HASH_BITS)
#ifndef TASK_FINDER_VMA_ENTRY_PATHLEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment