25 #ifndef SignalLoggerManager_H
26 #define SignalLoggerManager_H
29 #include <kernel_types.h>
30 #include <BlockNumbers.h>
31 #include <TransporterDefinitions.hpp>
32 #include <RefConvert.hpp>
51 void flushSignalLog();
58 Uint8 prio,
const Uint32 * theData, Uint32 node);
64 const Uint32 * theData, Uint32 node) {
69 const Uint32 * theData, Uint32 node,
73 const Uint32 * theData, Uint32 node,
80 const Uint32 * theData, Uint32 node) {
85 const Uint32 * theData, Uint32 node,
89 const Uint32 * theData, Uint32 node,
93 const Uint32 * theData, Uint32 node,
101 Uint8 prio,
const Uint32 * data, Uint32 node){
108 Uint8 prio,
const Uint32 * data, Uint32 node,
114 void log(BlockNumber bno,
const char *
msg, ...)
115 ATTRIBUTE_FORMAT(printf, 3, 4);
130 int log(
LogMode logMode,
const char * params);
131 int logOn(
bool allBlocks, BlockNumber bno,
LogMode logMode);
132 int logOff(
bool allBlocks, BlockNumber bno,
LogMode logMode);
133 int logToggle(
bool allBlocks, BlockNumber bno,
LogMode logMode);
135 void setTrace(
unsigned long trace);
136 unsigned long getTrace()
const;
138 void setOwnNodeId(
int nodeId);
139 void setLogDistributed(
bool val);
148 bool printReceiversSignalId);
184 static void printDataWord(FILE * output, Uint32 & pos,
const Uint32 data);
187 bool m_logDistributed;
191 int log(
int cmd, BlockNumber bno,
LogMode logMode);
194 Uint8 logModes[NO_OF_BLOCKS];
199 void lock() {
if (m_mutex != 0) NdbMutex_Lock(m_mutex); }
200 void unlock() {
if (m_mutex != 0) NdbMutex_Unlock(m_mutex); }
203 logMatch(BlockNumber bno,
LogMode mask)
206 bno = blockToMain(bno);
209 bno < MIN_BLOCK_NO || bno > MAX_BLOCK_NO ||
210 (logModes[bno-MIN_BLOCK_NO] & mask);
214 #endif // SignalLoggerManager_H