providers/darwin/ztypes_darwin.go (151 lines of code) (raw):

// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // Created by cgo -godefs - DO NOT EDIT // cgo -godefs defs_darwin.go package darwin type processState uint32 const ( stateSIDL processState = iota + 1 stateRun stateSleep stateStop stateZombie ) const argMax = 0x40000 type bsdInfo struct { Pbi_flags uint32 Pbi_status uint32 Pbi_xstatus uint32 Pbi_pid uint32 Pbi_ppid uint32 Pbi_uid uint32 Pbi_gid uint32 Pbi_ruid uint32 Pbi_rgid uint32 Pbi_svuid uint32 Pbi_svgid uint32 Rfu_1 uint32 Pbi_comm [16]int8 Pbi_name [32]int8 Pbi_nfiles uint32 Pbi_pgid uint32 Pbi_pjobc uint32 E_tdev uint32 E_tpgid uint32 Pbi_nice int32 Pbi_start_tvsec uint64 Pbi_start_tvusec uint64 } 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 } type procTaskAllInfo struct { Pbsd bsdInfo Ptinfo procTaskInfo } type vinfoStat struct { Dev uint32 Mode uint16 Nlink uint16 Ino uint64 Uid uint32 Gid uint32 Atime int64 Atimensec int64 Mtime int64 Mtimensec int64 Ctime int64 Ctimensec int64 Birthtime int64 Birthtimensec int64 Size int64 Blocks int64 Blksize int32 Flags uint32 Gen uint32 Rdev uint32 Qspare [2]int64 } type fsid struct { Val [2]int32 } type vnodeInfo struct { Stat vinfoStat Type int32 Pad int32 Fsid fsid } type vnodeInfoPath struct { Vi vnodeInfo Path [1024]int8 } type procVnodePathInfo struct { Cdir vnodeInfoPath Rdir vnodeInfoPath } type vmStatisticsData struct { Free_count uint32 Active_count uint32 Inactive_count uint32 Wire_count uint32 Zero_fill_count uint32 Reactivations uint32 Pageins uint32 Pageouts uint32 Faults uint32 Cow_faults uint32 Lookups uint32 Hits uint32 Purgeable_count uint32 Purges uint32 Speculative_count uint32 } type vmStatistics64Data struct { Free_count uint32 Active_count uint32 Inactive_count uint32 Wire_count uint32 Zero_fill_count uint64 Reactivations uint64 Pageins uint64 Pageouts uint64 Faults uint64 Cow_faults uint64 Lookups uint64 Hits uint64 Purges uint64 Purgeable_count uint32 Speculative_count uint32 Decompressions uint64 Compressions uint64 Swapins uint64 Swapouts uint64 Compressor_page_count uint32 Throttled_count uint32 External_page_count uint32 Internal_page_count uint32 Total_uncompressed_pages_in_compressor uint64 } type vmSize uint64 const ( cpuStateUser = 0x0 cpuStateSystem = 0x1 cpuStateIdle = 0x2 cpuStateNice = 0x3 ) type hostCPULoadInfo struct { Ticks [4]uint32 }