summaryrefslogtreecommitdiff
path: root/debian/patches/slabinfo0003-kern-slab-include-flags-in-the-slab-information.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/slabinfo0003-kern-slab-include-flags-in-the-slab-information.patch')
-rw-r--r--debian/patches/slabinfo0003-kern-slab-include-flags-in-the-slab-information.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/patches/slabinfo0003-kern-slab-include-flags-in-the-slab-information.patch b/debian/patches/slabinfo0003-kern-slab-include-flags-in-the-slab-information.patch
new file mode 100644
index 0000000..3030681
--- /dev/null
+++ b/debian/patches/slabinfo0003-kern-slab-include-flags-in-the-slab-information.patch
@@ -0,0 +1,44 @@
+From 3937ca9b9264529315dc2d9e177c2f77a44b6e89 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Tue, 29 Sep 2015 14:57:57 +0200
+Subject: [PATCH gnumach 3/4] kern/slab: include flags in the slab information
+
+* kern/slab.c (_slab_info): Include flags in the slab information.
+---
+ kern/slab.c | 13 +++++++------
+ 1 file changed, 7 insertions(+), 6 deletions(-)
+
+diff --git a/kern/slab.c b/kern/slab.c
+index 8a98aa5..2f8873b 100644
+--- a/kern/slab.c
++++ b/kern/slab.c
+@@ -1438,10 +1438,10 @@ static void _slab_info(int (printx)(const char *fmt, ...))
+ struct kmem_cache *cache;
+ vm_size_t mem_usage, mem_reclaimable;
+
+- printx("cache obj slab bufs objs bufs "
+- " total reclaimable\n"
+- "name size size /slab usage count "
+- " memory memory\n");
++ printx("cache obj slab bufs objs bufs"
++ " total reclaimable\n"
++ "name flags size size /slab usage count"
++ " memory memory\n");
+
+ simple_lock(&kmem_cache_list_lock);
+
+@@ -1451,8 +1451,9 @@ static void _slab_info(int (printx)(const char *fmt, ...))
+ mem_usage = (cache->nr_slabs * cache->slab_size) >> 10;
+ mem_reclaimable = (cache->nr_free_slabs * cache->slab_size) >> 10;
+
+- printx("%-19s %6lu %3luk %4lu %6lu %6lu %7uk %10uk\n",
+- cache->name, cache->obj_size, cache->slab_size >> 10,
++ printx("%-21s %04x %7lu %3luk %4lu %6lu %6lu %7uk %10uk\n",
++ cache->name, cache->flags, cache->obj_size,
++ cache->slab_size >> 10,
+ cache->bufs_per_slab, cache->nr_objs, cache->nr_bufs,
+ mem_usage, mem_reclaimable);
+
+--
+2.1.4
+