github.com/choleraehyq/piD@v0.0.11/p_m_go1.13.go (about) 1 // +build gc,go1.13,!go1.18 2 3 package goid 4 5 type p struct { 6 id int32 // Here is pid 7 } 8 9 type m struct { 10 g0 uintptr // goroutine with scheduling stack 11 morebuf gobuf // gobuf arg to morestack 12 divmod uint32 // div/mod denominator for arm - known to liblink 13 14 // Fields not known to debuggers. 15 procid uint64 // for debuggers, but offset not hard-coded 16 gsignal uintptr // signal-handling g 17 goSigStack gsignalStack // Go-allocated signal handling stack 18 sigmask sigset // storage for saved signal mask 19 tls [6]uintptr // thread-local storage (for x86 extern register) 20 mstartfn func() 21 curg uintptr // current running goroutine 22 caughtsig uintptr // goroutine running during fatal signal 23 p *p // attached p for executing go code (nil if not executing go code) 24 }