Fix: reset procname on fork in child process
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 7 Sep 2018 15:28:51 +0000 (11:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 7 Sep 2018 17:19:11 +0000 (13:19 -0400)
commit5fe0ab0b1d4d0b91f0fefcd38d2afaace9a0f712
tree46d6ae7075018f76515bbddf393a36d75783228e
parent7dcbef22cfc3682bdaf875671d9bc62b7684c5a7
Fix: reset procname on fork in child process

lttng-ust(3) documents:

   procname
      Thread name, as set by exec(3) or prctl(2). It is recommended
      that programs set their thread name with prctl(2) before
      hitting the first tracepoint for that thread.

We can rightfully expect that this applies to the first thread created
within a child process upon fork. Reset the procname cache in the child
on fork.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-events.h
liblttng-ust/lttng-ust-comm.c
This page took 0.025428 seconds and 4 git commands to generate.