summaryrefslogtreecommitdiff
path: root/internal/event/event.go
blob: c846e04b89d6ab3b41acb2c4615c7fdecbb92c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package event

import (
	"sync"

	"ior/internal/types"
)

var poolOfEventPairs = sync.Pool{
	New: func() any { return &Pair{} },
}

// Event is the common contract implemented by decoded syscall trace events.
type Event interface {
	String() string
	GetTraceId() types.TraceId
	GetPid() uint32
	GetTid() uint32
	GetTime() uint64
	Equals(other any) bool
	Recycle()
}