Merged in antmerlino/nuttx/iobinstrumentation (pull request #1001)

Iobinstrumentation

* mm/iob: Introduces producer/consumer id to every iob call. This is so that the calls can be instrumented to monitor the IOB resources.

* iob instrumentation - Merges producer/consumer enumeration for simpler IOB user.

* fs/procfs: Starts adding support for /proc/iobinfo

* fs/procfs: Finishes first pass of simple IOB user stastics and /proc/iobinfo entry

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Anthony Merlino
2019-08-16 22:42:25 +00:00
committed by Gregory Nutt
parent f5f302cff5
commit 70404ed0dc
64 changed files with 945 additions and 170 deletions
+2 -2
View File
@@ -348,7 +348,7 @@ FAR struct bt_buf_s *bt_buf_alloc(enum bt_buf_type_e type,
* available buffers.
*/
buf->frame = iob_alloc(false);
buf->frame = iob_alloc(false, IOBUSER_WIRELESS_BLUETOOTH);
if (!buf->frame)
{
wlerr("ERROR: Failed to allocate an IOB\n");
@@ -407,7 +407,7 @@ void bt_buf_release(FAR struct bt_buf_s *buf)
if (buf->frame != NULL)
{
iob_free(buf->frame);
iob_free(buf->frame, IOBUSER_WIRELESS_BLUETOOTH);
buf->frame = NULL;
}
+1 -1
View File
@@ -420,7 +420,7 @@ drop:
if (ret < 0)
{
iob_free(frame);
iob_free(frame, IOBUSER_WIRELESS_BLUETOOTH);
/* Increment statistics */