diff options
author | Florin Coras <fcoras@cisco.com> | 2020-09-28 23:40:28 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-09-30 10:11:21 +0000 |
commit | 2a7c0b6fc027e86727c08d98b66e19ad8768c82b (patch) | |
tree | cf037f459b5620fcf4151d272b3fad3d5fa82a19 /src/svm/fifo_segment.c | |
parent | 5aa34d54de1e3dcdab1b74207ef8a24cc67a0f5d (diff) |
svm session: use new clib mem apis for segments
"sh memory map" now reports shared memory segments mapped by session
layer for applications.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I7debdcd06c7728abfb5cf817a1ccc37de495472c
Diffstat (limited to 'src/svm/fifo_segment.c')
-rw-r--r-- | src/svm/fifo_segment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/svm/fifo_segment.c b/src/svm/fifo_segment.c index 5fb2758606e..a247929a058 100644 --- a/src/svm/fifo_segment.c +++ b/src/svm/fifo_segment.c @@ -1362,7 +1362,7 @@ format_fifo_segment_type (u8 * s, va_list * args) ssvm_segment_type_t st = ssvm_type (&sp->ssvm); if (st == SSVM_SEGMENT_PRIVATE) - s = format (s, "%s", "private-heap"); + s = format (s, "%s", "private"); else if (st == SSVM_SEGMENT_MEMFD) s = format (s, "%s", "memfd"); else if (st == SSVM_SEGMENT_SHM) @@ -1400,7 +1400,7 @@ format_fifo_segment (u8 * s, va_list * args) if (fs == 0) { - s = format (s, "%-15s%15s%15s%15s%15s%15s", "Name", "Type", + s = format (s, "%-20s%10s%15s%15s%15s%15s", "Name", "Type", "HeapSize (M)", "ActiveFifos", "FreeFifos", "Address"); return s; } @@ -1409,7 +1409,7 @@ format_fifo_segment (u8 * s, va_list * args) active_fifos = fifo_segment_num_fifos (fs); free_fifos = fifo_segment_num_free_fifos (fs); - s = format (s, "%-15v%15U%15llu%15u%15u%15llx", ssvm_name (&fs->ssvm), + s = format (s, "%-20v%10U%15llu%15u%15u%15llx", ssvm_name (&fs->ssvm), format_fifo_segment_type, fs, size >> 20ULL, active_fifos, free_fifos, address); |