Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 67 for ProcID (0.1 sec)

  1. src/runtime/sys_plan9_arm.s

    	MOVW	R0, g_stack+stack_hi(g)
    	SUB	$(64*1024), R0
    	MOVW	R0, (g_stack+stack_lo)(g)
    	MOVW	R0, g_stackguard0(g)
    	MOVW	R0, g_stackguard1(g)
    
    	// Initialize procid from TOS struct.
    	MOVW	_tos(SB), R0
    	MOVW	48(R0), R0
    	MOVW	R0, m_procid(R1)	// save pid as m->procid
    
    	BL	runtime·mstart(SB)
    
    	// Exit the thread.
    	MOVW	$0, R0
    	MOVW	R0, 4(R13)
    	CALL	runtime·exits(SB)
    	JMP	0(PC)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 29 14:15:04 UTC 2021
    - 7K bytes
    - Viewed (0)
  2. src/runtime/os_aix.go

    func miniterrno() {
    	mp := getg().m
    	r, _ := syscall0(&libc__Errno)
    	mp.perrno = r
    
    }
    
    func minit() {
    	miniterrno()
    	minitSignals()
    	getg().m.procid = uint64(pthread_self())
    }
    
    func unminit() {
    	unminitSignals()
    	getg().m.procid = 0
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    // resources in minit, semacreate, or elsewhere. Do not take locks after calling this.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/runtime/os3_solaris.go

    func minit() {
    	asmcgocall(unsafe.Pointer(abi.FuncPCABI0(miniterrno)), unsafe.Pointer(&libc____errno))
    
    	minitSignals()
    
    	getg().m.procid = uint64(pthread_self())
    }
    
    // Called from dropm to undo the effect of an minit.
    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
    - 17.6K bytes
    - Viewed (0)
  4. src/runtime/lockrank_on.go

    		list := lockPartialOrder[rank]
    		for _, entry := range list {
    			if entry == prevRank {
    				rankOK = true
    				break
    			}
    		}
    	}
    	if !rankOK {
    		printlock()
    		println(gp.m.procid, " ======")
    		printHeldLocks(gp)
    		throw("lock ordering problem")
    	}
    }
    
    // See comment on lockWithRank regarding stack splitting.
    func unlockWithRank(l *mutex) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. src/runtime/rand.go

    // the full requested amount.
    // Whatever entropy r already contained is preserved.
    func readTimeRandom(r []byte) {
    	// Inspired by wyrand.
    	// An earlier version of this code used getg().m.procid as well,
    	// but note that this is called so early in startup that procid
    	// is not initialized yet.
    	v := uint64(nanotime())
    	for len(r) > 0 {
    		v ^= 0xa0761d6478bd642f
    		v *= 0xe7037ed1a0b428db
    		size := 8
    		if len(r) < 8 {
    			size = len(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. src/internal/trace/summary.go

    	return &Summarizer{
    		gs:          make(map[GoID]*GoroutineSummary),
    		tasks:       make(map[TaskID]*UserTaskSummary),
    		syscallingP: make(map[ProcID]GoID),
    		syscallingG: make(map[GoID]ProcID),
    		rangesP:     make(map[rangeP]GoID),
    	}
    }
    
    type rangeP struct {
    	id   ProcID
    	name string
    }
    
    // Event feeds a single event into the stats summarizer.
    func (s *Summarizer) Event(ev *Event) {
    	if s.syncTs == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  7. src/internal/trace/event/event.go

    var ArgTypes = [...]string{
    	"seq",     // sequence number
    	"pstatus", // P status
    	"gstatus", // G status
    	"g",       // trace.GoID
    	"m",       // trace.ThreadID
    	"p",       // trace.ProcID
    	"string",  // string ID
    	"stack",   // stack ID
    	"value",   // uint64
    	"task",    // trace.TaskID
    }
    
    // Names is a helper that produces a mapping of event names to event types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. src/runtime/os_wasm.go

    import (
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    func osinit() {
    	// https://webassembly.github.io/spec/core/exec/runtime.html#memory-instances
    	physPageSize = 64 * 1024
    	initBloc()
    	ncpu = 1
    	getg().m.procid = 2
    }
    
    const _SIGSEGV = 0xb
    
    func sigpanic() {
    	gp := getg()
    	if !canpanic() {
    		throw("unexpected signal during runtime execution")
    	}
    
    	// js only invokes the exception handler for memory faults.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/runtime/tracecpu.go

    	if traceEnabled() {
    		throw("traceInitReadCPU called with trace enabled")
    	}
    	// Create new profBuf for CPU samples that will be emitted as events.
    	// Format: after the timestamp, header is [pp.id, gp.goid, mp.procid].
    	trace.cpuLogRead[0] = newProfBuf(3, profBufWordCount, profBufTagCount)
    	trace.cpuLogRead[1] = newProfBuf(3, profBufWordCount, profBufTagCount)
    	// We must not acquire trace.signalLock outside of a signal handler: a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. src/internal/trace/event.go

    			// transition.
    			beforeState = ProcIdle
    		}
    		s = procStateTransition(ProcID(e.base.args[0]), beforeState, ProcIdle)
    	case go122.EvProcStatus:
    		// N.B. ordering.advance populates e.base.extra.
    		s = procStateTransition(ProcID(e.base.args[0]), ProcState(e.base.extra(version.Go122)[0]), go122ProcStatus2ProcState[e.base.args[1]])
    	case go122.EvGoCreate, go122.EvGoCreateBlocked:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
Back to top