Mistake on this page?
Report an issue in GitHub or email us
Macros | Typedefs | Functions
wsf_trace.h File Reference

Trace message interface. More...

#include <stdarg.h>

Go to the source code of this file.

Macros

#define WSF_TRACE_ENABLED   FALSE
 Trace enable flag (default is disabled, override with compile-time directive). More...
 
#define WSF_TOKEN_ENABLED   FALSE
 Tokenized tracing enable flag (default is disabled, override with compile-time directive). More...
 
#define LL_TRACE_ENABLED   FALSE
 Trace enabled for controller. More...
 
#define AUD_TRACE_ENABLED   FALSE
 Trace enabled for audio subsystem. More...
 
#define WSF_TRACE_INFO0(msg)
 0 argument WSF info trace. More...
 
#define WSF_TRACE_INFO1(msg, var1)
 1 argument WSF info trace. More...
 
#define WSF_TRACE_INFO2(msg, var1, var2)
 2 argument WSF info trace. More...
 
#define WSF_TRACE_INFO3(msg, var1, var2, var3)
 3 argument WSF info trace. More...
 
#define WSF_TRACE_WARN0(msg)    WSF_TRACE0("WSF", "WARN", msg)
 0 argument WSF warning trace. More...
 
#define WSF_TRACE_WARN1(msg, var1)    WSF_TRACE1("WSF", "WARN", msg, var1)
 1 argument WSF warning trace. More...
 
#define WSF_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("WSF", "WARN", msg, var1, var2)
 2 argument WSF warning trace. More...
 
#define WSF_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("WSF", "WARN", msg, var1, var2, var3)
 3 argument WSF warning trace. More...
 
#define WSF_TRACE_ERR0(msg)    WSF_TRACE0("WSF", "ERR", msg)
 0 argument WSF error trace. More...
 
#define WSF_TRACE_ERR1(msg, var1)    WSF_TRACE1("WSF", "ERR", msg, var1)
 1 argument WSF error trace. More...
 
#define WSF_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("WSF", "ERR", msg, var1, var2)
 2 argument WSF error trace. More...
 
#define WSF_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("WSF", "ERR", msg, var1, var2, var3)
 3 argument WSF error trace. More...
 
#define WSF_TRACE_ALLOC0(msg)
 0 argument WSF buffer allocation trace. More...
 
#define WSF_TRACE_ALLOC1(msg, var1)
 1 argument WSF buffer allocation trace. More...
 
#define WSF_TRACE_ALLOC2(msg, var1, var2)
 2 argument WSF buffer allocation trace. More...
 
#define WSF_TRACE_ALLOC3(msg, var1, var2, var3)
 3 argument WSF buffer allocation trace. More...
 
#define WSF_TRACE_FREE0(msg)
 0 argument WSF buffer free trace. More...
 
#define WSF_TRACE_FREE1(msg, var1)
 1 argument WSF buffer free trace. More...
 
#define WSF_TRACE_FREE2(msg, var1, var2)
 2 argument WSF buffer free trace. More...
 
#define WSF_TRACE_FREE3(msg, var1, var2, var3)
 3 argument WSF buffer free trace. More...
 
#define WSF_TRACE_MSG0(msg)
 0 argument WSF message trace. More...
 
#define WSF_TRACE_MSG1(msg, var1)
 1 argument WSF message trace. More...
 
#define WSF_TRACE_MSG2(msg, var1, var2)
 2 argument WSF message trace. More...
 
#define WSF_TRACE_MSG3(msg, var1, var2, var3)
 3 argument WSF message trace. More...
 
#define HCI_TRACE_INFO0(msg)    WSF_TRACE0("HCI", "INFO", msg)
 0 argument HCI info trace. More...
 
#define HCI_TRACE_INFO1(msg, var1)    WSF_TRACE1("HCI", "INFO", msg, var1)
 1 argument HCI info trace. More...
 
#define HCI_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("HCI", "INFO", msg, var1, var2)
 2 argument HCI info trace. More...
 
#define HCI_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("HCI", "INFO", msg, var1, var2, var3)
 3 argument HCI info trace. More...
 
#define HCI_TRACE_WARN0(msg)    WSF_TRACE0("HCI", "WARN", msg)
 0 argument HCI warning trace. More...
 
#define HCI_TRACE_WARN1(msg, var1)    WSF_TRACE1("HCI", "WARN", msg, var1)
 1 argument HCI warning trace. More...
 
#define HCI_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("HCI", "WARN", msg, var1, var2)
 2 argument HCI warning trace. More...
 
#define HCI_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("HCI", "WARN", msg, var1, var2, var3)
 3 argument HCI warning trace. More...
 
#define HCI_TRACE_ERR0(msg)    WSF_TRACE0("HCI", "ERR", msg)
 0 argument HCI error trace. More...
 
#define HCI_TRACE_ERR1(msg, var1)    WSF_TRACE1("HCI", "ERR", msg, var1)
 1 argument HCI error trace. More...
 
#define HCI_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("HCI", "ERR", msg, var1, var2)
 2 argument HCI error trace. More...
 
#define HCI_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("HCI", "ERR", msg, var1, var2, var3)
 3 argument HCI error trace. More...
 
#define HCI_PDUMP_CMD(len, pBuf)
 HCI PDUMP on command. More...
 
#define HCI_PDUMP_EVT(len, pBuf)
 HCI PDUMP on event. More...
 
#define HCI_PDUMP_TX_ACL(len, pBuf)
 HCI PDUMP on transmitted ACL message. More...
 
#define HCI_PDUMP_RX_ACL(len, pBuf)
 HCI PDUMP on Received ACL message. More...
 
#define HCI_PDUMP_TX_ISO(len, pBuf)
 HCI PDUMP on transmitted ISO message. More...
 
#define HCI_PDUMP_RX_ISO(len, pBuf)
 HCI PDUMP on Received ISO message. More...
 
#define DM_TRACE_INFO0(msg)    WSF_TRACE0("DM", "INFO", msg)
 0 argument DM info trace. More...
 
#define DM_TRACE_INFO1(msg, var1)    WSF_TRACE1("DM", "INFO", msg, var1)
 1 argument DM info trace. More...
 
#define DM_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("DM", "INFO", msg, var1, var2)
 2 argument DM info trace. More...
 
#define DM_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("DM", "INFO", msg, var1, var2, var3)
 3 argument DM info trace. More...
 
#define DM_TRACE_WARN0(msg)    WSF_TRACE0("DM", "WARN", msg)
 0 argument DM warning trace. More...
 
#define DM_TRACE_WARN1(msg, var1)    WSF_TRACE1("DM", "WARN", msg, var1)
 1 argument DM warning trace. More...
 
#define DM_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("DM", "WARN", msg, var1, var2)
 2 argument DM warning trace. More...
 
#define DM_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("DM", "WARN", msg, var1, var2, var3)
 3 argument DM warning trace. More...
 
#define DM_TRACE_ERR0(msg)    WSF_TRACE0("DM", "ERR", msg)
 0 argument DM error trace. More...
 
#define DM_TRACE_ERR1(msg, var1)    WSF_TRACE1("DM", "ERR", msg, var1)
 1 argument DM error trace. More...
 
#define DM_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("DM", "ERR", msg, var1, var2)
 2 argument DM error trace. More...
 
#define DM_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("DM", "ERR", msg, var1, var2, var3)
 3 argument DM error trace. More...
 
#define DM_TRACE_ALLOC0(msg)    WSF_TRACE0("DM", "ALLOC", msg)
 0 argument DM buffer allocation trace. More...
 
#define DM_TRACE_ALLOC1(msg, var1)    WSF_TRACE1("DM", "ALLOC", msg, var1)
 1 argument DM buffer allocation trace. More...
 
#define DM_TRACE_ALLOC2(msg, var1, var2)    WSF_TRACE2("DM", "ALLOC", msg, var1, var2)
 2 argument DM buffer allocation trace. More...
 
#define DM_TRACE_ALLOC3(msg, var1, var2, var3)    WSF_TRACE3("DM", "ALLOC", msg, var1, var2, var3)
 3 argument DM buffer allocation trace. More...
 
#define DM_TRACE_FREE0(msg)    WSF_TRACE0("DM", "FREE", msg)
 0 argument DM buffer free trace. More...
 
#define DM_TRACE_FREE1(msg, var1)    WSF_TRACE1("DM", "FREE", msg, var1)
 1 argument DM buffer free trace. More...
 
#define DM_TRACE_FREE2(msg, var1, var2)    WSF_TRACE2("DM", "FREE", msg, var1, var2)
 2 argument DM buffer free trace. More...
 
#define DM_TRACE_FREE3(msg, var1, var2, var3)    WSF_TRACE3("DM", "FREE", msg, var1, var2, var3)
 3 argument DM buffer free trace. More...
 
#define L2C_TRACE_INFO0(msg)    WSF_TRACE0("L2C", "INFO", msg)
 0 argument L2C info trace. More...
 
#define L2C_TRACE_INFO1(msg, var1)    WSF_TRACE1("L2C", "INFO", msg, var1)
 1 argument L2C info trace. More...
 
#define L2C_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("L2C", "INFO", msg, var1, var2)
 2 argument L2C info trace. More...
 
#define L2C_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("L2C", "INFO", msg, var1, var2, var3)
 3 argument L2C info trace. More...
 
#define L2C_TRACE_WARN0(msg)    WSF_TRACE0("L2C", "WARN", msg)
 0 argument L2C warning trace. More...
 
#define L2C_TRACE_WARN1(msg, var1)    WSF_TRACE1("L2C", "WARN", msg, var1)
 1 argument L2C warning trace. More...
 
#define L2C_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("L2C", "WARN", msg, var1, var2)
 2 argument L2C warning trace. More...
 
#define L2C_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("L2C", "WARN", msg, var1, var2, var3)
 3 argument L2C warning trace. More...
 
#define L2C_TRACE_ERR0(msg)    WSF_TRACE0("L2C", "ERR", msg)
 0 argument L2C error trace. More...
 
#define L2C_TRACE_ERR1(msg, var1)    WSF_TRACE1("L2C", "ERR", msg, var1)
 1 argument L2C error trace. More...
 
#define L2C_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("L2C", "ERR", msg, var1, var2)
 2 argument L2C error trace. More...
 
#define L2C_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("L2C", "ERR", msg, var1, var2, var3)
 3 argument L2C error trace. More...
 
#define ATT_TRACE_INFO0(msg)    WSF_TRACE0("ATT", "INFO", msg)
 0 argument ATT info trace. More...
 
#define ATT_TRACE_INFO1(msg, var1)    WSF_TRACE1("ATT", "INFO", msg, var1)
 1 argument ATT info trace. More...
 
#define ATT_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("ATT", "INFO", msg, var1, var2)
 2 argument ATT info trace. More...
 
#define ATT_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("ATT", "INFO", msg, var1, var2, var3)
 3 argument ATT info trace. More...
 
#define ATT_TRACE_WARN0(msg)    WSF_TRACE0("ATT", "WARN", msg)
 0 argument ATT warning trace. More...
 
#define ATT_TRACE_WARN1(msg, var1)    WSF_TRACE1("ATT", "WARN", msg, var1)
 1 argument ATT warning trace. More...
 
#define ATT_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("ATT", "WARN", msg, var1, var2)
 2 argument ATT warning trace. More...
 
#define ATT_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("ATT", "WARN", msg, var1, var2, var3)
 3 argument ATT warning trace. More...
 
#define ATT_TRACE_ERR0(msg)    WSF_TRACE0("ATT", "ERR", msg)
 0 argument ATT error trace. More...
 
#define ATT_TRACE_ERR1(msg, var1)    WSF_TRACE1("ATT", "ERR", msg, var1)
 1 argument ATT error trace. More...
 
#define ATT_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("ATT", "ERR", msg, var1, var2)
 2 argument ATT error trace. More...
 
#define ATT_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("ATT", "ERR", msg, var1, var2, var3)
 3 argument ATT error trace. More...
 
#define EATT_TRACE_INFO0(msg)    WSF_TRACE0("EATT", "INFO", msg)
 0 argument EATT info trace. More...
 
#define EATT_TRACE_INFO1(msg, var1)    WSF_TRACE1("EATT", "INFO", msg, var1)
 1 argument EATT info trace. More...
 
#define EATT_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("EATT", "INFO", msg, var1, var2)
 2 argument EATT info trace. More...
 
#define EATT_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("EATT", "INFO", msg, var1, var2, var3)
 3 argument EATT info trace. More...
 
#define EATT_TRACE_WARN0(msg)    WSF_TRACE0("EATT", "WARN", msg)
 0 argument EATT warning trace. More...
 
#define EATT_TRACE_WARN1(msg, var1)    WSF_TRACE1("EATT", "WARN", msg, var1)
 1 argument EATT warning trace. More...
 
#define EATT_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("EATT", "WARN", msg, var1, var2)
 2 argument EATT warning trace. More...
 
#define EATT_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("EATT", "WARN", msg, var1, var2, var3)
 3 argument EATT warning trace. More...
 
#define EATT_TRACE_ERR0(msg)    WSF_TRACE0("EATT", "ERR", msg)
 0 argument EATT error trace. More...
 
#define EATT_TRACE_ERR1(msg, var1)    WSF_TRACE1("EATT", "ERR", msg, var1)
 1 argument EATT error trace. More...
 
#define EATT_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("EATT", "ERR", msg, var1, var2)
 2 argument EATT error trace. More...
 
#define EATT_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("EATT", "ERR", msg, var1, var2, var3)
 3 argument EATT error trace. More...
 
#define SMP_TRACE_INFO0(msg)    WSF_TRACE0("SMP", "INFO", msg)
 0 argument SMP info trace. More...
 
#define SMP_TRACE_INFO1(msg, var1)    WSF_TRACE1("SMP", "INFO", msg, var1)
 1 argument SMP info trace. More...
 
#define SMP_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("SMP", "INFO", msg, var1, var2)
 2 argument SMP info trace. More...
 
#define SMP_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("SMP", "INFO", msg, var1, var2, var3)
 3 argument SMP info trace. More...
 
#define SMP_TRACE_WARN0(msg)    WSF_TRACE0("SMP", "WARN", msg)
 0 argument SMP warning trace. More...
 
#define SMP_TRACE_WARN1(msg, var1)    WSF_TRACE1("SMP", "WARN", msg, var1)
 1 argument SMP warning trace. More...
 
#define SMP_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("SMP", "WARN", msg, var1, var2)
 2 argument SMP warning trace. More...
 
#define SMP_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("SMP", "WARN", msg, var1, var2, var3)
 3 argument SMP warning trace. More...
 
#define SMP_TRACE_ERR0(msg)    WSF_TRACE0("SMP", "ERR", msg)
 0 argument SMP error trace. More...
 
#define SMP_TRACE_ERR1(msg, var1)    WSF_TRACE1("SMP", "ERR", msg, var1)
 1 argument SMP error trace. More...
 
#define SMP_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("SMP", "ERR", msg, var1, var2)
 2 argument SMP error trace. More...
 
#define SMP_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("SMP", "ERR", msg, var1, var2, var3)
 3 argument SMP error trace. More...
 
#define APP_TRACE_INFO0(msg)    WSF_TRACE0("APP", "INFO", msg)
 0 argument App info trace. More...
 
#define APP_TRACE_INFO1(msg, var1)    WSF_TRACE1("APP", "INFO", msg, var1)
 1 argument App info trace. More...
 
#define APP_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("APP", "INFO", msg, var1, var2)
 2 argument App info trace. More...
 
#define APP_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("APP", "INFO", msg, var1, var2, var3)
 3 argument App info trace. More...
 
#define APP_TRACE_INFO4(msg, var1, var2, var3, var4)   WSF_TRACE4(INFO, APP, msg, var1, var2, var3, var4)
 4 argument App info trace. More...
 
#define APP_TRACE_INFO5(msg, var1, var2, var3, var4, var5)   WSF_TRACE5(INFO, APP, msg, var1, var2, var3, var4, var5)
 5 argument App info trace. More...
 
#define APP_TRACE_INFO6(msg, var1, var2, var3, var4, var5, var6)   WSF_TRACE6(INFO, APP, msg, var1, var2, var3, var4, var5, var6)
 6 argument App info trace. More...
 
#define APP_TRACE_INFO7(msg, var1, var2, var3, var4, var5, var6, var7)   WSF_TRACE7(INFO, APP, msg, var1, var2, var3, var4, var5, var6, var7)
 7 argument App info trace. More...
 
#define APP_TRACE_INFO8(msg, var1, var2, var3, var4, var5, var6, var7, var8)   WSF_TRACE8(INFO, APP, msg, var1, var2, var3, var4, var5, var6, var7, var8)
 8 argument App info trace. More...
 
#define APP_TRACE_INFO9(msg, var1, var2, var3, var4, var5, var6, var7, var8, var9)   WSF_TRACE9(INFO, APP, msg, var1, var2, var3, var4, var5, var6, var7, var8, var9)
 9 argument App info trace. More...
 
#define APP_TRACE_INFO12(msg, var1, var2, var3, var4, var5, var6, var7, var8, var9, var10, var11, var12)   WSF_TRACE12(INFO, APP, msg, var1, var2, var3, var4, var5, var6, var7, var8, var9, var10, var11, var12)
 12 argument App info trace. More...
 
#define APP_TRACE_WARN0(msg)    WSF_TRACE0("APP", "WARN", msg)
 0 argument App warning trace. More...
 
#define APP_TRACE_WARN1(msg, var1)    WSF_TRACE1("APP", "WARN", msg, var1)
 1 argument App warning trace. More...
 
#define APP_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("APP", "WARN", msg, var1, var2)
 2 argument App warning trace. More...
 
#define APP_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("APP", "WARN", msg, var1, var2, var3)
 3 argument App warning trace. More...
 
#define APP_TRACE_ERR0(msg)    WSF_TRACE0("APP", "ERR", msg)
 0 argument App error trace. More...
 
#define APP_TRACE_ERR1(msg, var1)    WSF_TRACE1("APP", "ERR", msg, var1)
 1 argument App error trace. More...
 
#define APP_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("APP", "ERR", msg, var1, var2)
 2 argument App error trace. More...
 
#define APP_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("APP", "ERR", msg, var1, var2, var3)
 3 argument App error trace. More...
 
#define LL_TRACE_INFO0(msg)    WSF_TRACE0("LL", "INFO", msg)
 0 argument LL info trace. More...
 
#define LL_TRACE_INFO1(msg, var1)    WSF_TRACE1("LL", "INFO", msg, var1)
 1 argument LL info trace. More...
 
#define LL_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("LL", "INFO", msg, var1, var2)
 2 argument LL info trace. More...
 
#define LL_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("LL", "INFO", msg, var1, var2, var3)
 3 argument LL info trace. More...
 
#define LL_TRACE_WARN0(msg)    WSF_TRACE0("LL", "WARN", msg)
 0 argument LL warning trace. More...
 
#define LL_TRACE_WARN1(msg, var1)    WSF_TRACE1("LL", "WARN", msg, var1)
 1 argument LL warning trace. More...
 
#define LL_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("LL", "WARN", msg, var1, var2)
 2 argument LL warning trace. More...
 
#define LL_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("LL", "WARN", msg, var1, var2, var3)
 3 argument LL warning trace. More...
 
#define LL_TRACE_ERR0(msg)    WSF_TRACE0("LL", "ERR", msg)
 0 argument LL error trace. More...
 
#define LL_TRACE_ERR1(msg, var1)    WSF_TRACE1("LL", "ERR", msg, var1)
 1 argument LL error trace. More...
 
#define LL_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("LL", "ERR", msg, var1, var2)
 2 argument LL error trace. More...
 
#define LL_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("LL", "ERR", msg, var1, var2, var3)
 3 argument LL error trace. More...
 
#define BBP_TRACE_INFO0(msg)    WSF_TRACE0("BBP", "INFO", msg)
 0 argument BBP warning trace. More...
 
#define BBP_TRACE_INFO1(msg, var1)    WSF_TRACE1("BBP", "INFO", msg, var1)
 1 argument BBP warning trace. More...
 
#define BBP_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("BBP", "INFO", msg, var1, var2)
 2 argument BBP warning trace. More...
 
#define BBP_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("BBP", "INFO", msg, var1, var2, var3)
 3 argument BBP info trace. More...
 
#define BBP_TRACE_WARN0(msg)    WSF_TRACE0("BBP", "WARN", msg)
 0 argument BBP warning trace. More...
 
#define BBP_TRACE_WARN1(msg, var1)    WSF_TRACE1("BBP", "WARN", msg, var1)
 1 argument BBP warning trace. More...
 
#define BBP_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("BBP", "WARN", msg, var1, var2)
 2 argument BBP warning trace. More...
 
#define BBP_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("BBP", "WARN", msg, var1, var2, var3)
 3 argument BBP warning trace. More...
 
#define BBP_TRACE_ERR0(msg)    WSF_TRACE0("BBP", "ERR", msg)
 0 argument BBP error trace. More...
 
#define BBP_TRACE_ERR1(msg, var1)    WSF_TRACE1("BBP", "ERR", msg, var1)
 1 argument BBP error trace. More...
 
#define BBP_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("BBP", "ERR", msg, var1, var2)
 2 argument BBP error trace. More...
 
#define BBP_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("BBP", "ERR", msg, var1, var2, var3)
 3 argument BBP error trace. More...
 
#define AUD_TRACE_INFO0(msg)    WSF_TRACE0("AUD", "INFO", msg)
 0 argument AUD info trace. More...
 
#define AUD_TRACE_INFO1(msg, var1)    WSF_TRACE1("AUD", "INFO", msg, var1)
 1 argument AUD info trace. More...
 
#define AUD_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("AUD", "INFO", msg, var1, var2)
 2 argument AUD info trace. More...
 
#define AUD_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("AUD", "INFO", msg, var1, var2, var3)
 3 argument AUD info trace. More...
 
#define AUD_TRACE_WARN0(msg)    WSF_TRACE0("AUD", "WARN", msg)
 0 argument AUD warning trace. More...
 
#define AUD_TRACE_WARN1(msg, var1)    WSF_TRACE1("AUD", "WARN", msg, var1)
 1 argument AUD warning trace. More...
 
#define AUD_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("AUD", "WARN", msg, var1, var2)
 2 argument AUD warning trace. More...
 
#define AUD_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("AUD", "WARN", msg, var1, var2, var3)
 3 argument AUD warning trace. More...
 
#define AUD_TRACE_ERR0(msg)    WSF_TRACE0("AUD", "ERR", msg)
 0 argument AUD error trace. More...
 
#define AUD_TRACE_ERR1(msg, var1)    WSF_TRACE1("AUD", "ERR", msg, var1)
 1 argument AUD error trace. More...
 
#define AUD_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("AUD", "ERR", msg, var1, var2)
 2 argument AUD error trace. More...
 
#define AUD_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("AUD", "ERR", msg, var1, var2, var3)
 3 argument AUD error trace. More...
 
#define MESH_TRACE_INFO0(msg)    WSF_TRACE0("MESH", "INFO", msg)
 0 argument MESH info trace. More...
 
#define MESH_TRACE_INFO1(msg, var1)    WSF_TRACE1("MESH", "INFO", msg, var1)
 1 argument MESH info trace. More...
 
#define MESH_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("MESH", "INFO", msg, var1, var2)
 2 argument MESH info trace. More...
 
#define MESH_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("MESH", "INFO", msg, var1, var2, var3)
 3 argument MESH info trace. More...
 
#define MESH_TRACE_WARN0(msg)    WSF_TRACE0("MESH", "WARN", msg)
 0 argument MESH warning trace. More...
 
#define MESH_TRACE_WARN1(msg, var1)    WSF_TRACE1("MESH", "WARN", msg, var1)
 1 argument MESH warning trace. More...
 
#define MESH_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("MESH", "WARN", msg, var1, var2)
 2 argument MESH warning trace. More...
 
#define MESH_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("MESH", "WARN", msg, var1, var2, var3)
 3 argument MESH warning trace. More...
 
#define MESH_TRACE_ERR0(msg)    WSF_TRACE0("MESH", "ERR", msg)
 0 argument MESH error trace. More...
 
#define MESH_TRACE_ERR1(msg, var1)    WSF_TRACE1("MESH", "ERR", msg, var1)
 1 argument MESH error trace. More...
 
#define MESH_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("MESH", "ERR", msg, var1, var2)
 2 argument MESH error trace. More...
 
#define MESH_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("MESH", "ERR", msg, var1, var2, var3)
 3 argument MESH error trace. More...
 
#define MMDL_TRACE_INFO0(msg)    WSF_TRACE0("MMDL", "INFO", msg)
 0 argument MMDL info trace. More...
 
#define MMDL_TRACE_INFO1(msg, var1)    WSF_TRACE1("MMDL", "INFO", msg, var1)
 1 argument MMDL info trace. More...
 
#define MMDL_TRACE_INFO2(msg, var1, var2)    WSF_TRACE2("MMDL", "INFO", msg, var1, var2)
 2 argument MMDL info trace. More...
 
#define MMDL_TRACE_INFO3(msg, var1, var2, var3)    WSF_TRACE3("MMDL", "INFO", msg, var1, var2, var3)
 3 argument MMDL info trace. More...
 
#define MMDL_TRACE_WARN0(msg)    WSF_TRACE0("MMDL", "WARN", msg)
 0 argument MMDL warning trace. More...
 
#define MMDL_TRACE_WARN1(msg, var1)    WSF_TRACE1("MMDL", "WARN", msg, var1)
 1 argument MMDL warning trace. More...
 
#define MMDL_TRACE_WARN2(msg, var1, var2)    WSF_TRACE2("MMDL", "WARN", msg, var1, var2)
 2 argument MMDL warning trace. More...
 
#define MMDL_TRACE_WARN3(msg, var1, var2, var3)    WSF_TRACE3("MMDL", "WARN", msg, var1, var2, var3)
 3 argument MMDL warning trace. More...
 
#define MMDL_TRACE_ERR0(msg)    WSF_TRACE0("MMDL", "ERR", msg)
 0 argument MMDL error trace. More...
 
#define MMDL_TRACE_ERR1(msg, var1)    WSF_TRACE1("MMDL", "ERR", msg, var1)
 1 argument MMDL error trace. More...
 
#define MMDL_TRACE_ERR2(msg, var1, var2)    WSF_TRACE2("MMDL", "ERR", msg, var1, var2)
 2 argument MMDL error trace. More...
 
#define MMDL_TRACE_ERR3(msg, var1, var2, var3)    WSF_TRACE3("MMDL", "ERR", msg, var1, var2, var3)
 3 argument MMDL error trace. More...
 
#define LL_TRACE_ENABLE(ena)    WsfTraceEnable(ena)
 Enable LL trace. More...
 
Trace macros
#define WSF_TRACE0(subsys, stat, msg)    WsfToken(((__LINE__ & 0xFFF) << 16) | MODULE_ID, 0)
 
#define WSF_TRACE1(subsys, stat, msg, var1)    WsfToken(((__LINE__ & 0xFFF) << 16) | MODULE_ID, (uint32_t)(var1))
 
#define WSF_TRACE2(subsys, stat, msg, var1, var2)    WsfToken(((__LINE__ & 0xFFF) << 16) | MODULE_ID, (uint32_t)(((var2) << 16) | ((var1) & 0xFFFF)))
 
#define WSF_TRACE3(subsys, stat, msg, var1, var2, var3)   WsfToken(((__LINE__ & 0xFFF) << 16) | MODULE_ID, (uint32_t)((((var3) & 0xFFFF) << 16) | (((var2) & 0xFF) << 8) | ((var1) & 0xFF)))
 

Typedefs

typedef bool_t(* WsfTraceHandler_t) (const uint8_t *pBuf, uint32_t len)
 Token event handler. More...
 
typedef void(* WsfBt4TraceCback_t) (const char *pStr, va_list args)
 BT4 Platform trace callback. More...
 

Functions

void WsfToken (uint32_t tok, uint32_t var)
 Output tokenized message. More...
 
void WsfTraceEnable (bool_t enable)
 Enable trace messages. More...
 
void WsfTrace (const char *pStr,...)
 Output trace message. More...
 
void WsfTraceRegisterHandler (WsfTraceHandler_t traceCback)
 Register trace handler. More...
 
void WsfTraceRegister (WsfBt4TraceCback_t cback)
 Register BT4 platform trace callback function. More...
 
bool_t WsfTokenService (void)
 Service the trace ring buffer. More...
 

Detailed Description

Trace message interface.

Copyright (c) 2009-2019 Arm Ltd. All Rights Reserved.

Copyright (c) 2019-2020 Packetcraft, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file wsf_trace.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.