Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for findfunc (0.19 sec)

  1. src/runtime/export_debug_test.go

    	// this to avoid write barriers.
    
    	// Double-check m.
    	if getg().m != h.mp {
    		println("trap on wrong M", getg().m, h.mp)
    		return false
    	}
    	f := findfunc(ctxt.sigpc())
    	if !(stringslite.HasPrefix(funcname(f), "runtime.debugCall") || stringslite.HasPrefix(funcname(f), "debugCall")) {
    		println("trap in unknown function", funcname(f))
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/runtime/traceback.go

    	for fidx, pc := range ancestor.pcs {
    		f := findfunc(pc) // f previously validated
    		if showfuncinfo(f.srcFunc(), fidx == 0, abi.FuncIDNormal) {
    			printAncestorTracebackFuncInfo(f, pc)
    		}
    	}
    	if len(ancestor.pcs) == tracebackInnerFrames {
    		print("...additional frames elided...\n")
    	}
    	// Show what created goroutine, except main goroutine (goid 1).
    	f := findfunc(ancestor.gopc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. src/runtime/print.go

    			if markbuf[0] == 0 {
    				markbuf[0] = ' '
    			}
    		}
    		gwrite(markbuf[:])
    		val := *(*uintptr)(unsafe.Pointer(p + i))
    		print(hex(val))
    		print(" ")
    
    		// Can we symbolize val?
    		fn := findfunc(val)
    		if fn.valid() {
    			print("<", funcname(fn), "+", hex(val-fn.entry()), "> ")
    		}
    	}
    	minhexdigits = 0
    	println()
    	printunlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. src/runtime/debugcall.go

    		// systemstack.)
    		return debugCallSystemStack
    	}
    
    	// Switch to the system stack to avoid overflowing the user
    	// stack.
    	var ret string
    	systemstack(func() {
    		f := findfunc(pc)
    		if !f.valid() {
    			ret = debugCallUnknownFunc
    			return
    		}
    
    		name := funcname(f)
    
    		switch name {
    		case "debugCall32",
    			"debugCall64",
    			"debugCall128",
    			"debugCall256",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. pkg/slices/slices_test.go

    				return s == "b"
    			},
    			want: &elements[1],
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := FindFunc(tt.elements, tt.fn); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("FindFunc got %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestFilter(t *testing.T) {
    	tests := []struct {
    		name     string
    		elements []string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. src/runtime/error.go

    // with a nil pointer receiver.
    //
    // It is called from the generated wrapper code.
    func panicwrap() {
    	pc := getcallerpc()
    	name := funcNameForPrint(funcname(findfunc(pc)))
    	// name is something like "main.(*T).F".
    	// We want to extract pkg ("main"), typ ("T"), and meth ("F").
    	// Do it by finding the parens.
    	i := bytealg.IndexByteString(name, '(')
    	if i < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/runtime/panic.go

    	// may try to read a stale LR that looks like a Go code
    	// pointer and wander into the woods.
    	if gp.m.incgo || findfunc(pc).valid() {
    		// This wasn't a bad call, so use PC as sigpanic's
    		// return PC.
    		return true
    	}
    	if findfunc(lr).valid() {
    		// This was a bad call, but the LR is good, so use the
    		// LR as sigpanic's return PC.
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  8. src/runtime/stack.go

    		// 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)
    			pcoff = gp.sched.pc - f.entry()
    		}
    		print("runtime: newstack at ", pcname, "+", hex(pcoff),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/conditions.go

    				Reason:  ConfigErrorReason(gw.DeniedReason.Reason),
    				Message: gw.DeniedReason.Message,
    			}
    		}
    
    		var currentConditions []metav1.Condition
    		currentStatus := slices.FindFunc(currentParents, func(s k8s.RouteParentStatus) bool {
    			return parentRefString(s.ParentRef) == parentRefString(gw.OriginalReference) &&
    				s.ControllerName == k8s.GatewayController(features.ManagedGatewayController)
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 13:05:41 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go

    		// If there is just one, return it
    		if len(wls) == 1 {
    			return []model.AddressInfo{modelWorkloadToAddressInfo(wls[0])}
    		}
    		// Otherwise, try to find a pod - pods have precedence
    		pod := slices.FindFunc(wls, func(info model.WorkloadInfo) bool {
    			return info.Source == kind.Pod
    		})
    		if pod != nil {
    			return []model.AddressInfo{modelWorkloadToAddressInfo(*pod)}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 19 17:19:41 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top