Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 74 for stk (0.03 sec)

  1. src/runtime/os_netbsd_arm64.go

    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    func lwp_mcontext_init(mc *mcontextt, stk unsafe.Pointer, mp *m, gp *g, fn uintptr) {
    	// Machine dependent mcontext initialisation for LWP.
    	mc.__gregs[_REG_ELR] = uint64(abi.FuncPCABI0(lwp_tramp))
    	mc.__gregs[_REG_X31] = uint64(uintptr(stk))
    	mc.__gregs[_REG_X0] = uint64(uintptr(unsafe.Pointer(mp)))
    	mc.__gregs[_REG_X1] = uint64(uintptr(unsafe.Pointer(mp.g0)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 769 bytes
    - Viewed (0)
  2. src/runtime/cpuprof.go

    		// TODO: Is it safe to osyield here? https://go.dev/issue/52672
    		osyield()
    	}
    
    	if cpuprof.numExtra+1+len(stk) < len(cpuprof.extra) {
    		i := cpuprof.numExtra
    		cpuprof.extra[i] = uintptr(1 + len(stk))
    		copy(cpuprof.extra[i+1:], stk)
    		cpuprof.numExtra += 1 + len(stk)
    	} else {
    		cpuprof.lostExtra++
    	}
    
    	prof.signalLock.Store(0)
    }
    
    // addExtra adds the "extra" profiling events,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/runtime/pprof/pprof_test.go

    		for _, test := range tests {
    			if !containsStack(stks, test.stk) {
    				t.Errorf("No matching stack entry for %v, want %+v", test.name, test.stk)
    			}
    		}
    	})
    
    }
    
    func stacks(p *profile.Profile) (res [][]string) {
    	for _, s := range p.Sample {
    		var stk []string
    		for _, l := range s.Location {
    			for _, line := range l.Line {
    				stk = append(stk, line.Function.Name)
    			}
    		}
    		res = append(res, stk)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  4. src/cmd/trace/gstate.go

    	}
    }
    
    // augmentName attempts to use stk to augment the name of the goroutine
    // with stack information. This stack must be related to the goroutine
    // in some way, but it doesn't really matter which stack.
    func (gs *gState[R]) augmentName(stk trace.Stack) {
    	if gs.named {
    		return
    	}
    	if stk == trace.NoStack {
    		return
    	}
    	name := lastFunc(stk)
    	gs.baseName += fmt.Sprintf(" %s", name)
    	gs.named = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. src/internal/bisect/bisect.go

    func (m *Matcher) stack(w Writer) bool {
    	const maxStack = 16
    	var stk [maxStack]uintptr
    	n := runtime.Callers(2, stk[:])
    	// caller #2 is not for printing; need it to normalize PCs if ASLR.
    	if n <= 1 {
    		return false
    	}
    
    	base := stk[0]
    	// normalize PCs
    	for i := range stk[:n] {
    		stk[i] -= base
    	}
    
    	h := Hash(stk[:n])
    	if m.ShouldPrint(h) {
    		var d *dedup
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  6. src/runtime/tracecpu.go

    		ppid := data[2] >> 1
    		if hasP := (data[2] & 0b1) != 0; !hasP {
    			ppid = ^uint64(0)
    		}
    		goid := data[3]
    		mpid := data[4]
    		stk := data[5:recordLen]
    
    		// Overflow records always have their headers contain
    		// all zeroes.
    		isOverflowRecord := len(stk) == 1 && data[2] == 0 && data[3] == 0 && data[4] == 0
    
    		// Move the data iterator forward.
    		data = data[recordLen:]
    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/runtime/profbuf.go

    		// Only racing against reader, not other writers.
    		count, time := b.takeOverflow()
    		if count > 0 {
    			var stk [1]uintptr
    			stk[0] = uintptr(count)
    			b.write(nil, int64(time), nil, stk[:])
    		}
    	} else if hasOverflow || !b.canWriteRecord(len(stk)) {
    		// Pending overflow without room to write overflow and new records
    		// or no overflow but also no room for new record.
    		b.incrementOverflow(now)
    		b.wakeupExtra()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  8. src/runtime/pprof/pprof.go

    	}
    	if p.write != nil {
    		panic("pprof: Add called on built-in Profile " + p.name)
    	}
    
    	stk := make([]uintptr, 32)
    	n := runtime.Callers(skip+1, stk[:])
    	stk = stk[:n]
    	if len(stk) == 0 {
    		// The value for skip is too large, and there's no stack trace to record.
    		stk = []uintptr{abi.FuncPCABIInternal(lostProfileEvent)}
    	}
    
    	p.mu.Lock()
    	defer p.mu.Unlock()
    	if p.m[value] != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  9. src/runtime/os_dragonfly.go

    	})
    }
    
    func lwp_start(uintptr)
    
    // May run with m.p==nil, so write barriers are not allowed.
    //
    //go:nowritebarrier
    func newosproc(mp *m) {
    	stk := unsafe.Pointer(mp.g0.stack.hi)
    	if false {
    		print("newosproc stk=", stk, " m=", mp, " g=", mp.g0, " lwp_start=", abi.FuncPCABI0(lwp_start), " id=", mp.id, " ostk=", &mp, "\n")
    	}
    
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/load/pkg.go

    	if !isMatchErr && (nogoErr != nil || isScanErr) {
    		stk.Push(path)
    		defer stk.Pop()
    	}
    
    	p.Error = &PackageError{
    		ImportStack: stk.Copy(),
    		Pos:         pos,
    		Err:         err,
    	}
    	p.Incomplete = true
    
    	if path != stk.Top() {
    		p.Error.setPos(importPos)
    	}
    }
    
    // Resolve returns the resolved version of imports,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top