-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathztypes_darwin_amd64.go
56 lines (46 loc) · 1.19 KB
/
ztypes_darwin_amd64.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
// SPDX-FileCopyrightText: 2021 The Go Darwin Authors
// SPDX-License-Identifier: BSD-3-Clause
//go:build darwin && amd64 && gc
// +build darwin,amd64,gc
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -srcdir . -godefs /Users/zchee/go/src/github.com/go-darwin/libproc/darwin_amd64.go
package libproc
const (
ProcPidpathinfoSize = 0x400
ProcPidpathinfoMaxsize = 0x1000
)
type PID int32
const (
ProcListpidspathPathIsVolume = 0x1
ProcListpidspathExcludeEvtonly = 0x2
)
type ProcType uint32
const (
ProcAllPids ProcType = 0x1
ProcPgrpOnly ProcType = 0x2
ProcTtyOnly ProcType = 0x3
ProcUidOnly ProcType = 0x4
ProcRUIDOnly ProcType = 0x5
ProcPPIDOnly ProcType = 0x6
ProcKDBGOnly ProcType = 0x7
)
type ProcTaskInfo struct {
Virtual_size uint64
Resident_size uint64
Total_user uint64
Total_system uint64
Threads_user uint64
Threads_system uint64
Policy int32
Faults int32
Pageins int32
Cow_faults int32
Messages_sent int32
Messages_received int32
Syscalls_mach int32
Syscalls_unix int32
Csw int32
Threadnum int32
Numrunning int32
Priority int32
}