summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes/uprobes.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/uprobes/uprobes.h')
-rw-r--r--runtime/uprobes/uprobes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/uprobes/uprobes.h b/runtime/uprobes/uprobes.h
index e8a06599..418518f8 100644
--- a/runtime/uprobes/uprobes.h
+++ b/runtime/uprobes/uprobes.h
@@ -157,6 +157,13 @@ struct uprobe_ssol_area {
/* lock held while finding a free slot */
spinlock_t lock;
+ /*
+ * We currently use access_process_vm() to populate instruction
+ * slots. Calls must be serialized because access_process_vm()
+ * isn't thread-safe.
+ */
+ struct mutex populate_mutex;
+
/* Next slot to steal */
int next_slot;