Source file src/pkg/runtime/zruntime_defs_linux_amd64.go
1 // auto generated by go tool dist
2
3 package runtime
4 import "unsafe"
5 var _ unsafe.Pointer
6
7 type lock struct {
8 // (union) key uint
9 waitm *m
10 }
11
12 type note struct {
13 // (union) key uint
14 waitm *m
15 }
16
17 type _string struct {
18 str *uint8
19 len int
20 }
21
22 type iface struct {
23 tab *itab
24 data unsafe.Pointer
25 }
26
27 type eface struct {
28 _type *_type
29 data unsafe.Pointer
30 }
31
32 type _complex64 struct {
33 real float32
34 imag float32
35 }
36
37 type _complex128 struct {
38 real float64
39 imag float64
40 }
41
42 type slice struct {
43 array *uint8
44 len uint
45 cap uint
46 }
47
48 type gobuf struct {
49 sp *uint8
50 pc *uint8
51 g *g
52 }
53
54 type g struct {
55 stackguard *uint8
56 stackbase *uint8
57 _defer *_defer
58 _panic *_panic
59 sched gobuf
60 gcstack *uint8
61 gcsp *uint8
62 gcguard *uint8
63 stack0 *uint8
64 entry *uint8
65 alllink *g
66 param unsafe.Pointer
67 status int16
68 goid int
69 selgen uint
70 waitreason *int8
71 schedlink *g
72 readyonstop uint8
73 ispanic uint8
74 m *m
75 lockedm *m
76 idlem *m
77 sig int
78 writenbuf int
79 writebuf *uint8
80 sigcode0 uint64
81 sigcode1 uint64
82 sigpc uint64
83 gopc uint64
84 end [0]uint64
85 }
86
87 type m struct {
88 g0 *g
89 morepc func()
90 moreargp unsafe.Pointer
91 morebuf gobuf
92 moreframesize uint
93 moreargsize uint
94 cret uint64
95 procid uint64
96 gsignal *g
97 tls [8]uint
98 curg *g
99 id int
100 mallocing int
101 gcing int
102 locks int
103 nomemprof int
104 waitnextg int
105 dying int
106 profilehz int
107 helpgc int
108 fastrand uint
109 ncgocall uint64
110 havenextg note
111 nextg *g
112 alllink *m
113 schedlink *m
114 machport uint
115 mcache *mcache
116 stackalloc *fixalloc
117 lockedg *g
118 idleg *g
119 createstack [32]uint64
120 freglo [16]uint
121 freghi [16]uint
122 fflag uint
123 nextwaitm *m
124 waitsema uint64
125 waitsemacount uint
126 waitsemalock uint
127 end [0]uint64
128 }
129
130 type stktop struct {
131 stackguard *uint8
132 stackbase *uint8
133 gobuf gobuf
134 argsize uint
135 argp *uint8
136 free uint64
137 _panic uint8
138 }
139
140 type sigtab struct {
141 flags int
142 name *int8
143 }
144
145 type _func struct {
146 name string
147 _type string
148 src string
149 pcln []byte
150 entry uint64
151 pc0 uint64
152 ln0 int
153 frame int
154 args int
155 locals int
156 }
157
158 type wincall struct {
159 fn func(unsafe.Pointer)
160 n uint64
161 args unsafe.Pointer
162 r1 uint64
163 r2 uint64
164 err uint64
165 }
166
167 type timers struct {
168 lock
169 timerproc *g
170 sleeping uint8
171 rescheduling uint8
172 waitnote note
173 t **timer
174 len int
175 cap int
176 }
177
178 type timer struct {
179 i int
180 when int64
181 period int64
182 f func(int64, eface)
183 arg eface
184 }
185
186 type alg struct {
187 hash func(*uint64, uint64, unsafe.Pointer)
188 equal func(*uint8, uint64, unsafe.Pointer, unsafe.Pointer)
189 print func(uint64, unsafe.Pointer)
190 copy func(uint64, unsafe.Pointer, unsafe.Pointer)
191 }
192
193 var algarray [22]alg
194 type _defer struct {
195 siz int
196 nofree uint8
197 argp *uint8
198 pc *uint8
199 fn *uint8
200 link *_defer
201 args [8]uint8
202 }
203
204 type _panic struct {
205 arg eface
206 stackbase *uint8
207 link *_panic
208 recovered uint8
209 }
210
211 var emptystring string
212 var allg *g
213 var lastg *g
214 var allm *m
215 var gomaxprocs int
216 var singleproc uint8
217 var panicking uint
218 var gcwaiting int
219 var goos *int8
220 var ncpu int
221 var iscgo uint8
222 var worldsema uint
223 type timespec struct {
224 tv_sec int64
225 tv_nsec int64
226 }
227
228 type timeval struct {
229 tv_sec int64
230 tv_usec int64
231 }
232
233 type sigaction struct {
234 sa_handler unsafe.Pointer
235 sa_flags uint64
236 sa_restorer unsafe.Pointer
237 sa_mask uint64
238 }
239
240 type siginfo struct {
241 si_signo int
242 si_errno int
243 si_code int
244 pad_cgo_0 [4]uint8
245 _sifields [112]uint8
246 }
247
248 type itimerval struct {
249 it_interval timeval
250 it_value timeval
251 }
252
253 type usigset struct {
254 __val [16]uint64
255 }
256
257 type fpxreg struct {
258 significand [4]uint16
259 exponent uint16
260 padding [3]uint16
261 }
262
263 type xmmreg struct {
264 element [4]uint
265 }
266
267 type fpstate struct {
268 cwd uint16
269 swd uint16
270 ftw uint16
271 fop uint16
272 rip uint64
273 rdp uint64
274 mxcsr uint
275 mxcr_mask uint
276 _st [8]fpxreg
277 _xmm [16]xmmreg
278 padding [24]uint
279 }
280
281 type fpxreg1 struct {
282 significand [4]uint16
283 exponent uint16
284 padding [3]uint16
285 }
286
287 type xmmreg1 struct {
288 element [4]uint
289 }
290
291 type fpstate1 struct {
292 cwd uint16
293 swd uint16
294 ftw uint16
295 fop uint16
296 rip uint64
297 rdp uint64
298 mxcsr uint
299 mxcr_mask uint
300 _st [8]fpxreg1
301 _xmm [16]xmmreg1
302 padding [24]uint
303 }
304
305 type fpreg1 struct {
306 significand [4]uint16
307 exponent uint16
308 }
309
310 type sigaltstack struct {
311 ss_sp *uint8
312 ss_flags int
313 pad_cgo_0 [4]uint8
314 ss_size uint64
315 }
316
317 type mcontext struct {
318 gregs [23]int64
319 fpregs *fpstate
320 __reserved1 [8]uint64
321 }
322
323 type ucontext struct {
324 uc_flags uint64
325 uc_link *ucontext
326 uc_stack sigaltstack
327 uc_mcontext mcontext
328 uc_sigmask usigset
329 __fpregs_mem fpstate
330 }
331
332 type sigcontext struct {
333 r8 uint64
334 r9 uint64
335 r10 uint64
336 r11 uint64
337 r12 uint64
338 r13 uint64
339 r14 uint64
340 r15 uint64
341 rdi uint64
342 rsi uint64
343 rbp uint64
344 rbx uint64
345 rdx uint64
346 rax uint64
347 rcx uint64
348 rsp uint64
349 rip uint64
350 eflags uint64
351 cs uint16
352 gs uint16
353 fs uint16
354 __pad0 uint16
355 err uint64
356 trapno uint64
357 oldmask uint64
358 cr2 uint64
359 fpstate *fpstate1
360 __reserved1 [8]uint64
361 }
362
363 type mlink struct {
364 next *mlink
365 }
366
367 type fixalloc struct {
368 size uint64
369 alloc func(uint64) unsafe.Pointer
370 first func(unsafe.Pointer, *uint8)
371 arg unsafe.Pointer
372 list *mlink
373 chunk *uint8
374 nchunk uint
375 inuse uint64
376 sys uint64
377 }
378
379 type _1_ struct {
380 size uint
381 nmalloc uint64
382 nfree uint64
383 }
384
385 type mstats struct {
386 alloc uint64
387 total_alloc uint64
388 sys uint64
389 nlookup uint64
390 nmalloc uint64
391 nfree uint64
392 heap_alloc uint64
393 heap_sys uint64
394 heap_idle uint64
395 heap_inuse uint64
396 heap_released uint64
397 heap_objects uint64
398 stacks_inuse uint64
399 stacks_sys uint64
400 mspan_inuse uint64
401 mspan_sys uint64
402 mcache_inuse uint64
403 mcache_sys uint64
404 buckhash_sys uint64
405 next_gc uint64
406 last_gc uint64
407 pause_total_ns uint64
408 pause_ns [256]uint64
409 numgc uint
410 enablegc uint8
411 debuggc uint8
412 by_size [61]_1_
413 }
414
415 var memstats mstats
416 var class_to_size [61]int
417 var class_to_allocnpages [61]int
418 var class_to_transfercount [61]int
419 type mcachelist struct {
420 list *mlink
421 nlist uint
422 nlistmin uint
423 }
424
425 type _2_ struct {
426 nmalloc int64
427 nfree int64
428 }
429
430 type mcache struct {
431 list [61]mcachelist
432 size uint64
433 local_cachealloc int64
434 local_objects int64
435 local_alloc int64
436 local_total_alloc int64
437 local_nmalloc int64
438 local_nfree int64
439 local_nlookup int64
440 next_sample int
441 local_by_size [61]_2_
442 }
443
444 type mspan struct {
445 next *mspan
446 prev *mspan
447 allnext *mspan
448 start uint64
449 npages uint64
450 freelist *mlink
451 ref uint
452 sizeclass uint
453 state uint
454 unusedsince int64
455 npreleased uint64
456 limit *uint8
457 }
458
459 type mcentral struct {
460 lock
461 sizeclass int
462 nonempty mspan
463 empty mspan
464 nfree int
465 }
466
467 type _3_ struct {
468 mcentral
469 // (union) pad [64]uint8
470 }
471
472 type mheap struct {
473 lock
474 free [256]mspan
475 large mspan
476 allspans *mspan
477 _map [4194304]*mspan
478 bitmap *uint8
479 bitmap_mapped uint64
480 arena_start *uint8
481 arena_used *uint8
482 arena_end *uint8
483 central [61]_3_
484 spanalloc fixalloc
485 cachealloc fixalloc
486 }
487
488 var checking int
489 type sigset struct {
490 mask [2]uint
491 }
492
493 type rlimit struct {
494 rlim_cur uint64
495 rlim_max uint64
496 }
497
498 var m0 m
499 var g0 g
500 var debug int
501 type sched struct {
502 lock
503 gfree *g
504 goidgen int
505 ghead *g
506 gtail *g
507 gwait int
508 gcount int
509 grunning int
510 mhead *m
511 mwait int
512 mcount int
513 atomic uint
514 profilehz int
515 init uint8
516 lockmain uint8
517 stopped note
518 }
519
520 var mwakeup *m
521 var scvg *g
522 var libcgo_thread_start func(unsafe.Pointer)
523 type cgothreadstart struct {
524 m *m
525 g *g
526 fn func()
527 }
528
529 type _4_ struct {
530 lock
531 fn func(*uint64, int)
532 hz int
533 pcbuf [100]uint64
534 }
535
536 var prof _4_
537 var libcgo_setenv func(**uint8)
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558 type commontype struct {
559 size uint64
560 hash uint
561 _unused uint8
562 align uint8
563 fieldalign uint8
564 kind uint8
565 alg *alg
566 _string *string
567 x *uncommontype
568 ptrto *_type
569 }
570
571 type method struct {
572 name *string
573 pkgpath *string
574 mtyp *_type
575 typ *_type
576 ifn func()
577 tfn func()
578 }
579
580 type uncommontype struct {
581 name *string
582 pkgpath *string
583 mhdr []byte
584 m [0]method
585 }
586
587 type _type struct {
588 _type unsafe.Pointer
589 ptr unsafe.Pointer
590 commontype
591 }
592
593 type imethod struct {
594 name *string
595 pkgpath *string
596 _type *_type
597 }
598
599 type interfacetype struct {
600 _type
601 mhdr []byte
602 m [0]imethod
603 }
604
605 type maptype struct {
606 _type
607 key *_type
608 elem *_type
609 }
610
611 type chantype struct {
612 _type
613 elem *_type
614 dir uint64
615 }
616
617 type slicetype struct {
618 _type
619 elem *_type
620 }
621
622 type functype struct {
623 _type
624 dotdotdot uint8
625 in []byte
626 out []byte
627 }
628
629
630
631
632
633
634
635
636
637
638
639
640 type itab struct {
641 inter *interfacetype
642 _type *_type
643 link *itab
644 bad int
645 unused int
646 fun [0]func()
647 }
648
649 var hash [1009]*itab
650 var ifacelock lock
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671 type hash_iter_sub struct {
672 e *hash_entry
673 start *hash_entry
674 last *hash_entry
675 }
676
677 type hash_iter struct {
678 data *uint8
679 elemsize int
680 changes int
681 i int
682 cycled uint8
683 last_hash uint64
684 cycle uint64
685 h *hmap
686 t *maptype
687 subtable_state [4]hash_iter_sub
688 }
689
690
691
692
693
694
695
696
697
698
699
700 type hmap struct {
701 count uint
702 datasize uint8
703 max_power uint8
704 indirectval uint8
705 valoff uint8
706 changes int
707 hash0 uint64
708 st *hash_subtable
709 }
710
711 type hash_entry struct {
712 hash uint64
713 data [1]uint8
714 }
715
716 type hash_subtable struct {
717 power uint8
718 used uint8
719 datasize uint8
720 max_probes uint8
721 limit_bytes int16
722 last *hash_entry
723 entry [1]hash_entry
724 }
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756 type sudog struct {
757 g *g
758 selgen uint
759 link *sudog
760 elem *uint8
761 }
762
763 type waitq struct {
764 first *sudog
765 last *sudog
766 }
767
768 type hchan struct {
769 qcount uint
770 dataqsiz uint
771 elemsize uint16
772 closed uint8
773 elemalign uint8
774 elemalg *alg
775 sendx uint
776 recvx uint
777 recvq waitq
778 sendq waitq
779 lock
780 }
781
782 type scase struct {
783 sg sudog
784 _chan *hchan
785 pc *uint8
786 kind uint16
787 so uint16
788 receivedp *uint8
789 }
790
791 type _select struct {
792 tcase uint16
793 ncase uint16
794 pollorder *uint16
795 lockorder **hchan
796 scase [1]scase
797 }
798