str MDBlistDetail(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p) { (void) p; (void) stk; debugFunction(cntxt->fdout, mb, 0, LIST_MAL_NAME | LIST_MAL_VALUE | LIST_MAL_TYPE | LIST_MAL_PROPS, 0, mb->stop ); return MAL_SUCCEED; }
str MDBlist3Detail(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p) { str modnme = *getArgReference_str(stk, p, 1); str fcnnme = *getArgReference_str(stk, p, 2); Symbol s = NULL; s = findSymbol(cntxt->nspace, putName(modnme), putName(fcnnme)); if (s == NULL) throw(MAL,"mdb.list","Could not find %s.%s", modnme, fcnnme); debugFunction(cntxt->fdout, s->def, 0, LIST_MAL_NAME | LIST_MAL_VALUE | LIST_MAL_TYPE | LIST_MAL_PROPS , 0, s->def->stop); (void) mb; /* fool compiler */ return NULL; }
int util_hal_debug_print(struct net_device *dev, ULONG *data) { hal_print_param_t *p = (hal_print_param_t *) data; UINT32 opt_data = 0; if( p->optional_param ) { if( copy_from_user(&opt_data, p->optional_param, sizeof(opt_data) ) ) return -EFAULT; } print_deb("HAL_DEBUG_PRINT: func_id=%d, param=%x\n", p->func_id, opt_data ); #ifdef TI_DBG debugFunction(CONFIG_MGR(dev), p->func_id, &opt_data ); #endif return 0; }
static TI_STATUS cmdDispatch_DebugFuncSet (TI_HANDLE hCmdDispatch, paramInfo_t *pParam) { TCmdDispatchObj *pCmdDispatch = (TCmdDispatchObj *)hCmdDispatch; if (hCmdDispatch == NULL || pParam == NULL) { return TI_NOK; } switch (pParam->paramType) { case DEBUG_ACTIVATE_FUNCTION: debugFunction (pCmdDispatch->pStadHandles, *(TI_UINT32*)&pParam->content, (void*)((TI_UINT32*)&pParam->content + 1)); break; default: TRACE1(pCmdDispatch->hReport, REPORT_SEVERITY_ERROR, "cmdDispatch_DebugFuncSet bad param=%X\n", pParam->paramType); break; } return TI_OK; }