]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: dev/gdb: add simple task dump
authorWilly Tarreau <w@1wt.eu>
Wed, 27 May 2026 16:49:51 +0000 (18:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Jun 2026 17:08:42 +0000 (19:08 +0200)
commitc82ac139f43938b5692d768bc9c2b530164d67a3
treeaa8434e141fcd580aa40a566603d2717d81ebc7b
parent837d69f8efe376b6b462470d8ae63890ca690494
DEV: dev/gdb: add simple task dump

New functions task_dump_wq and task_dump_rq can be used to dump tasks
in a wait queue or in a run queue respectively. For the wait queue (the
most common usage), one needs to pass either the thread-local's timers,
or the thread group ones for shared tasks:

  task_dump_wq &ha_tgroup_ctx[0].timers
  task_dump_wq &ha_thread_ctx[0].timers

For the run queue, task_dump_rq will take the thread's rqueue:

  task_dump_rq &ha_thread_ctx[0].rqueue

The output is  the task pointer and a dump of the task* struct per line,
then a total count at the end.
dev/gdb/task.gdb [new file with mode: 0644]