[Xenomai-git] Gilles Chanteperdrix : nucleus: print warning when destroying a heap with allocated data
Module: xenomai-head Branch: master Commit: 898b1e7a479f252f00f1d104083f1d7a18a433fb URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=898b1e7a479f252f00f1d104083f1d7a18a433fb Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Sun Jun 19 17:20:10 2011 +0200 nucleus: print warning when destroying a heap with allocated data --- ksrc/nucleus/heap.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ksrc/nucleus/heap.c b/ksrc/nucleus/heap.c index 0ab5114..0c1ceeb 100644 --- a/ksrc/nucleus/heap.c +++ b/ksrc/nucleus/heap.c @@ -1395,6 +1395,11 @@ void xnheap_destroy_mapped(xnheap_t *heap, */ XENO_ASSERT(NUCLEUS, mapaddr == NULL || release, /* nop */); + if (XENO_DEBUG(NUCLEUS) heap-ubytes != 0) + printk(KERN_ERR xnheap: destroying shared heap '%s' + with %lu bytes still in use.\n, + heap-label, heap-ubytes); + xnlock_get_irqsave(nklock, s); removeq(heapq, heap-stat_link); xnvfile_touch_tag(vfile_tag); ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : nucleus: print warning when destroying a heap with allocated data
Module: xenomai-gch Branch: u_mode Commit: 002c925280ed799095c13eb041e82c4a113bfc04 URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=002c925280ed799095c13eb041e82c4a113bfc04 Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Sun Jun 19 17:20:10 2011 +0200 nucleus: print warning when destroying a heap with allocated data --- ksrc/nucleus/heap.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ksrc/nucleus/heap.c b/ksrc/nucleus/heap.c index a26e4fe..6d3dee5 100644 --- a/ksrc/nucleus/heap.c +++ b/ksrc/nucleus/heap.c @@ -1395,6 +1395,11 @@ void xnheap_destroy_mapped(xnheap_t *heap, */ XENO_ASSERT(NUCLEUS, mapaddr == NULL || release, /* nop */); + if (XENO_DEBUG(NUCLEUS) heap-u_bytes != 0) + printk(KERN_ERROR xnheap: destroying shared heap '%s' + with %u bytes still in use.\n, + heap-label, heap-u_bytes); + xnlock_get_irqsave(nklock, s); removeq(heapq, heap-stat_link); xnvfile_touch_tag(vfile_tag); ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : nucleus: print warning when destroying a heap with allocated data
Module: xenomai-gch Branch: u_mode Commit: 2027928d8722c411a210c5b641e6f4964e0fbba7 URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=2027928d8722c411a210c5b641e6f4964e0fbba7 Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Sun Jun 19 17:20:10 2011 +0200 nucleus: print warning when destroying a heap with allocated data --- ksrc/nucleus/heap.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ksrc/nucleus/heap.c b/ksrc/nucleus/heap.c index 0ab5114..3148ba3 100644 --- a/ksrc/nucleus/heap.c +++ b/ksrc/nucleus/heap.c @@ -1395,6 +1395,11 @@ void xnheap_destroy_mapped(xnheap_t *heap, */ XENO_ASSERT(NUCLEUS, mapaddr == NULL || release, /* nop */); + if (XENO_DEBUG(NUCLEUS) heap-u_bytes != 0) + printk(KERN_ERROR xnheap: destroying shared heap '%s' + with %lu bytes still in use.\n, + heap-label, heap-ubytes); + xnlock_get_irqsave(nklock, s); removeq(heapq, heap-stat_link); xnvfile_touch_tag(vfile_tag); ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Gilles Chanteperdrix : nucleus: print warning when destroying a heap with allocated data
Module: xenomai-gch Branch: u_mode Commit: 037b0e79e121cbcdc9397a35470a99777518f85f URL: http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=037b0e79e121cbcdc9397a35470a99777518f85f Author: Gilles Chanteperdrix gilles.chanteperd...@xenomai.org Date: Sun Jun 19 17:20:10 2011 +0200 nucleus: print warning when destroying a heap with allocated data --- ksrc/nucleus/heap.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/ksrc/nucleus/heap.c b/ksrc/nucleus/heap.c index 0ab5114..0c1ceeb 100644 --- a/ksrc/nucleus/heap.c +++ b/ksrc/nucleus/heap.c @@ -1395,6 +1395,11 @@ void xnheap_destroy_mapped(xnheap_t *heap, */ XENO_ASSERT(NUCLEUS, mapaddr == NULL || release, /* nop */); + if (XENO_DEBUG(NUCLEUS) heap-ubytes != 0) + printk(KERN_ERR xnheap: destroying shared heap '%s' + with %lu bytes still in use.\n, + heap-label, heap-ubytes); + xnlock_get_irqsave(nklock, s); removeq(heapq, heap-stat_link); xnvfile_touch_tag(vfile_tag); ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git