EnableFileCallstack populates the stack identifiers with event types eligible for publishing call stack return addresses for file system activity.
()
| 77 | // with event types eligible for publishing call stack |
| 78 | // return addresses for file system activity. |
| 79 | func (s *StackExtensions) EnableFileCallstack() { |
| 80 | if s.config.EnableFileIOEvents { |
| 81 | s.AddStackTracing(event.CreateFile) |
| 82 | s.AddStackTracing(event.DeleteFile) |
| 83 | s.AddStackTracing(event.RenameFile) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | // EnableRegistryCallstack populates the stack identifiers |
| 88 | // with event types eligible for publishing call stack |