port: fix pthread_setname_np integration
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 15 Oct 2020 21:11:21 +0000 (17:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Oct 2020 21:17:32 +0000 (17:17 -0400)
commit0db3d6ee9be2906d02955fedee802338bcfaef3a
tree116a045db6712a814d4f8219f8a7e3d8d23c5878
parentfb54defd7e47e106bdf3b7eb07d53f0aba0525ec
port: fix pthread_setname_np integration

The detection was broken and initialy went undetected because of the
failover code. Replace it with a hard fail and fix the detection for
each platform.

Also, replace the private LTTNG_UST_PROCNAME_LEN with
LTTNG_UST_ABI_PROCNAME_LEN from the public headers. The limit of 16
bytes does in fact include the terminating null byte contrary to what
was defined in LTTNG_UST_PROCNAME_LEN. This was not catched before since
the string is silently truncated if it exceeds 16 bytes.

Change-Id: I1ea95dfd882dfeb80fdc3d71ebec6618b1324a79
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-comm/lttng-ust-comm.c
liblttng-ust/compat.h
liblttng-ust/lttng-context-procname.c
liblttng-ust/lttng-ust-comm.c
liblttng-ust/lttng-ust-statedump-provider.h
m4/lttng_pthread_setname_np.m4
This page took 0.025093 seconds and 4 git commands to generate.