git: 841e0a87576b - main - uma: with KTR trace allocs/frees from SMR zones
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Dec 2021 07:09:03 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=841e0a87576b745dfcdd1c43d1f1cb440e73b646
commit 841e0a87576b745dfcdd1c43d1f1cb440e73b646
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2021-12-30 07:08:15 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2021-12-30 07:08:33 +0000
uma: with KTR trace allocs/frees from SMR zones
---
sys/vm/uma_core.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 3ec32cbb4ed2..52d30780b3b0 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -3625,6 +3625,9 @@ uma_zalloc_smr(uma_zone_t zone, int flags)
uma_cache_bucket_t bucket;
uma_cache_t cache;
+ CTR3(KTR_UMA, "uma_zalloc_smr zone %s(%p) flags %d", zone->uz_name,
+ zone, flags);
+
#ifdef UMA_ZALLOC_DEBUG
void *item;
@@ -4379,6 +4382,9 @@ uma_zfree_smr(uma_zone_t zone, void *item)
uma_cache_bucket_t bucket;
int itemdomain, uz_flags;
+ CTR3(KTR_UMA, "uma_zfree_smr zone %s(%p) item %p",
+ zone->uz_name, zone, item);
+
#ifdef UMA_ZALLOC_DEBUG
KASSERT((zone->uz_flags & UMA_ZONE_SMR) != 0,
("uma_zfree_smr: called with non-SMR zone."));