コード例 #1
0
ファイル: wlan_debug.c プロジェクト: argentinos/o2droid
  item_addr(wmm.packetsOut[WMM_AC_BE])},
 {"wmmAcBK", item_size(wmm.packetsOut[WMM_AC_BK]), 0,
  item_addr(wmm.packetsOut[WMM_AC_BK])},
 {"PSMode", item_size(PSMode), 0, item_addr(PSMode)},
 {"PSState", item_size(PSState), 0, item_addr(PSState)},
 {"IsDeepSleep", item_size(IsDeepSleep), 0, item_addr(IsDeepSleep)},
 {"IsAutoDeepSleepEnabled", item_size(IsAutoDeepSleepEnabled), 0,
  item_addr(IsAutoDeepSleepEnabled)},
 {"WakeupDevReq", item_size(bWakeupDevRequired), 0,
  item_addr(bWakeupDevRequired)},
 {"WakeupTries", item_size(WakeupTries), 0, item_addr(WakeupTries)},
 {"HS_Configured", item_size(bHostSleepConfigured), 0,
  item_addr(bHostSleepConfigured)},
 {"HS_Activated", item_size(HS_Activated), 0, item_addr(HS_Activated)},
 {"num_tx_timeout", item_dbg_size(num_tx_timeout), 0,
  item_dbg_addr(num_tx_timeout)},
 {"num_cmd_timeout", item_dbg_size(num_cmd_timeout), 0,
  item_dbg_addr(num_cmd_timeout)},
 {"TimeoutCmdId", item_dbg_size(TimeoutCmdId), 0,
  item_dbg_addr(TimeoutCmdId)},
 {"TimeoutCmdAct", item_dbg_size(TimeoutCmdAct), 0,
  item_dbg_addr(TimeoutCmdAct)},
 {"LastCmdId", item_dbg_size(LastCmdId), 0, item_dbg_addr(LastCmdId)},
 {"LastCmdAct", item_dbg_size(LastCmdAct), 0, item_dbg_addr(LastCmdAct)},
 {"LastCmdIndex", item_dbg_size(LastCmdIndex), 0,
  item_dbg_addr(LastCmdIndex)},
 {"LastCmdRespId", item_dbg_size(LastCmdRespId), 0,
  item_dbg_addr(LastCmdRespId)},
 {"LastCmdRespIndex", item_dbg_size(LastCmdRespIndex), 0,
  item_dbg_addr(LastCmdRespIndex)},
 {"LastEvent", item_dbg_size(LastEvent), 0, item_dbg_addr(LastEvent)},
コード例 #2
0
    u32 flag;
};

/* To debug any member of uap_adapter, simply add one line here.
 */
static struct debug_data items[] = {
    {"cmd_sent", item_dev_size(cmd_sent), 0, item_dev_addr(cmd_sent),
     OFFSET_UAP_DEV},
    {"data_sent", item_dev_size(data_sent), 0, item_dev_addr(data_sent),
     OFFSET_UAP_DEV},
    {"IntCounter", item_size(IntCounter), 0, item_addr(IntCounter),
     OFFSET_UAP_ADAPTER},
    {"cmd_pending", item_size(cmd_pending), 0, item_addr(cmd_pending),
     OFFSET_UAP_ADAPTER},
    {"num_cmd_h2c_fail", item_dbg_size(num_cmd_host_to_card_failure), 0,
     item_dbg_addr(num_cmd_host_to_card_failure), OFFSET_UAP_ADAPTER},
    {"num_tx_h2c_fail", item_dbg_size(num_tx_host_to_card_failure), 0,
     item_dbg_addr(num_tx_host_to_card_failure), OFFSET_UAP_ADAPTER},
    {"psmode", item_size(psmode), 0, item_addr(psmode), OFFSET_UAP_ADAPTER},
    {"ps_state", item_size(ps_state), 0, item_addr(ps_state),
     OFFSET_UAP_ADAPTER},
#ifdef DEBUG_LEVEL1
/*
 * XXX: bnewbold: HORRIBLE HACK here, blindly commenting this line out to avoid
 * gcc error:
 *
 * uap_debug.c:77:5: error: initializer element is not constant
 * uap_debug.c:77:5: error: (near initialization for ‘items[8].addr’)
 *
 * Not sure why a pointer to an extern integer is not sufficiently constant;
 * don't know what the side-effects of commenting this out may be.