All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] add numaps to /proc/xenomai/registry/native/heaps/*
@ 2008-03-25 14:54 Fillod Stephane
  2008-03-25 15:09 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Fillod Stephane @ 2008-03-25 14:54 UTC (permalink / raw)
  To: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 159 bytes --]

Dear Xenomai committers,

Here is attached a misc patch which add numaps to
/proc/xenomai/registry/native/heaps/*
I like it :-)

Regards
-- 
Stephane

[-- Attachment #2: numaps.patch --]
[-- Type: application/octet-stream, Size: 649 bytes --]

--- xenomai/ksrc/skins/native/heap.c	3 Jan 2008 09:47:54 -0000
+++ xenomai/ksrc/skins/native/heap.c	25 Mar 2008 14:36:50 -0000
@@ -60,10 +60,11 @@
 	int len;
 	spl_t s;
 
-	p += sprintf(p, "type=%s:size=%lu:used=%lu\n",
+	p += sprintf(p, "type=%s:size=%lu:used=%lu:numaps=%d\n",
 		     (heap->mode & H_SHARED) == H_SHARED ? "shared" :
 		     (heap->mode & H_MAPPABLE) ? "mappable" : "kernel",
-		     xnheap_usable_mem(&heap->heap_base), xnheap_used_mem(&heap->heap_base));
+		     xnheap_usable_mem(&heap->heap_base), xnheap_used_mem(&heap->heap_base),
+		     atomic_read(&heap->heap_base.archdep.numaps));
 
 	xnlock_get_irqsave(&nklock, s);
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-25 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25 14:54 [Xenomai-core] [PATCH] add numaps to /proc/xenomai/registry/native/heaps/* Fillod Stephane
2008-03-25 15:09 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.