Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for findFuncs (0.76 sec)

  1. src/cmd/cover/func.go

    			total += t
    			covered += c
    		}
    	}
    	fmt.Fprintf(tabber, "total:\t(statements)\t%.1f%%\n", percent(covered, total))
    
    	return nil
    }
    
    // findFuncs parses the file and returns a slice of FuncExtent descriptors.
    func findFuncs(name string) ([]*FuncExtent, error) {
    	fset := token.NewFileSet()
    	parsedFile, err := parser.ParseFile(fset, name, nil, 0)
    	if err != nil {
    		return nil, err
    	}
    	visitor := &FuncVisitor{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  2. src/runtime/symtabinl_test.go

    	// Iterate over the PCs in tiuTest and walk the inline stack for each.
    	prevStack := "x"
    	for pc := pc1; pc < pc1+1024 && findfunc(pc) == f; pc += sys.PCQuantum {
    		stack := ""
    		u, uf := newInlineUnwinder(f, pc)
    		if file, _ := u.fileLine(uf); file == "?" {
    			// We're probably in the trailing function padding, where findfunc
    			// still returns f but there's no symbolic information. Just keep
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/runtime/os3_plan9.go

    		// but we do recognize the top pointer on the stack as code,
    		// then assume this was a call to non-code and treat like
    		// pc == 0, to make unwinding show the context.
    		if pc != 0 && !findfunc(pc).valid() && findfunc(*(*uintptr)(unsafe.Pointer(sp))).valid() {
    			pc = 0
    		}
    
    		// IF LR exists, sigpanictramp must save it to the stack
    		// before entry to sigpanic so that panics in leaf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. pilot/pkg/model/kstatus/helper.go

    // UpdateConditionIfChanged updates a condition if it has been changed.
    func UpdateConditionIfChanged(conditions []metav1.Condition, condition metav1.Condition) []metav1.Condition {
    	ret := slices.Clone(conditions)
    	existing := slices.FindFunc(ret, func(cond metav1.Condition) bool {
    		return cond.Type == condition.Type
    	})
    	if existing == nil {
    		ret = append(ret, condition)
    		return ret
    	}
    
    	if existing.Status == condition.Status {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. src/runtime/plugin.go

    		// function symbol, meaning if we search for its PC we get
    		// a valid entry with a name that is useful for debugging.
    		name2 := "none"
    		entry2 := uintptr(0)
    		f2 := findfunc(entry)
    		if f2.valid() {
    			name2 = funcname(f2)
    			entry2 = f2.entry()
    		}
    		badtable = true
    		println("ftab entry", hex(entry), "/", hex(entry2), ": ",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. pkg/slices/slices.go

    }
    
    // Contains reports whether v is present in s.
    func Contains[E comparable](s []E, v E) bool {
    	return slices.Contains(s, v)
    }
    
    // FindFunc finds the first element matching the function, or nil if none do
    func FindFunc[E any](s []E, f func(E) bool) *E {
    	idx := slices.IndexFunc(s, f)
    	if idx == -1 {
    		return nil
    	}
    	return &s[idx]
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
Back to top