Document limitation of vppid and ppid context wrt eventual RCU instrumentation
[lttng-modules.git] / lttng-context-ppid.c
index 058190484d75350ab181f9096e9f20a1e295a3d0..58ff3fe719200bf9c8bf964feb47eb72e5f65c4d 100644 (file)
@@ -46,6 +46,15 @@ void ppid_record(struct lttng_ctx_field *field,
 {
        pid_t ppid;
 
+
+       /*
+        * TODO: when we eventually add RCU subsystem instrumentation,
+        * taking the rcu read lock here will trigger RCU tracing
+        * recursively. We should modify the kernel synchronization so
+        * it synchronizes both for RCU and RCU sched, and rely on
+        * rcu_read_lock_sched_notrace.
+        */
+
        rcu_read_lock();
        ppid = task_tgid_nr(current->real_parent);
        rcu_read_unlock();
This page took 0.022502 seconds and 4 git commands to generate.