mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
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:
committed by
Gregory Nutt
parent
f5f302cff5
commit
70404ed0dc
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -420,7 +420,7 @@ drop:
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
iob_free(frame);
|
||||
iob_free(frame, IOBUSER_WIRELESS_BLUETOOTH);
|
||||
|
||||
/* Increment statistics */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user