Write trace data to the compile-time selected trace backend.
- Parameters
-
data | Memory buffer containing modem trace data. |
len | Memory buffer length. |
- Returns
- Number of bytes written if the operation was successful. Otherwise, a (negative) error code is returned. Especially, -ENOSPC if no space is available and the backend has to be cleared before tracing can continue. For some trace backends, space is also cleared when performing the read operation. -EAGAIN if no data were written due to e.g. flow control and the operation should be retried.