Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for ProcID (0.12 sec)

  1. src/internal/trace/oldtrace.go

    			ctx: schedCtx{
    				G: GoID(ev.G),
    				P: ProcID(ev.P),
    				M: it.procMs[ProcID(ev.P)],
    			},
    			table: it.evt,
    			base: baseEvent{
    				typ:  go122.EvGoLabel,
    				time: Time(ev.Ts),
    				args: timedEventArgs{ev.Args[2]},
    			},
    		}}
    		return Event{
    			ctx: schedCtx{
    				G: GoID(ev.G),
    				P: ProcID(ev.P),
    				M: it.procMs[ProcID(ev.P)],
    			},
    			table: it.evt,
    			base: baseEvent{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. src/runtime/os_linux.go

    	minitSignals()
    
    	// Cgo-created threads and the bootstrap m are missing a
    	// procid. We need this for asynchronous preemption and it's
    	// useful in debuggers.
    	getg().m.procid = uint64(gettid())
    }
    
    // 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
    - 25.9K bytes
    - Viewed (0)
  3. src/runtime/os_netbsd.go

    	atomic.Xadd(&mp.waitsemacount, 1)
    	// From NetBSD's _lwp_unpark(2) manual:
    	// "If the target LWP is not currently waiting, it will return
    	// immediately upon the next call to _lwp_park()."
    	ret := lwp_unpark(int32(mp.procid), unsafe.Pointer(&mp.waitsemacount))
    	if ret != 0 && ret != _ESRCH {
    		// semawakeup can be called on signal stack.
    		systemstack(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top