]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
workqueue: Basic memory allocation profiling support
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 17:59:20 +0000 (13:59 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 16 Jun 2025 18:01:45 +0000 (08:01 -1000)
commitfda6add9243867486f8cd456d7b05395d2132e0a
tree8a2f2c89eacd31173b8316ba3f4385b8e951c477
parent0998f0ac308c14f7a0750e9c24fe2083a817d8fb
workqueue: Basic memory allocation profiling support

Hook alloc_workqueue and alloc_workqueue_attrs() so that they're
accounted to the callsite. Since we're doing allocations on behalf of
another subsystem, this helps when using memory allocation profiling to
check for leaks.

Cc: Tejun Heo <tj@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/workqueue.h
kernel/workqueue.c