Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 81 for PCs (0.02 sec)

  1. cmd/kubeadm/app/util/pkiutil/testing/testing.go

    	}
    }
    
    func newPrivateKey(keyType kubeadmapi.EncryptionAlgorithmType) (crypto.Signer, error) {
    	lock.Lock()
    	defer lock.Unlock()
    
    	var pcs [50]uintptr
    	nCallers := runtime.Callers(2, pcs[:])
    	frames := runtime.CallersFrames(pcs[:nCallers])
    	thisTest := ""
    	for {
    		frame, more := frames.Next()
    		if strings.HasSuffix(frame.File, "_test.go") && testFunction.MatchString(frame.Function) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/internal/trace/generation.go

    			}
    			frames = append(frames, pc)
    
    			if _, ok := pcs[pc]; !ok {
    				pcs[pc] = frame{
    					pc:     pc,
    					funcID: stringID(funcID),
    					fileID: stringID(fileID),
    					line:   line,
    				}
    			}
    		}
    
    		// Add the stack to the map.
    		if err := stackTable.insert(stackID(id), stack{pcs: frames}); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue29504.go

    var sinkStr string
    
    var bad = false
    
    func shouldPanic(f func()) {
    	defer func() {
    		if recover() == nil {
    			panic("did not panic")
    		}
    		var pcs [10]uintptr
    		n := runtime.Callers(1, pcs[:])
    		iter := runtime.CallersFrames(pcs[:n])
    		buf := ""
    		for {
    			frame, more := iter.Next()
    			buf += fmt.Sprintf("%s:%d %s\n", frame.File, frame.Line, frame.Function)
    			if !more {
    				break
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 21:30:30 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  4. src/log/slog/logger.go

    	if !w.h.Enabled(context.Background(), level) {
    		return 0, nil
    	}
    	var pc uintptr
    	if !internal.IgnorePC && w.capturePC {
    		// skip [runtime.Callers, w.Write, Logger.Output, log.Print]
    		var pcs [1]uintptr
    		runtime.Callers(4, pcs[:])
    		pc = pcs[0]
    	}
    
    	// Remove final newline.
    	origLen := len(buf) // Report that the entire buf was written.
    	if len(buf) > 0 && buf[len(buf)-1] == '\n' {
    		buf = buf[:len(buf)-1]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 18:26:18 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. src/runtime/select.go

    	// statements in packages compiled without -race (e.g.,
    	// ensureSigM in runtime/signal_unix.go).
    	var pcs []uintptr
    	if raceenabled && pc0 != nil {
    		pc1 := (*[1 << 16]uintptr)(unsafe.Pointer(pc0))
    		pcs = pc1[:ncases:ncases]
    	}
    	casePC := func(casi int) uintptr {
    		if pcs == nil {
    			return 0
    		}
    		return pcs[casi]
    	}
    
    	var t0 int64
    	if blockprofilerate > 0 {
    		t0 = cputicks()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. src/runtime/pprof/testdata/mappingtest/main.go

    // This program outputs a CPU profile that includes
    // both Go and Cgo stacks. This is used by the mapping info
    // tests in runtime/pprof.
    //
    // If SETCGOTRACEBACK=1 is set, the CPU profile will includes
    // PCs from C side but they will not be symbolized.
    package main
    
    /*
    #include <stdint.h>
    #include <stdlib.h>
    
    int cpuHogCSalt1 = 0;
    int cpuHogCSalt2 = 0;
    
    void CPUHogCFunction0(int foo) {
    	int i;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 08 02:40:04 UTC 2019
    - 2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/select.go

    	order := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(types.Types[types.TUINT16], 2*int64(ncas)))
    
    	var pc0, pcs ir.Node
    	if base.Flag.Race {
    		pcs = typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(types.Types[types.TUINTPTR], int64(ncas)))
    		pc0 = typecheck.Expr(typecheck.NodAddr(ir.NewIndexExpr(base.Pos, pcs, ir.NewInt(base.Pos, 0))))
    	} else {
    		pc0 = typecheck.NodNil()
    	}
    
    	// register cases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. utils/utils.go

    	}
    	return filepath.ToSlash(s) + "/"
    }
    
    // FileWithLineNum return the file name and line number of the current file
    func FileWithLineNum() string {
    	pcs := [13]uintptr{}
    	// the third caller usually from gorm internal
    	len := runtime.Callers(3, pcs[:])
    	frames := runtime.CallersFrames(pcs[:len])
    	for i := 0; i < len; i++ {
    		// second return value is "more", not "ok"
    		frame, _ := frames.Next()
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/runtime/pprof/pprof_test.go

    	return cpuHog0(x, n)
    }
    
    //go:noinline
    func dumpCallers(pcs []uintptr) {
    	if pcs == nil {
    		return
    	}
    
    	skip := 2 // Callers and dumpCallers
    	runtime.Callers(skip, pcs)
    }
    
    //go:noinline
    func inlinedCallerDump(pcs []uintptr) {
    	inlinedCalleeDump(pcs)
    }
    
    func inlinedCalleeDump(pcs []uintptr) {
    	dumpCallers(pcs)
    }
    
    type inlineWrapperInterface interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  10. src/runtime/stack_test.go

    	}
    
    	// Test that profiles correctly jump over systemstack,
    	// including nested systemstack calls.
    	pcs := make([]uintptr, 20)
    	pcs = pcs[:TracebackSystemstack(pcs, 5)]
    	// Check that runtime.TracebackSystemstack appears five times
    	// and that we see TestTracebackSystemstack.
    	countIn, countOut := 0, 0
    	frames := CallersFrames(pcs)
    	var tb strings.Builder
    	for {
    		frame, more := frames.Next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
Back to top