Skip to content

Sem heap statistics & mutex auto-cleanup fixes

Jan Kiszka xenomai 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 8 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nucleus: Use Linux spin lock for heap list managementksrc/nucleus/heap.c+12 -143 replies
2/3nucleus: Include all heaps in statisticsinclude/nucleus/heap.h ksrc/drivers/ipc/iddp.c ksrc/drivers/ipc/xddp.c +12 more+143 -385 replies
3/3native: Release fastlock to the proper heapksrc/skins/native/mutex.c+12 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Xenomai-core] [PATCH v2 0/3] Sem heap statistics & mutex auto-cleanup fixes

This version extends the heap statistics to include all heaps that are intialized by the nucleus or some skip. Some internal API modifications were required which makes the second patch a bit larger. Moreover, I modified some internal locking of nucleus' heap to use plain Linux spin locks instead of heavy nklock.

Please pull the series from

git://xenomai.org/xenomai-jki.git for-upstream

if there are no concerns.

Jan Kiszka (3):
nucleus: Use Linux spin lock for heap list management
nucleus: Include all heaps in statistics
native: Release fastlock to the proper heap

 include/nucleus/heap.h    |   12 ++++-
 ksrc/drivers/ipc/iddp.c   |    3 +-
 ksrc/drivers/ipc/xddp.c   |    6 ++-
 ksrc/nucleus/heap.c       |  132 ++++++++++++++++++++++++++++++++++----------
 ksrc/nucleus/module.c     |    2 +-
 ksrc/nucleus/pod.c        |    5 +-
 ksrc/nucleus/shadow.c     |    5 ++-
 ksrc/skins/native/heap.c  |    6 ++-
 ksrc/skins/native/mutex.c |   14 ++++-
 ksrc/skins/native/pipe.c  |    4 +-
 ksrc/skins/native/queue.c |    6 ++-
 ksrc/skins/posix/shm.c    |    4 +-
 ksrc/skins/psos+/rn.c     |    6 ++-
 ksrc/skins/rtai/shm.c     |    7 ++-
 ksrc/skins/vrtx/heap.c    |    6 ++-
 ksrc/skins/vrtx/syscall.c |    3 +-
 16 files changed, 167 insertions(+), 54 deletions(-)

[1] http://thread.gmane.org/gmane.linux.real-time.xenomai.devel/6559