func traceExecEvents(data []byte, m *base.Monitor) {
	var eventRaw model.ExecRaw
	if err := binary.Read(bytes.NewBuffer(data), utils.GetHostByteOrder(), &eventRaw); err != nil {
		processLogger.Errorf("failed to decode received data (ExecEventRaw): %s\n", err)
		return
	}
	// Prepare event
	event := model.ExecEvent{
		EventBase: model.EventBase{
			EventMonitorName: m.Name,
			EventType:        eventRaw.ResolveEventType(),
			Timestamp:        m.Nsp.GetBootTime().Add(time.Duration(eventRaw.Metadata.TimestampRaw) * time.Nanosecond),
			TTYName:          C.GoString((*C.char)(unsafe.Pointer(&eventRaw.Metadata.TTYNameRaw))),
		},
		ExecRaw: &eventRaw,
		Path:    C.GoString((*C.char)(unsafe.Pointer(&eventRaw.PathRaw))),
	}

	// Dispatch event
	m.Nsp.DispatchEvent(&event)
}
// traceExecEvents - Traces fork events
Traces fork events
// traceExecEvents - Traces fork events
func traceExecEvents(data []byte, m *base.Monitor) {
	var eventRaw model.ExecRaw
	if err := binary.Read(bytes.NewBuffer(data), utils.GetHostByteOrder(), &eventRaw); err != nil {
		processLogger.Errorf("failed to decode received data (ExecEventRaw): %s\n", err)
		return
	}
	event := model.ExecEvent{
		EventBase: model.EventBase{
			EventMonitorName: m.Name,
			EventType:        eventRaw.ResolveEventType(),
			Timestamp:        m.Nsp.GetBootTime().Add(time.Duration(eventRaw.Metadata.TimestampRaw) * time.Nanosecond),
			TTYName:          C.GoString((*C.char)(unsafe.Pointer(&eventRaw.Metadata.TTYNameRaw))),
		},
		ExecRaw: &eventRaw,
		Path:    C.GoString((*C.char)(unsafe.Pointer(&eventRaw.PathRaw))),
	}
	m.Nsp.DispatchEvent(&event)
}
func traceExecEvents ( data [ ] byte , m * base . Monitor ) { var eventRaw model . ExecRaw if err := binary . Read ( bytes . NewBuffer ( data ) , utils . GetHostByteOrder ( ) , & eventRaw ) ; err != nil { processLogger . Errorf ( " \n " , err ) return } event := model . ExecEvent { EventBase : model . EventBase { EventMonitorName : m . Name , EventType : eventRaw . ResolveEventType ( ) , Timestamp : m . Nsp . GetBootTime ( ) . Add ( time . Duration ( eventRaw . Metadata . TimestampRaw ) * time . Nanosecond ) , TTYName : C . GoString ( ( * C . char ) ( unsafe . Pointer ( & eventRaw . Metadata . TTYNameRaw ) ) ) , } , ExecRaw : & eventRaw , Path : C . GoString ( ( * C . char ) ( unsafe . Pointer ( & eventRaw . PathRaw ) ) ) , } m . Nsp . DispatchEvent ( & event ) }
Traces fork events
Traces fork events
// Prepare event // Dispatch event