Commit fda6add
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>1 parent 0998f0a commit fda6add
2 files changed
Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
508 | | - | |
| 509 | + | |
| 510 | + | |
509 | 511 | | |
510 | 512 | | |
511 | 513 | | |
| |||
544 | 546 | | |
545 | 547 | | |
546 | 548 | | |
547 | | - | |
548 | | - | |
| 549 | + | |
| 550 | + | |
549 | 551 | | |
550 | 552 | | |
551 | 553 | | |
| |||
577 | 579 | | |
578 | 580 | | |
579 | 581 | | |
580 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
581 | 585 | | |
582 | 586 | | |
583 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4626 | 4626 | | |
4627 | 4627 | | |
4628 | 4628 | | |
4629 | | - | |
| 4629 | + | |
4630 | 4630 | | |
4631 | 4631 | | |
4632 | 4632 | | |
| |||
5679 | 5679 | | |
5680 | 5680 | | |
5681 | 5681 | | |
5682 | | - | |
| 5682 | + | |
5683 | 5683 | | |
5684 | 5684 | | |
5685 | 5685 | | |
5686 | 5686 | | |
5687 | | - | |
| 5687 | + | |
5688 | 5688 | | |
5689 | 5689 | | |
5690 | 5690 | | |
| |||
5774 | 5774 | | |
5775 | 5775 | | |
5776 | 5776 | | |
5777 | | - | |
5778 | | - | |
5779 | | - | |
| 5777 | + | |
| 5778 | + | |
| 5779 | + | |
5780 | 5780 | | |
5781 | 5781 | | |
5782 | 5782 | | |
| |||
5791 | 5791 | | |
5792 | 5792 | | |
5793 | 5793 | | |
5794 | | - | |
| 5794 | + | |
5795 | 5795 | | |
5796 | 5796 | | |
5797 | 5797 | | |
| |||
0 commit comments