Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/trace/gstate.go

    type resource interface {
    	trace.GoID | trace.ProcID | trace.ThreadID
    }
    
    // noResource indicates the lack of a resource.
    const noResource = -1
    
    // gState represents the trace viewer state of a goroutine in a trace.
    //
    // The type parameter on this type is the resource which is used to construct
    // a timeline of events. e.g. R=ProcID for a proc-oriented view, R=GoID for
    // a goroutine-oriented view, etc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. src/internal/trace/order.go

    type pState struct {
    	id     ProcID
    	status go122.ProcStatus
    	seq    seqCounter
    
    	// rangeState is the state of special time ranges bound to this proc.
    	rangeState
    }
    
    // mState is the state of a thread at a point in the trace.
    type mState struct {
    	g GoID   // Goroutine bound to this M. (The goroutine's state is Executing.)
    	p ProcID // Proc bound to this M. (The proc's state is Executing.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  10. src/runtime/export_debug_test.go

    	if gp.lockedm == 0 {
    		return nil, plainError("goroutine not locked to thread")
    	}
    
    	tid := int(gp.lockedm.ptr().procid)
    	if tid == 0 {
    		return nil, plainError("missing tid")
    	}
    
    	f := efaceOf(&fn)
    	if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
    		return nil, plainError("fn must be a function")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top