Commit 72d2d94
kfence: count unexpectedly skipped allocations
[ Upstream commit 9a19aeb ]
Maintain a counter to count allocations that are skipped due to being
incompatible (oversized, incompatible gfp flags) or no capacity.
This is to compute the fraction of allocations that could not be
serviced by KFENCE, which we expect to be rare.
Link: https://lkml.kernel.org/r/20210923104803.2620285-2-elver@google.com
Signed-off-by: Marco Elver <elver@google.com>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Alexander Potapenko <glider@google.com>
Cc: Aleksandr Nogikh <nogikh@google.com>
Cc: Jann Horn <jannh@google.com>
Cc: Taras Madan <tarasmadan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 5142720 commit 72d2d94
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| 127 | + | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
275 | | - | |
| 279 | + | |
| 280 | + | |
276 | 281 | | |
| 282 | + | |
277 | 283 | | |
278 | 284 | | |
279 | 285 | | |
| |||
744 | 750 | | |
745 | 751 | | |
746 | 752 | | |
747 | | - | |
| 753 | + | |
| 754 | + | |
748 | 755 | | |
| 756 | + | |
749 | 757 | | |
750 | 758 | | |
751 | 759 | | |
752 | 760 | | |
753 | 761 | | |
754 | 762 | | |
755 | 763 | | |
756 | | - | |
| 764 | + | |
| 765 | + | |
757 | 766 | | |
| 767 | + | |
758 | 768 | | |
759 | 769 | | |
760 | 770 | | |
| |||
0 commit comments