The "pid" notion exposed by LTTng translates to the "pgid" notion in the
Linux kernel. Therefore using "current->pid" as argument to the PID
tracker actually ends up behaving as a "tid" tracker, which does not
match the intent nor the user-space tracer behavior.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
if (unlikely(!ACCESS_ONCE(__event->enabled))) \
return; \
__lpf = lttng_rcu_dereference(__session->pid_tracker); \
- if (__lpf && likely(!lttng_pid_tracker_lookup(__lpf, current->pid))) \
+ if (__lpf && likely(!lttng_pid_tracker_lookup(__lpf, current->tgid))) \
return; \
_code_pre \
if (unlikely(!list_empty(&__event->bytecode_runtime_head))) { \