Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pctOff (0.07 sec)

  1. src/cmd/link/internal/ld/pcln.go

    	textStart := ldr.SymValue(ldr.Lookup("runtime.text", 0))
    	pcOff := func(s loader.Sym) uint32 {
    		off := ldr.SymValue(s) - textStart
    		if off < 0 {
    			panic(fmt.Sprintf("expected func %s(%x) to be placed at or after textStart (%x)", ldr.SymName(s), ldr.SymValue(s), textStart))
    		}
    		return uint32(off)
    	}
    	for i, s := range funcs {
    		sb.SetUint32(ctxt.Arch, int64(i*2*4), pcOff(s))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  2. src/runtime/stack.go

    		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)
    			pcoff = gp.sched.pc - f.entry()
    		}
    		print("runtime: newstack at ", pcname, "+", hex(pcoff),
    			" sp=", hex(gp.sched.sp), " stack=[", hex(gp.stack.lo), ", ", hex(gp.stack.hi), "]\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  3. src/runtime/symtab.go

    	datap := findmoduledatap(pc)
    	if datap == nil {
    		return funcInfo{}
    	}
    	const nsub = uintptr(len(findfuncbucket{}.subbuckets))
    
    	pcOff, ok := datap.textOff(pc)
    	if !ok {
    		return funcInfo{}
    	}
    
    	x := uintptr(pcOff) + datap.text - datap.minpc // TODO: are datap.text and datap.minpc always equal?
    	b := x / abi.FuncTabBucketSize
    	i := x % abi.FuncTabBucketSize / (abi.FuncTabBucketSize / nsub)
    
    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