- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# /space/home/slher/rel/Beken/v6_4_5/macsw/modules/dbg/src/trace_compo.h

Go to the documentation of this file.

    00001
    00012 #ifndef _TRACE_COMPO_H_
    00013 #define _TRACE_COMPO_H_
    00014
    00056 enum trace_compo
    00057 {
    00058     TRACE_COMPO_KERNEL,
    00059     TRACE_COMPO_LMAC,
    00060     TRACE_COMPO_CHAN,
    00061     TRACE_COMPO_STA,
    00062     TRACE_COMPO_AP,
    00063     TRACE_COMPO_P2P,
    00064     TRACE_COMPO_MESH,
    00065     TRACE_COMPO_RTOS,
    00066     TRACE_COMPO_FHOST,
    00067     TRACE_COMPO_APP,
    00068     TRACE_COMPO_TDLS,
    00069     /* keep it last */
    00070     TRACE_COMPO_MAX,
    00071 };
    00072
    00074 extern uint32_t trace_compo_level[TRACE_COMPO_MAX];
    00075
    00077 #define TRACE_COMPO(compo) NX_TRACE && TRACE_##compo##_EN
    00078
    00084 enum trace_level_kernel
    00085 {
    00087     TRACE_LVL_KERNEL_ERR,
    00089     TRACE_LVL_KERNEL_MSG_API,
    00091     TRACE_LVL_KERNEL_MSG_LOCAL,
    00093     TRACE_LVL_KERNEL_STATE,
    00094 };
    00095
    00097 #define TRACE_KERNEL_DEFAULT (CO_BIT(TRACE_LVL_KERNEL_ERR) |            \
    00098                               CO_BIT(TRACE_LVL_KERNEL_MSG_API) |        \
    00099                               CO_BIT(TRACE_LVL_KERNEL_MSG_LOCAL))
    00100
    00102 #define TRACE_KERNEL_EN 1
    00103 #if TRACE_COMPO(KERNEL)
    00104
    00105 #define TRACE_KERNEL(lvl,...) TRACE_FILT(KERNEL, KERNEL_##lvl, __VA_ARGS__ )
    00106
    00107 #define TRACE_BUF_KERNEL(lvl,...) TRACE_BUF_FILT(KERNEL, KERNEL_##lvl, __VA_ARGS__ )
    00108 #else
    00109 #define TRACE_KERNEL(lvl,...)
    00110 #define TRACE_BUF_KERNEL(lvl,...)
    00111 #endif /* TRACE_COMPO(KERNEL) */
    00112
    00118 enum trace_level_lmac
    00119 {
    00121     TRACE_LVL_LMAC_ERR,
    00123     TRACE_LVL_LMAC_TX,
    00125     TRACE_LVL_LMAC_RX,
    00127     TRACE_LVL_LMAC_RX_ALL,
    00129     TRACE_LVL_LMAC_DOZE,
    00131     TRACE_LVL_LMAC_BA,
    00133     TRACE_LVL_LMAC_TPC,
    00134 };
    00135
    00137 #define TRACE_LMAC_DEFAULT (CO_BIT(TRACE_LVL_LMAC_ERR))
    00138
    00140 #define TRACE_LMAC_EN 1
    00141 #if TRACE_COMPO(LMAC)
    00142
    00143 #define TRACE_LMAC(lvl,...) TRACE_FILT(LMAC, LMAC_##lvl, __VA_ARGS__ )
    00144
    00145 #define TRACE_BUF_LMAC(lvl,...) TRACE_BUF_FILT(LMAC, LMAC_##lvl, __VA_ARGS__ )
    00146 #else
    00147 #define TRACE_LMAC(lvl,...)
    00148 #define TRACE_BUF_LMAC(lvl,...)
    00149 #endif /* TRACE_COMPO(LMAC) */
    00150
    00156 enum trace_level_chan
    00157 {
    00159     TRACE_LVL_CHAN_ERR,
    00161     TRACE_LVL_CHAN_INF,
    00162     /* create/update/destroy and Link/unlink */
    00163     TRACE_LVL_CHAN_CREATE,
    00165     TRACE_LVL_CHAN_SWITCH,
    00167     TRACE_LVL_CHAN_STATUS,
    00169     TRACE_LVL_CHAN_CON_LESS,
    00171     TRACE_LVL_CHAN_NOA,
    00173     TRACE_LVL_CHAN_TBTT,
    00174 };
    00175
    00177 #define TRACE_CHAN_DEFAULT (CO_BIT(TRACE_LVL_CHAN_ERR) | \
    00178                             CO_BIT(TRACE_LVL_CHAN_INF))
    00179
    00181 #define TRACE_CHAN_EN 1
    00182 #if TRACE_COMPO(CHAN)
    00183
    00184 #define TRACE_CHAN(lvl,...) TRACE_FILT(CHAN, CHAN_##lvl, __VA_ARGS__ )
    00185
    00186 #define TRACE_BUF_CHAN(lvl,...) TRACE_BUF_FILT(CHAN, CHAN_##lvl, __VA_ARGS__ )
    00187 #else
    00188 #define TRACE_CHAN(lvl,...)
    00189 #define TRACE_BUF_CHAN(lvl,...)
    00190 #endif /* TRACE_COMPO(CHAN) */
    00191
    00197 enum trace_level_sta
    00198 {
    00200     TRACE_LVL_STA_ERR,
    00202     TRACE_LVL_STA_BCN,
    00204     TRACE_LVL_STA_PS,
    00205 };
    00206
    00208 #define TRACE_STA_DEFAULT (CO_BIT(TRACE_LVL_STA_ERR))
    00209
    00211 #define TRACE_STA_EN 1
    00212 #if TRACE_COMPO(STA)
    00213
    00214 #define TRACE_STA(lvl,...) TRACE_FILT(STA, STA_##lvl, __VA_ARGS__ )
    00215
    00216 #define TRACE_BUF_STA(lvl,...) TRACE_BUF_FILT(STA, STA_##lvl, __VA_ARGS__ )
    00217 #else
    00218 #define TRACE_STA(lvl,...)
    00219 #define TRACE_BUF_STA(lvl,...)
    00220 #endif /* TRACE_COMPO(STA) */
    00221
    00227 enum trace_level_ap
    00228 {
    00230     TRACE_LVL_AP_ERR,
    00232     TRACE_LVL_AP_BCN,
    00234     TRACE_LVL_AP_PS,
    00235 };
    00236
    00238 #define TRACE_AP_DEFAULT (CO_BIT(TRACE_LVL_AP_ERR))
    00239
    00241 #define TRACE_AP_EN 1
    00242 #if TRACE_COMPO(AP)
    00243
    00244 #define TRACE_AP(lvl,...) TRACE_FILT(AP, AP_##lvl, __VA_ARGS__ )
    00245
    00246 #define TRACE_BUF_AP(lvl,...) TRACE_BUF_FILT(AP, AP_##lvl, __VA_ARGS__ )
    00247 #else
    00248 #define TRACE_AP(lvl,...)
    00249 #define TRACE_BUF_AP(lvl,...)
    00250 #endif /* TRACE_COMPO(AP) */
    00251
    00257 enum trace_level_p2p
    00258 {
    00260     TRACE_LVL_P2P_ERR,
    00262     TRACE_LVL_P2P_ITF,
    00264     TRACE_LVL_P2P_PS,
    00266     TRACE_LVL_P2P_NOA,
    00268     TRACE_LVL_P2P_NOA_DET,
    00270     TRACE_LVL_P2P_TBTT,
    00271 };
    00272
    00274 #define TRACE_P2P_DEFAULT (CO_BIT(TRACE_LVL_P2P_ERR))
    00275
    00277 #define TRACE_P2P_EN 1
    00278 #if TRACE_COMPO(P2P)
    00279
    00280 #define TRACE_P2P(lvl,...) TRACE_FILT(P2P, P2P_##lvl, __VA_ARGS__ )
    00281
    00282 #define TRACE_BUF_P2P(lvl,...) TRACE_BUF_FILT(P2P, P2P_##lvl, __VA_ARGS__ )
    00283 #else
    00284 #define TRACE_P2P(lvl,...)
    00285 #define TRACE_BUF_P2P(lvl,...)
    00286 #endif /* TRACE_COMPO(P2P) */
    00287
    00293 enum trace_level_mesh
    00294 {
    00296     TRACE_LVL_MESH_ERR,
    00298     TRACE_LVL_MESH_INF,
    00300     TRACE_LVL_MESH_PS,
    00302     TRACE_LVL_MESH_SP,
    00304     TRACE_LVL_MESH_AWIN,
    00306     TRACE_LVL_MESH_SLEEP,
    00308     TRACE_LVL_MESH_RX,
    00310     TRACE_LVL_MESH_BCN_RX,
    00312     TRACE_LVL_MESH_BCN_TX,
    00314     TRACE_LVL_MESH_POST_TRAFFIC,
    00316     TRACE_LVL_MESH_HWMP,
    00318     TRACE_LVL_MESH_MPATH,
    00320     TRACE_LVL_MESH_MPM,
    00322     TRACE_LVL_MESH_TBTT,
    00323 };
    00324
    00326 #define TRACE_MESH_DEFAULT (CO_BIT(TRACE_LVL_MESH_ERR))
    00327
    00329 #define TRACE_MESH_EN 1
    00330 #if TRACE_COMPO(MESH)
    00331
    00332 #define TRACE_MESH(lvl,...) TRACE_FILT(MESH, MESH_##lvl, __VA_ARGS__ )
    00333
    00334 #define TRACE_BUF_MESH(lvl,...) TRACE_BUF_FILT(MESH, MESH_##lvl, __VA_ARGS__ )
    00335 #else
    00336 #define TRACE_MESH(lvl,...)
    00337 #define TRACE_BUF_MESH(lvl,...)
    00338 #endif /* TRACE_COMPO(MESH) */
    00339
    00345 enum trace_level_rtos
    00346 {
    00348     TRACE_LVL_RTOS_ERR,
    00350     TRACE_LVL_RTOS_ALLOC,
    00352     TRACE_LVL_RTOS_FREE,
    00354     TRACE_LVL_RTOS_CREATE,
    00356     TRACE_LVL_RTOS_SUSPEND,
    00358     TRACE_LVL_RTOS_SWITCH_IN,
    00360     TRACE_LVL_RTOS_SWITCH_OUT,
    00361 };
    00362
    00364 #define TRACE_RTOS_DEFAULT (CO_BIT(TRACE_LVL_RTOS_ERR) |                     \
    00365                             CO_BIT(TRACE_LVL_RTOS_CREATE))
    00366
    00368 #define TRACE_RTOS_EN 1
    00369 #if TRACE_COMPO(RTOS)
    00370
    00371 #define TRACE_RTOS(lvl,...) TRACE_FILT(RTOS, RTOS_##lvl, __VA_ARGS__ )
    00372
    00373 #define TRACE_BUF_RTOS(lvl,...) TRACE_BUF_FILT(RTOS, RTOS_##lvl, __VA_ARGS__ )
    00374 #else
    00375 #define TRACE_RTOS(lvl,...)
    00376 #define TRACE_BUF_RTOS(lvl,...)
    00377 #endif /* TRACE_COMPO(RTOS) */
    00378
    00384 enum trace_level_fhost
    00385 {
    00387     TRACE_LVL_FHOST_ERR,
    00389     TRACE_LVL_FHOST_WPA_FSM,
    00391     TRACE_LVL_FHOST_WPA_CMD,
    00393     TRACE_LVL_FHOST_WPA_INFO,
    00395     TRACE_LVL_FHOST_DHCP,
    00397     TRACE_LVL_FHOST_TASK_INIT,
    00399     TRACE_LVL_FHOST_SMARTCONF,
    00400 };
    00401
    00403 #define TRACE_FHOST_DEFAULT (CO_BIT(TRACE_LVL_FHOST_ERR))
    00404
    00406 #define TRACE_FHOST_EN 1
    00407 #if TRACE_COMPO(FHOST)
    00408
    00409 #define TRACE_FHOST(lvl,...) TRACE_FILT(FHOST, FHOST_##lvl, __VA_ARGS__ )
    00410
    00411 #define TRACE_BUF_FHOST(lvl,...) TRACE_BUF_FILT(FHOST, FHOST_##lvl, __VA_ARGS__ )
    00412 #else
    00413 #define TRACE_FHOST(lvl,...)
    00414 #define TRACE_BUF_FHOST(lvl,...)
    00415 #endif /* TRACE_COMPO(FHOST) */
    00416
    00422 enum trace_level_app
    00423 {
    00425     TRACE_LVL_APP_ERR,
    00427     TRACE_LVL_APP_WARN,
    00429     TRACE_LVL_APP_INF,
    00431     TRACE_LVL_APP_DBG,
    00432 };
    00433
    00435 #define TRACE_APP_DEFAULT (CO_BIT(TRACE_LVL_APP_ERR))
    00436
    00438 #define TRACE_APP_EN 1
    00439 #if TRACE_COMPO(APP)
    00440
    00441 #define TRACE_APP(lvl,...) TRACE_FILT(APP, APP_##lvl, __VA_ARGS__ )
    00442
    00443 #define TRACE_BUF_APP(lvl,...) TRACE_BUF_FILT(APP, APP_##lvl, __VA_ARGS__ )
    00444 #else
    00445 #define TRACE_APP(lvl,...)
    00446 #define TRACE_BUF_APP(lvl,...)
    00447 #endif /* TRACE_COMPO(APP) */
    00448
    00453 enum trace_level_tdls
    00454 {
    00456     TRACE_LVL_TDLS_ERR,
    00458     TRACE_LVL_TDLS_CHSWITCH,
    00459
    00460 };
    00461
    00463 #define TRACE_TDLS_DEFAULT (CO_BIT(TRACE_LVL_TDLS_ERR)| \
    00464                             CO_BIT(TRACE_LVL_TDLS_CHSWITCH))
    00465
    00467 #define TRACE_TDLS_EN 1
    00468 #if TRACE_COMPO(TDLS)
    00469
    00470 #define TRACE_TDLS(lvl,...) TRACE_FILT(TDLS, TDLS_##lvl, __VA_ARGS__ )
    00471
    00472 #define TRACE_BUF_TDLS(lvl,...) TRACE_BUF_FILT(TDLS, TDLS_##lvl, __VA_ARGS__ )
    00473 #else
    00474 #define TRACE_TDLS(lvl,...)
    00475 #define TRACE_BUF_TDLS(lvl,...)
    00476 #endif /* TRACE_COMPO(TDLS) */
    00477
    00478 #endif /* _TRACE_COMPO_H_ */
    00479