EnableRegistryCallstack populates the stack identifiers with event types eligible for publishing call stack return addresses for registry operations.
()
| 88 | // with event types eligible for publishing call stack |
| 89 | // return addresses for registry operations. |
| 90 | func (s *StackExtensions) EnableRegistryCallstack() { |
| 91 | if s.config.EnableRegistryEvents { |
| 92 | s.AddStackTracing(event.RegCreateKey) |
| 93 | s.AddStackTracing(event.RegDeleteKey) |
| 94 | s.AddStackTracing(event.RegSetValue) |
| 95 | s.AddStackTracing(event.RegDeleteValue) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | // EnableMemoryCallstack enables stack tracing for the memory |
| 100 | // events such as memory allocations. |