]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: debug: make "debug dev sched" accept a negative TID
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Feb 2025 16:59:11 +0000 (17:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Feb 2025 17:04:29 +0000 (18:04 +0100)
commit6765a32eb4f0a16ccd804668caed8a195f195a91
tree1a4908d8099b12c1ab83cdb378d3181b761b96b6
parent5926fb78233ab4ba95b07db3815ee62f5cbc5082
BUG/MINOR: debug: make "debug dev sched" accept a negative TID

The TID passed to "debug dev sched" is used to pin the task to a given
thread. A negative value normally means the task is unpinned and goes
to the shared wait queue and run queue. However due to the type of the
variable, negative values were mapped as highly positive values and were
set to the current thread. Let's add the proper cast to fix this.

No backport is needed since this is only used to experiment with the
scheduler and measure its performance.
src/debug.c