IsGUIDEmpty determines if the provider GUID is empty.
()
| 232 | |
| 233 | // IsGUIDEmpty determines if the provider GUID is empty. |
| 234 | func (t *Trace) IsGUIDEmpty() bool { |
| 235 | return t.GUID.Data1 == 0 && |
| 236 | t.GUID.Data2 == 0 && |
| 237 | t.GUID.Data3 == 0 && |
| 238 | t.GUID.Data4 == [8]byte{} |
| 239 | } |
| 240 | |
| 241 | func (t *Trace) enableCallstacks() { |
| 242 | if t.IsKernelTrace() { |