/
define.go
60 lines (51 loc) · 946 Bytes
/
define.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
package scheduler
type CbId struct {
Idx uint32
Val uint32
}
type CnMsg struct {
Id CbId
Seq uint32
Ack uint32
Len uint16
Flag uint16
}
// ProcEventHeader corresponds to proc_event in cn_proc.h
type ProcEventHeader struct {
What uint32
CPU uint32
Timestamp uint64
}
// fork proc event
type ForkProcEvent struct {
ParentPid uint32
ParentTGid uint32
ChildPid uint32
ChildTGid uint32
}
// exec proc event
type ExecProcEvent struct {
ProcPid uint32
ProcTGid uint32
}
// id proc event
type IdProcEvent struct {
ProcPid uint32
ProcTGid uint32
}
// exit proc event
type ExitProcEvent struct {
ProcessPid uint32
ProcessTgid uint32
ExitCode uint32
ExitSignal uint32
}
// comm event
type CommEvent struct {
ProcessPid uint32
ProcessTgid uint32
Buf [16]byte
}