Fix: compat: 'LTTNG_UST_ABI_PROCNAME_LEN' is undeclared
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 29 Mar 2022 20:31:44 +0000 (16:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 Apr 2022 19:08:46 +0000 (15:08 -0400)
commit27f2b8400c9db484cd195c4240c379e845b1413d
tree33f3ea8a693ec0d7198a05182489714c447a4b90
parent1fdabf20a7bf1cbed0fbe2c97baec36a96428c2d
Fix: compat: 'LTTNG_UST_ABI_PROCNAME_LEN' is undeclared

Observed issue
==============

On old systems, the `lttng_pthread_setname_np` function fallsback to
using the compat prctl version. In that context,
`LTTNG_UST_ABI_PROCNAME_LEN` is indeed not declared.

Solution
========

Use `LTTNG_PTHREAD_NAMELEN`. This mimics what is done in other versions
of `lttng_pthread_setname_np`.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I73956cacd7b1e9400881b17b1cd89db2530d3a00
src/common/compat/pthread.h
This page took 0.025958 seconds and 4 git commands to generate.