Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for pcBuf (0.15 sec)

  1. src/runtime/tracestack.go

    	} else if len(pcBuf) > 0 && pcBuf[0] == logicalStackSentinel {
    		// pcBuf contains logical rather than inlined frames, skip has already been
    		// applied, just return it without the sentinel value in pcBuf[0].
    		return copy(dst, pcBuf[1:])
    	}
    
    	var (
    		n          int
    		lastFuncID = abi.FuncIDNormal
    		skip       = pcBuf[0]
    		// skipOrAdd skips or appends retPC to newPCBuf and returns true if more
    		// pcs can be added.
    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/tracecpu.go

    			// do here, we only want to report full records.
    			continue
    		}
    
    		// Construct the stack for insertion to the stack table.
    		nstk := 1
    		pcBuf[0] = logicalStackSentinel
    		for ; nstk < len(pcBuf) && nstk-1 < len(stk); nstk++ {
    			pcBuf[nstk] = uintptr(stk[nstk-1])
    		}
    
    		// Write out a trace event.
    		w := unsafeTraceWriter(gen, trace.cpuBuf[gen%2])
    
    		// Ensure we have a place to write to.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/runtime/traceback.go

    		return 0
    	}
    
    	ctxt := u.g.ptr().cgoCtxt[u.cgoCtxt]
    	u.cgoCtxt--
    	cgoContextPCs(ctxt, pcBuf)
    	for i, pc := range pcBuf {
    		if pc == 0 {
    			return i
    		}
    	}
    	return len(pcBuf)
    }
    
    // tracebackPCs populates pcBuf with the return addresses for each frame from u
    // and returns the number of PCs written to pcBuf. The returned PCs correspond
    // to "logical frames" rather than "physical frames"; that is if A is inlined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  4. src/runtime/mprof.go

    	// pcbuf which is usually given to us by our caller. When it's not, we have
    	// to allocate one here. This will only happen for goroutines that were in a
    	// syscall when the goroutine profile started or for goroutines that manage
    	// to execute before we finish iterating over all the goroutines.
    	if pcbuf == nil {
    		pcbuf = makeProfStack()
    	}
    
    	var u unwinder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    	return persistentalloc(n, 0, &memstats.other_sys)
    }
    
    // FPCallers works like Callers and uses frame pointer unwinding to populate
    // pcBuf with the return addresses of the physical frames on the stack.
    func FPCallers(pcBuf []uintptr) int {
    	return fpTracebackPCs(unsafe.Pointer(getfp()), pcBuf)
    }
    
    const FramePointerEnabled = framepointer_enabled
    
    var (
    	IsPinned      = isPinned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top