MINOR: thread: implement the detection of forced cpu affinity
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 31 Mar 2021 14:57:39 +0000 (16:57 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 23 Apr 2021 14:06:49 +0000 (16:06 +0200)
commit4c9efdecf5aa3d4cca1a325ac1d98cfba01bcf83
treea8658729c4a613fb749527300cf6e9ef04e7ef2d
parent982fb53390ae58de4de44ad0632b3393339bace4
MINOR: thread: implement the detection of forced cpu affinity

Create a function thread_cpu_mask_forced. Its purpose is to report if a
restrictive cpu mask is active for the current proces, for example due
to a taskset invocation. It is only implemented for the linux platform
currently.
include/haproxy/thread.h
src/thread.c