Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for stk (0.05 sec)

  1. src/internal/trace/internal/testgen/go122/trace.go

    //
    // This is a convenience function for easily adding correct
    // stacks to traces.
    func (g *Generation) Stack(stk []trace.StackFrame) uint64 {
    	if len(stk) == 0 {
    		return 0
    	}
    	if len(stk) > 32 {
    		panic("stack too big for test")
    	}
    	var stkc stack
    	copy(stkc.stk[:], stk)
    	stkc.len = len(stk)
    	if id, ok := g.stacks[stkc]; ok {
    		return id
    	}
    	id := uint64(len(g.stacks) + 1)
    	g.stacks[stkc] = id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/runtime/pprof/protomem.go

    					stk = stk[i:]
    					break
    				}
    			}
    			locs = b.appendLocsForStack(locs[:0], stk)
    			if len(locs) > 0 {
    				break
    			}
    			hideRuntime = false // try again, and show all frames next time.
    		}
    
    		values[0], values[1] = scaleHeapSample(r.AllocObjects, r.AllocBytes, rate)
    		values[2], values[3] = scaleHeapSample(r.InUseObjects(), r.InUseBytes(), rate)
    		var blockSize int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/numgoroutine.go

    	return string(sbuf), true
    }
    
    var callbackok bool
    
    //export CallbackNumGoroutine
    func CallbackNumGoroutine() {
    	stk, ok := checkNumGoroutine("second", 2+baseGoroutines)
    	if !ok {
    		return
    	}
    	if !strings.Contains(stk, "CallbackNumGoroutine") {
    		fmt.Printf("missing CallbackNumGoroutine from stack:\n%s\n", stk)
    		return
    	}
    
    	callbackok = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:52:37 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/trace/viewer.go

    	"time"
    )
    
    // viewerFrames returns the frames of the stack of ev. The given frame slice is
    // used to store the frames to reduce allocations.
    func viewerFrames(stk trace.Stack) []*trace.Frame {
    	var frames []*trace.Frame
    	stk.Frames(func(f trace.StackFrame) bool {
    		frames = append(frames, &trace.Frame{
    			PC:   f.PC,
    			Fn:   f.Func,
    			File: f.File,
    			Line: int(f.Line),
    		})
    		return true
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/runtime/os_netbsd_arm.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_R15] = uint32(abi.FuncPCABI0(lwp_tramp))
    	mc.__gregs[_REG_R13] = uint32(uintptr(stk))
    	mc.__gregs[_REG_R0] = uint32(uintptr(unsafe.Pointer(mp)))
    	mc.__gregs[_REG_R1] = uint32(uintptr(unsafe.Pointer(gp)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  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/runtime/pprof/runtime.go

    //
    //go:noescape
    func runtime_FrameSymbolName(f *runtime.Frame) string
    
    // runtime_expandFinalInlineFrame is defined in runtime/symtab.go.
    func runtime_expandFinalInlineFrame(stk []uintptr) []uintptr
    
    // runtime_setProfLabel is defined in runtime/proflabel.go.
    func runtime_setProfLabel(labels unsafe.Pointer)
    
    // runtime_getProfLabel is defined in runtime/proflabel.go.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top