void doTrace(u64 location, u64 wrkr, ocrGuid_t parent, ...){ ocrPolicyDomain_t *pd = NULL; getCurrentEnv(&pd, NULL, NULL, NULL); //First check if a system worker is configured. If not, return and do nothing; if((pd == NULL) || !(isSystem(pd))) return; u64 timestamp = salGetTime(); va_list ap; va_start(ap, parent); //Retrieve event type and action of trace. By convention in the order below. bool evtType = va_arg(ap, u32); ocrTraceType_t objType = va_arg(ap, ocrTraceType_t); ocrTraceAction_t actionType = va_arg(ap, ocrTraceAction_t); //If no valid additional tracing info found return to normal DPRINTF if(!(isSupportedTraceType(evtType, objType, actionType))){ va_end(ap); return; } populateTraceObject(location, evtType, objType, actionType, wrkr, timestamp, parent, ap); va_end(ap); }
QJsonObject Blink1Pattern::toFullJsonReadyToSave() { QJsonObject obj; obj.insert("name", name()); obj.insert("repeats", repeats()); obj.insert("pattern", patternStrWithLeds()); obj.insert("date",date()); obj.insert("readonly",isReadOnly()); obj.insert("system",isSystem()); return obj; }
const NAString StmtDDLRegisterComponent::displayLabel1() const { NAString aLabel("UNREGISTER COMPONENT"); if (getRegisterComponentType() == StmtDDLRegisterComponent::REGISTER_COMPONENT) { aLabel = "REGISTER COMPONENT"; if (isSystem()) aLabel += " (SYSTEM)"; } aLabel += " - External Component name: "; aLabel += getExternalComponentName(); if (getRegisterComponentType() == StmtDDLRegisterComponent::UNREGISTER_COMPONENT) { aLabel += " Drop behavior: "; if (dropBehavior_ == COM_CASCADE_DROP_BEHAVIOR) aLabel += "CASCADE"; else aLabel += "RESTRICT"; } return aLabel; }