Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for ProcID (0.13 sec)

  1. src/internal/trace/testdata/generators/go122-go-create-without-running-g.go

    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g1 := t.Generation(1)
    
    	// A goroutine gets created on a running P, then starts running.
    	b0 := g1.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b0.Event("GoCreate", trace.GoID(5), testgen.NoStack, testgen.NoStack)
    	b0.Event("GoStart", trace.GoID(5), testgen.Seq(1))
    	b0.Event("GoStop", "whatever", testgen.NoStack)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 996 bytes
    - Viewed (0)
  2. src/runtime/os_openbsd.go

    // Called on the new thread, can not allocate memory.
    func minit() {
    	getg().m.procid = uint64(getthrid())
    	minitSignals()
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. src/runtime/os_dragonfly.go

    // Called on the new thread, cannot allocate memory.
    func minit() {
    	getg().m.procid = uint64(lwp_gettid())
    	minitSignals()
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/runtime/align_runtime_test.go

    package runtime
    
    import "unsafe"
    
    // AtomicFields is the set of fields on which we perform 64-bit atomic
    // operations (all the *64 operations in internal/runtime/atomic).
    var AtomicFields = []uintptr{
    	unsafe.Offsetof(m{}.procid),
    	unsafe.Offsetof(p{}.gcFractionalMarkTime),
    	unsafe.Offsetof(profBuf{}.overflow),
    	unsafe.Offsetof(profBuf{}.overflowTime),
    	unsafe.Offsetof(heapStatsDelta{}.tinyAllocCount),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/runtime/os_plan9.go

    	n := copy(buf[:], goexits)
    	n = copy(buf[n:], gostringnocopy(status))
    	pid := getpid()
    	for mp := (*m)(atomic.Loadp(unsafe.Pointer(&allm))); mp != nil; mp = mp.alllink {
    		if mp.procid != 0 && mp.procid != pid {
    			postnote(mp.procid, buf[:])
    		}
    	}
    	getg().m.locks--
    }
    
    var procdir = []byte("/proc/")
    var notefile = []byte("/note\x00")
    
    func postnote(pid uint64, msg []byte) int {
    	var buf [128]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. src/runtime/sys_plan9_amd64.s

    	SUBQ	$(64*1024), AX		// stack size
    	MOVQ	AX, (g_stack+stack_lo)(DX)
    	MOVQ	AX, g_stackguard0(DX)
    	MOVQ	AX, g_stackguard1(DX)
    
    	// Initialize procid from TOS struct.
    	MOVQ	_tos(SB), AX
    	MOVL	64(AX), AX
    	MOVQ	AX, m_procid(CX)	// save pid as m->procid
    
    	// Finally, initialize g.
    	get_tls(BX)
    	MOVQ	DX, g(BX)
    
    	CALL	runtime·stackcheck(SB)	// smashes AX, CX
    	CALL	runtime·mstart(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 16:41:22 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. src/runtime/os_freebsd.go

    	if stack == nil {
    		writeErrStr(failallocatestack)
    		exit(1)
    	}
    	// This code "knows" it's being called once from the library
    	// initialization code, and so it's using the static m0 for the
    	// tls and procid (thread) pointers. thr_new() requires the tls
    	// pointers, though the tid pointers can be nil.
    	// However, newosproc0 is currently unreachable because builds
    	// utilizing c-shared/c-archive force external linking.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. src/runtime/os_darwin.go

    		minitSignalStack()
    	}
    	minitSignalMask()
    	getg().m.procid = uint64(pthread_self())
    }
    
    // Called from dropm to undo the effect of an minit.
    //
    //go:nosplit
    func unminit() {
    	// iOS does not support alternate signal stack.
    	// See minit.
    	if !(GOOS == "ios" && GOARCH == "arm64") {
    		unminitSignals()
    	}
    	getg().m.procid = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  9. src/runtime/sys_plan9_386.s

    	SUBL	$(64*1024), AX		// stack size
    	MOVL	AX, (g_stack+stack_lo)(DX)
    	MOVL	AX, g_stackguard0(DX)
    	MOVL	AX, g_stackguard1(DX)
    
    	// Initialize procid from TOS struct.
    	MOVL	_tos(SB), AX
    	MOVL	48(AX), AX
    	MOVL	AX, m_procid(CX)	// save pid as m->procid
    
    	// Finally, initialize g.
    	get_tls(BX)
    	MOVL	DX, g(BX)
    
    	CALL	runtime·stackcheck(SB)	// smashes AX, CX
    	CALL	runtime·mstart(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:12:04 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  10. src/internal/trace/testtrace/validation.go

    type Validator struct {
    	lastTs   trace.Time
    	gs       map[trace.GoID]*goState
    	ps       map[trace.ProcID]*procState
    	ms       map[trace.ThreadID]*schedContext
    	ranges   map[trace.ResourceID][]string
    	tasks    map[trace.TaskID]string
    	seenSync bool
    	Go121    bool
    }
    
    type schedContext struct {
    	M trace.ThreadID
    	P trace.ProcID
    	G trace.GoID
    }
    
    type goState struct {
    	state   trace.GoState
    	binding *schedContext
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top