Skip to content

Instantly share code, notes, and snippets.

@agentzh

agentzh/a.patch Secret

Created October 25, 2020 06:29
Show Gist options
  • Save agentzh/0e0e92a81388d051e35f950247e98d21 to your computer and use it in GitHub Desktop.
Save agentzh/0e0e92a81388d051e35f950247e98d21 to your computer and use it in GitHub Desktop.
diff --git a/runtime/stp_utrace.c b/runtime/stp_utrace.c
index 33f03b96f..1c79698dc 100644
--- a/runtime/stp_utrace.c
+++ b/runtime/stp_utrace.c
@@ -105,7 +105,9 @@ struct utrace {
struct task_work report_work;
};
-#define TASK_UTRACE_HASH_BITS 5
+#ifndef TASK_UTRACE_HASH_BITS
+#define TASK_UTRACE_HASH_BITS 8
+#endif
#define TASK_UTRACE_TABLE_SIZE (1 << TASK_UTRACE_HASH_BITS)
static struct hlist_head task_utrace_table[TASK_UTRACE_TABLE_SIZE];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment