Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 246 for syscallsp (1.23 sec)

  1. src/runtime/tracestack.go

    			// in a syscall, in which case it's currently not executing. gp.sched contains the most
    			// up-to-date information about where it stopped, and like case (1), we match gcallers
    			// here.
    			//
    			// (3) We're called against a gp that we're not currently executing on, but that is in
    			// a syscall, in which case gp.syscallsp != 0. gp.syscall* contains the most up-to-date
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/heapdump.go

    	if stkmap != nil {
    		child.args = stackmapdata(stkmap, pcdata)
    	} else {
    		child.args.n = -1
    	}
    	return
    }
    
    func dumpgoroutine(gp *g) {
    	var sp, pc, lr uintptr
    	if gp.syscallsp != 0 {
    		sp = gp.syscallsp
    		pc = gp.syscallpc
    		lr = 0
    	} else {
    		sp = gp.sched.sp
    		pc = gp.sched.pc
    		lr = gp.sched.lr
    	}
    
    	dumpint(tagGoroutine)
    	dumpint(uint64(uintptr(unsafe.Pointer(gp))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	pc := getcallerpc()
    	sp := getcallersp()
    	bp := getcallerfp()
    	save(pc, sp, bp)
    	gp.syscallsp = gp.sched.sp
    	gp.syscallpc = gp.sched.pc
    	gp.syscallbp = gp.sched.bp
    	if gp.syscallsp < gp.stack.lo || gp.stack.hi < gp.syscallsp {
    		sp1 := sp
    		sp2 := gp.sched.sp
    		sp3 := gp.syscallsp
    		systemstack(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  4. src/runtime/traceback.go

    		// instead on the g0 stack.
    		throw("cannot trace user goroutine on its own stack")
    	}
    
    	if pc0 == ^uintptr(0) && sp0 == ^uintptr(0) { // Signal to fetch saved values from gp.
    		if gp.syscallsp != 0 {
    			pc0 = gp.syscallpc
    			sp0 = gp.syscallsp
    			if usesLR {
    				lr0 = 0
    			}
    		} else {
    			pc0 = gp.sched.pc
    			sp0 = gp.sched.sp
    			if usesLR {
    				lr0 = gp.sched.lr
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  5. src/runtime/stack.go

    		throw("runtime: wrong goroutine in newstack")
    	}
    
    	gp := thisg.m.curg
    
    	if thisg.m.curg.throwsplit {
    		// Update syscallsp, syscallpc in case traceback uses them.
    		morebuf := thisg.m.morebuf
    		gp.syscallsp = morebuf.sp
    		gp.syscallpc = morebuf.pc
    		pcname, pcoff := "(unknown)", uintptr(0)
    		f := findfunc(gp.sched.pc)
    		if f.valid() {
    			pcname = funcname(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. src/runtime/sys_freebsd_amd64.s

    	MOVQ	sig+8(FP), SI	// arg 2 sig
    	MOVL	$SYS_thr_kill, AX
    	SYSCALL
    	RET
    
    TEXT runtime·raiseproc(SB),NOSPLIT,$0
    	// getpid
    	MOVL	$SYS_getpid, AX
    	SYSCALL
    	// kill(self, sig)
    	MOVQ	AX, DI		// arg 1 pid
    	MOVL	sig+0(FP), SI	// arg 2 sig
    	MOVL	$SYS_kill, AX
    	SYSCALL
    	RET
    
    TEXT runtime·setitimer(SB), NOSPLIT, $-8
    	MOVL	mode+0(FP), DI
    	MOVQ	new+8(FP), SI
    	MOVQ	old+16(FP), DX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  7. src/runtime/runtime-gdb.py

    	status = ptr['atomicstatus']['value']&~G_SCAN
    	# Goroutine is not running nor in syscall, so use the info in goroutine
    	if status != G_RUNNING and status != G_SYSCALL:
    		return pc.cast(vp), sp.cast(vp)
    
    	# If the goroutine is in a syscall, use syscallpc/sp.
    	pc, sp = ptr['syscallpc'], ptr['syscallsp']
    	if sp != 0:
    		return pc.cast(vp), sp.cast(vp)
    	# Otherwise, the goroutine is running, so it doesn't have
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  8. src/runtime/sys_linux_amd64.s

    	MOVL	AX, ret+0(FP)
    	RET
    
    TEXT runtime·raise(SB),NOSPLIT,$0
    	MOVL	$SYS_getpid, AX
    	SYSCALL
    	MOVL	AX, R12
    	MOVL	$SYS_gettid, AX
    	SYSCALL
    	MOVL	AX, SI	// arg 2 tid
    	MOVL	R12, DI	// arg 1 pid
    	MOVL	sig+0(FP), DX	// arg 3
    	MOVL	$SYS_tgkill, AX
    	SYSCALL
    	RET
    
    TEXT runtime·raiseproc(SB),NOSPLIT,$0
    	MOVL	$SYS_getpid, AX
    	SYSCALL
    	MOVL	AX, DI	// arg 1 pid
    	MOVL	sig+0(FP), SI	// arg 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  9. src/runtime/sys_darwin_amd64.s

    	RET
    
    // syscall6X calls a function in libc on behalf of the syscall package.
    // syscall6X takes a pointer to a struct like:
    // struct {
    //	fn    uintptr
    //	a1    uintptr
    //	a2    uintptr
    //	a3    uintptr
    //	a4    uintptr
    //	a5    uintptr
    //	a6    uintptr
    //	r1    uintptr
    //	r2    uintptr
    //	err   uintptr
    // }
    // syscall6X must be called on the g0 stack with the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  10. src/runtime/sys_linux_ppc64x.s

    	ADD	$8, R1, R3
    	MOVW	$0, R4
    	SYSCALL	$SYS_nanosleep
    	RET
    
    TEXT runtime·gettid(SB),NOSPLIT,$0-4
    	SYSCALL	$SYS_gettid
    	MOVW	R3, ret+0(FP)
    	RET
    
    TEXT runtime·raise(SB),NOSPLIT|NOFRAME,$0
    	SYSCALL	$SYS_getpid
    	MOVW	R3, R14
    	SYSCALL	$SYS_gettid
    	MOVW	R3, R4	// arg 2 tid
    	MOVW	R14, R3	// arg 1 pid
    	MOVW	sig+0(FP), R5	// arg 3
    	SYSCALL	$SYS_tgkill
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
Back to top