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:15 +0000 (13:19 -0400)
commitefe79472dcf3261468de7f5388ad596ba2325458
treece23501f2bb09fc8533aa78beaed4314abab4891
parentbfcf776acfcd6fd2e1c4df1441811e0ff2a81755
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.024812 seconds and 4 git commands to generate.