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 15:39:13 +0000 (11:39 -0400)
commit1571754bdbae31100be729a4b493b83f389e4d00
tree0646cfc02ed34b09999284cd66619485d5b7e660
parenta8e336c2b57ff1e38f2a511aab8c2c6060c1796d
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.hpp
This page took 0.025244 seconds and 4 git commands to generate.