Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 77 for nstk (0.07 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/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)
  7. src/archive/tar/strconv.go

    	// The size field ends at the first space.
    	nStr, rest, ok := strings.Cut(s, " ")
    	if !ok {
    		return "", "", s, ErrHeader
    	}
    
    	// Parse the first token as a decimal integer.
    	n, perr := strconv.ParseInt(nStr, 10, 0) // Intentionally parse as native int
    	if perr != nil || n < 5 || n > int64(len(s)) {
    		return "", "", s, ErrHeader
    	}
    	n -= int64(len(nStr) + 1) // convert from index in s to index in rest
    	if n <= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. src/runtime/os_linux.go

    )
    
    //go:noescape
    func clone(flags int32, stk, mp, gp, fn unsafe.Pointer) int32
    
    // 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)
    	/*
    	 * note: strace gets confused if we use CLONE_PTRACE here.
    	 */
    	if false {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  9. 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)
  10. src/runtime/symtab.go

    func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr {
    	// TODO: It would be more efficient to report only physical PCs to pprof and
    	// just expand the whole stack.
    	if len(stk) == 0 {
    		return stk
    	}
    	pc := stk[len(stk)-1]
    	tracepc := pc - 1
    
    	f := findfunc(tracepc)
    	if !f.valid() {
    		// Not a Go function.
    		return stk
    	}
    
    	u, uf := newInlineUnwinder(f, tracepc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
Back to top