Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for tracebackPCs (0.64 sec)

  1. src/runtime/traceback.go

    	var n int
    	systemstack(func() {
    		var u unwinder
    		u.initAt(pc, sp, 0, gp, unwindSilentErrors)
    		n = tracebackPCs(&u, skip, pcbuf)
    	})
    	return n
    }
    
    func gcallers(gp *g, skip int, pcbuf []uintptr) int {
    	var u unwinder
    	u.init(gp, unwindSilentErrors)
    	return tracebackPCs(&u, skip, pcbuf)
    }
    
    // showframe reports whether the frame with the given characteristics should
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    	}
    
    	var nstk int
    	gp := getg()
    	sp := getcallersp()
    	pc := getcallerpc()
    	systemstack(func() {
    		var u unwinder
    		u.initAt(pc, sp, 0, gp, unwindSilentErrors|unwindJumpStack)
    		nstk = 1 + tracebackPCs(&u, skip, prof.stack[1:])
    	})
    	if nstk < len(prof.stack) {
    		prof.stack[nstk] = 0
    	}
    }
    
    func (prof *mLockProfile) store() {
    	// Report any contention we experience within this function as "lost"; it's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. src/runtime/symtab.go

    				snext := u.srcFunc(unext)
    				if snext.funcID == abi.FuncIDWrapper && elideWrapperCalling(sf.funcID) {
    					// Skip, because tracebackPCs (inside runtime.Callers) would too.
    					continue
    				}
    				ci.nextPC = unext.pc + 1
    				break
    			}
    		}
    		ci.frames = append(ci.frames, Frame{
    			PC:        pc,
    			Func:      f,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    func TracebackSystemstack(stk []uintptr, i int) int {
    	if i == 0 {
    		pc, sp := getcallerpc(), getcallersp()
    		var u unwinder
    		u.initAt(pc, sp, 0, getg(), unwindJumpStack) // Don't ignore errors, for testing
    		return tracebackPCs(&u, 0, stk)
    	}
    	n := 0
    	systemstack(func() {
    		n = TracebackSystemstack(stk, i-1)
    	})
    	return n
    }
    
    func KeepNArenaHints(n int) {
    	hint := mheap_.arenaHints
    	for i := 1; i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/textflag.go

    	// Put this data in a read-only section.
    	RODATA = 8
    
    	// This data contains no pointers.
    	NOPTR = 16
    
    	// This is a wrapper function and should not count as
    	// disabling 'recover' or appear in tracebacks by default.
    	WRAPPER = 32
    
    	// This function uses its incoming context register.
    	NEEDCTXT = 64
    
    	// When passed to objw.Global, causes Local to be set to true on the LSym it creates.
    	LOCAL = 128
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 20:25:30 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/runtime/runtime1.go

    var traceback_cache uint32 = 2 << tracebackShift
    var traceback_env uint32
    
    // gotraceback returns the current traceback settings.
    //
    // If level is 0, suppress all tracebacks.
    // If level is 1, show tracebacks, but exclude runtime frames.
    // If level is 2, show tracebacks including runtime frames.
    // If all is set, print all goroutine stacks. Otherwise, print just the current goroutine.
    // If crash is set, crash (core dump, etc) after tracebacking.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    		u.initAt(mp.vdsoPC, mp.vdsoSP, 0, gp, unwindSilentErrors|unwindJumpStack)
    	} else {
    		u.initAt(pc, sp, lr, gp, unwindSilentErrors|unwindTrap|unwindJumpStack)
    	}
    	n += tracebackPCs(&u, 0, stk[n:])
    
    	if n <= 0 {
    		// Normal traceback is impossible or has failed.
    		// Account it against abstract "System" or "GC".
    		n = 2
    		if inVDSOPage(pc) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/pcln.go

    func (s *pcinlineState) addBranch(ctxt *Link, globalIndex int) int {
    	if globalIndex < 0 {
    		return -1
    	}
    
    	localIndex, ok := s.globalToLocal[globalIndex]
    	if ok {
    		return localIndex
    	}
    
    	// Since tracebacks don't include column information, we could
    	// use one node for multiple calls of the same function on the
    	// same line (e.g., f(x) + f(y)). For now, we use one node for
    	// each inlined call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  9. src/runtime/runtime_test.go

    // not be skipped if only -quick is used.
    var flagQuick = flag.Bool("quick", false, "skip slow tests, for cmd/dist test runtime:cpu124")
    
    func init() {
    	// We're testing the runtime, so make tracebacks show things
    	// in the runtime. This only raises the level, so it won't
    	// override GOTRACEBACK=crash from the user.
    	SetTracebackEnv("system")
    }
    
    var errf error
    
    func errfn() error {
    	return errf
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ir/func.go

    }
    
    // A ScopeID represents a lexical scope within a function.
    type ScopeID int32
    
    const (
    	funcDupok      = 1 << iota // duplicate definitions ok
    	funcWrapper                // hide frame from users (elide in tracebacks, don't count as a frame for recover())
    	funcABIWrapper             // is an ABI wrapper (also set flagWrapper)
    	funcNeedctxt               // function uses context register (has closure variables)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top