Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for stk (0.02 sec)

  1. src/runtime/string.go

    // stringDataOnStack reports whether the string's data is
    // stored on the current goroutine's stack.
    func stringDataOnStack(s string) bool {
    	ptr := uintptr(unsafe.Pointer(unsafe.StringData(s)))
    	stk := getg().stack
    	return stk.lo <= ptr && ptr < stk.hi
    }
    
    func rawstringtmp(buf *tmpBuf, l int) (s string, b []byte) {
    	if buf != nil && l <= len(buf) {
    		b = buf[:l]
    		s = slicebytetostringtmp(&b[0], len(b))
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/internal/trace/event.go

    				return true
    			})
    		}
    	case EventExperimental:
    		r := e.Experimental()
    		fmt.Fprintf(&sb, " Name=%s ArgNames=%v Args=%v", r.Name, r.ArgNames, r.Args)
    	}
    	if stk := e.Stack(); stk != NoStack {
    		fmt.Fprintln(&sb)
    		fmt.Fprintln(&sb, "Stack=")
    		stk.Frames(func(f StackFrame) bool {
    			fmt.Fprintf(&sb, "\t%s @ 0x%x\n", f.Func, f.PC)
    			fmt.Fprintf(&sb, "\t\t%s:%d\n", f.File, f.Line)
    			return true
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  3. src/internal/trace/testtrace/validation.go

    		s = &schedContext{M: m, P: trace.NoProc, G: trace.NoGoroutine}
    		v.ms[m] = s
    		return s
    	}
    	return s
    }
    
    func checkStack(e *errAccumulator, stk trace.Stack) {
    	// Check for non-empty values, but we also check for crashes due to incorrect validation.
    	i := 0
    	stk.Frames(func(f trace.StackFrame) bool {
    		if i == 0 {
    			// Allow for one fully zero stack.
    			//
    			// TODO(mknyszek): Investigate why that happens.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/internal/trace/oldtrace.go

    		// This should be impossible but let's be safe.
    		return fmt.Errorf("couldn't add strings: %w", addErr)
    	}
    
    	it.evt.strings.compactify()
    
    	// Convert stacks.
    	for id, stk := range pr.Stacks {
    		evt.stacks.insert(stackID(id), stack{pcs: stk})
    	}
    
    	// OPT(dh): if we could share the frame type between this package and
    	// oldtrace we wouldn't have to copy the map.
    	for pc, f := range pr.PCs {
    		evt.pcs[pc] = frame{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. src/internal/trace/generation.go

    func validateStackStrings(
    	stacks *dataTable[stackID, stack],
    	strings *dataTable[stringID, string],
    	frames map[uint64]frame,
    ) error {
    	var err error
    	stacks.forEach(func(id stackID, stk stack) bool {
    		for _, pc := range stk.pcs {
    			frame, ok := frames[pc]
    			if !ok {
    				err = fmt.Errorf("found unknown pc %x for stack %d", pc, id)
    				return false
    			}
    			_, ok = strings.get(frame.funcID)
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/runtime/sys_linux_mips64x.s

    	SYSCALL
    	BEQ	R7, 2(PC)
    	SUBVU	R2, R0, R2	// caller expects negative errno
    	MOVW	R2, ret+40(FP)
    	RET
    
    // int64 clone(int32 flags, void *stk, M *mp, G *gp, void (*fn)(void));
    TEXT runtime·clone(SB),NOSPLIT|NOFRAME,$0
    	MOVW	flags+0(FP), R4
    	MOVV	stk+8(FP), R5
    
    	// Copy mp, gp, fn off parent stack for use by child.
    	// Careful: Linux system call clobbers ???.
    	MOVV	mp+16(FP), R16
    	MOVV	gp+24(FP), R17
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 20:57:24 UTC 2022
    - 12K bytes
    - Viewed (0)
  7. src/internal/trace/summary.go

    			// This root frame will be identical for all transitions on this
    			// goroutine, because it represents its immutable start point.
    			if g.Name == "" {
    				stk := st.Stack
    				if stk != NoStack {
    					var frame StackFrame
    					var ok bool
    					stk.Frames(func(f StackFrame) bool {
    						frame = f
    						ok = true
    						return true
    					})
    					if ok {
    						// NB: this PC won't actually be consistent for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. src/runtime/sys_linux_loong64.s

    	MOVV	addr2+24(FP), R8
    	MOVW	val3+32(FP), R9
    	MOVV	$SYS_futex, R11
    	SYSCALL
    	MOVW	R4, ret+40(FP)
    	RET
    
    // int64 clone(int32 flags, void *stk, M *mp, G *gp, void (*fn)(void));
    TEXT runtime·clone(SB),NOSPLIT|NOFRAME,$0
    	MOVW	flags+0(FP), R4
    	MOVV	stk+8(FP), R5
    
    	// Copy mp, gp, fn off parent stack for use by child.
    	// Careful: Linux system call clobbers ???.
    	MOVV	mp+16(FP), R23
    	MOVV	gp+24(FP), R24
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  9. src/runtime/sys_linux_riscv64.s

    	MOV	ts+16(FP), A3
    	MOV	addr2+24(FP), A4
    	MOVW	val3+32(FP), A5
    	MOV	$SYS_futex, A7
    	ECALL
    	MOVW	A0, ret+40(FP)
    	RET
    
    // func clone(flags int32, stk, mp, gp, fn unsafe.Pointer) int32
    TEXT runtime·clone(SB),NOSPLIT|NOFRAME,$0
    	MOVW	flags+0(FP), A0
    	MOV	stk+8(FP), A1
    
    	// Copy mp, gp, fn off parent stack for use by child.
    	MOV	mp+16(FP), T0
    	MOV	gp+24(FP), T1
    	MOV	fn+32(FP), T2
    
    	MOV	T0, -8(A1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. src/internal/trace/trace_test.go

    					{"internal/poll.(*FD).Read", 0},
    					{"os.(*File).read", 0},
    					{"os.(*File).Read", 0},
    					{"main.main.func11", 0},
    				}},
    			}...)
    		}
    		stackMatches := func(stk trace.Stack, frames []frame) bool {
    			i := 0
    			match := true
    			stk.Frames(func(f trace.StackFrame) bool {
    				if f.Func != frames[i].fn {
    					match = false
    					return false
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top