lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 29 Jan 2022 15:38:58 -0800 From: Joe Damato <jdamato@...tly.com> To: netdev@...r.kernel.org, kuba@...nel.org, ilias.apalodimas@...aro.org, davem@...emloft.net, hawk@...nel.org Cc: Joe Damato <jdamato@...tly.com> Subject: [net-next v2 08/10] page_pool: Add stat tracking cache refill Add a stat tracking succesfull allocations which triggered a refill. Signed-off-by: Joe Damato <jdamato@...tly.com> --- include/net/page_pool.h | 1 + net/core/page_pool.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/net/page_pool.h b/include/net/page_pool.h index ed2bc73..4991109 100644 --- a/include/net/page_pool.h +++ b/include/net/page_pool.h @@ -149,6 +149,7 @@ struct page_pool_stats { u64 empty; /* failed refills due to empty ptr ring, forcing * slow path allocation */ + u64 refill; /* allocations via successful refill */ } alloc; }; diff --git a/net/core/page_pool.c b/net/core/page_pool.c index 9d20b12..ffb68b8 100644 --- a/net/core/page_pool.c +++ b/net/core/page_pool.c @@ -185,6 +185,7 @@ static struct page *__page_pool_get_cached(struct page_pool *pool) page_pool_stat_alloc_inc(fast); } else { page = page_pool_refill_alloc_cache(pool); + page_pool_stat_alloc_inc(refill); } return page; -- 2.7.4
Powered by blists - more mailing lists