forked from shirou/gopsutil
-
Notifications
You must be signed in to change notification settings - Fork 7
add FreeBSD ARM support. #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
urosgruber
wants to merge
1
commit into
DataDog:dd
Choose a base branch
from
urosgruber:dd
base: dd
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,192 @@ | ||
| // Created by cgo -godefs - DO NOT EDIT | ||
| // cgo -godefs types_freebsd.go | ||
|
|
||
| package process | ||
|
|
||
| const ( | ||
| CTLKern = 1 | ||
| KernProc = 14 | ||
| KernProcPID = 1 | ||
| KernProcProc = 8 | ||
| KernProcPathname = 12 | ||
| KernProcArgs = 7 | ||
| ) | ||
|
|
||
| const ( | ||
| sizeofPtr = 0x4 | ||
| sizeofShort = 0x2 | ||
| sizeofInt = 0x4 | ||
| sizeofLong = 0x4 | ||
| sizeofLongLong = 0x8 | ||
| ) | ||
|
|
||
| const ( | ||
| sizeOfKinfoVmentry = 0x488 | ||
| sizeOfKinfoProc = 0x440 | ||
| ) | ||
|
|
||
| const ( | ||
| SIDL = 1 | ||
| SRUN = 2 | ||
| SSLEEP = 3 | ||
| SSTOP = 4 | ||
| SZOMB = 5 | ||
| SWAIT = 6 | ||
| SLOCK = 7 | ||
| ) | ||
|
|
||
| type ( | ||
| _C_short int16 | ||
| _C_int int32 | ||
| _C_long int32 | ||
| _C_long_long int64 | ||
| ) | ||
|
|
||
| type Timespec struct { | ||
| Sec int64 | ||
| Nsec int64 | ||
| } | ||
|
|
||
| type Timeval struct { | ||
| Sec int64 | ||
| Usec int64 | ||
| } | ||
|
|
||
| type Rusage struct { | ||
| Utime Timeval | ||
| Stime Timeval | ||
| Maxrss int32 | ||
| Ixrss int32 | ||
| Idrss int32 | ||
| Isrss int32 | ||
| Minflt int32 | ||
| Majflt int32 | ||
| Nswap int32 | ||
| Inblock int32 | ||
| Oublock int32 | ||
| Msgsnd int32 | ||
| Msgrcv int32 | ||
| Nsignals int32 | ||
| Nvcsw int32 | ||
| Nivcsw int32 | ||
| } | ||
|
|
||
| type Rlimit struct { | ||
| Cur int32 | ||
| Max int32 | ||
| } | ||
|
|
||
| type KinfoProc struct { | ||
| Structsize int32 | ||
| Layout int32 | ||
| Args int32 /* pargs */ | ||
| Paddr int32 /* proc */ | ||
| Addr int32 /* user */ | ||
| Tracep int32 /* vnode */ | ||
| Textvp int32 /* vnode */ | ||
| Fd int32 /* filedesc */ | ||
| Vmspace int32 /* vmspace */ | ||
| Wchan int32 | ||
| Pid int32 | ||
| Ppid int32 | ||
| Pgid int32 | ||
| Tpgid int32 | ||
| Sid int32 | ||
| Tsid int32 | ||
| Jobc int16 | ||
| Spare_short1 int16 | ||
| Tdev uint32 | ||
| Siglist [16]byte /* sigset */ | ||
| Sigmask [16]byte /* sigset */ | ||
| Sigignore [16]byte /* sigset */ | ||
| Sigcatch [16]byte /* sigset */ | ||
| Uid uint32 | ||
| Ruid uint32 | ||
| Svuid uint32 | ||
| Rgid uint32 | ||
| Svgid uint32 | ||
| Ngroups int16 | ||
| Spare_short2 int16 | ||
| Groups [16]uint32 | ||
| Size uint32 | ||
| Rssize int32 | ||
| Swrss int32 | ||
| Tsize int32 | ||
| Dsize int32 | ||
| Ssize int32 | ||
| Xstat uint16 | ||
| Acflag uint16 | ||
| Pctcpu uint32 | ||
| Estcpu uint32 | ||
| Slptime uint32 | ||
| Swtime uint32 | ||
| Cow uint32 | ||
| Runtime uint64 | ||
| Start Timeval | ||
| Childtime Timeval | ||
| Flag int32 | ||
| Kiflag int32 | ||
| Traceflag int32 | ||
| Stat int8 | ||
| Nice int8 | ||
| Lock int8 | ||
| Rqindex int8 | ||
| Oncpu uint8 | ||
| Lastcpu uint8 | ||
| Tdname [17]int8 | ||
| Wmesg [9]int8 | ||
| Login [18]int8 | ||
| Lockname [9]int8 | ||
| Comm [20]int8 | ||
| Emul [17]int8 | ||
| Loginclass [18]int8 | ||
| Sparestrings [50]int8 | ||
| Spareints [4]int32 | ||
| Flag2 int32 | ||
| Fibnum int32 | ||
| Cr_flags uint32 | ||
| Jid int32 | ||
| Numthreads int32 | ||
| Tid int32 | ||
| Pri Priority | ||
| Rusage Rusage | ||
| Rusage_ch Rusage | ||
| Pcb int32 /* pcb */ | ||
| Kstack int32 | ||
| Udata int32 | ||
| Tdaddr int32 /* thread */ | ||
| Spareptrs [6]int64 | ||
| Sparelongs [12]int64 | ||
| Sflag int64 | ||
| Tdflags int64 | ||
| } | ||
|
|
||
| type Priority struct { | ||
| Class uint8 | ||
| Level uint8 | ||
| Native uint8 | ||
| User uint8 | ||
| } | ||
|
|
||
| type KinfoVmentry struct { | ||
| Structsize int32 | ||
| Type int32 | ||
| Start uint64 | ||
| End uint64 | ||
| Offset uint64 | ||
| Vn_fileid uint64 | ||
| Vn_fsid uint32 | ||
| Flags int32 | ||
| Resident int32 | ||
| Private_resident int32 | ||
| Protection int32 | ||
| Ref_count int32 | ||
| Shadow_count int32 | ||
| Vn_type int32 | ||
| Vn_size uint64 | ||
| Vn_rdev uint32 | ||
| Vn_mode uint16 | ||
| Status uint16 | ||
| X_kve_ispare [12]int32 | ||
| Path [1024]int8 | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on
386andamd64,Statfs.Mntfromnameis[88]int8so this cannot beByteToString. I also don't see the generated types indisk_freebsd_arm64.go.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, looks like upstream the type was changed to
unix.Statfs_twhich would work with your changes. Doesn't change that this PR won't build as-is.