We can be a little nicer when allocating kernel memory under the
traditional task_finder which uses utrace. See
http://sourceware.org/ml/systemtap/2011-q4/msg00357.html
{
struct __stp_tf_vma_entry *entry;
size_t size = sizeof (struct __stp_tf_vma_entry);
-
+#ifdef CONFIG_UTRACE
+ entry = (struct __stp_tf_vma_entry *) _stp_kmalloc_gfp(size,
+ STP_ALLOC_SLEEP_FLAGS);
+#else
entry = (struct __stp_tf_vma_entry *) _stp_kmalloc_gfp(size,
STP_ALLOC_FLAGS);
+#endif
return entry;
}