Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for findFuncs (0.19 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/cmd/doc/pkg.go

    		for _, name := range value.Names {
    			if match(symbol, name) {
    				values = append(values, value)
    			}
    		}
    	}
    	return
    }
    
    // findFuncs finds the doc.Funcs that describes the symbol.
    func (pkg *Package) findFuncs(symbol string) (funcs []*doc.Func) {
    	for _, fun := range pkg.doc.Funcs {
    		if match(symbol, fun.Name) {
    			funcs = append(funcs, fun)
    		}
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. 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)
  4. src/runtime/mgcscavenge_test.go

    		name string
    		mark func(markFunc)
    		find func(findFunc)
    	}
    	for _, test := range []testCase{
    		{
    			name: "Uninitialized",
    			mark: func(_ markFunc) {},
    			find: func(_ findFunc) {},
    		},
    		{
    			name: "OnePage",
    			mark: func(mark markFunc) {
    				mark(PageBase(BaseChunkIdx, 3), PageBase(BaseChunkIdx, 4))
    			},
    			find: func(find findFunc) {
    				find(BaseChunkIdx, 3)
    			},
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  5. 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)
  6. src/runtime/symtab.go

    	return f.datap.textAddr(f.entryOff)
    }
    
    //go:linkname badFuncInfoEntry runtime.funcInfo.entry
    func badFuncInfoEntry(funcInfo) uintptr
    
    // findfunc looks up function metadata for a PC.
    //
    // It is nosplit because it's part of the isgoexception
    // implementation.
    //
    // findfunc should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  7. 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)
  8. src/runtime/preempt.go

    }
    
    // asyncPreemptStack is the bytes of stack space required to inject an
    // asyncPreempt call.
    var asyncPreemptStack = ^uintptr(0)
    
    func init() {
    	f := findfunc(abi.FuncPCABI0(asyncPreempt))
    	total := funcMaxSPDelta(f)
    	f = findfunc(abi.FuncPCABIInternal(asyncPreempt2))
    	total += funcMaxSPDelta(f)
    	// Add some overhead for return PCs, etc.
    	asyncPreemptStack = uintptr(total) + 8*goarch.PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  9. src/debug/gosym/pclntab.go

    			GoType:    0,
    			Func:      f,
    			goVersion: t.version,
    		}
    		f.Sym = &syms[i]
    	}
    	return funcs
    }
    
    // findFunc returns the funcData corresponding to the given program counter.
    func (t *LineTable) findFunc(pc uint64) funcData {
    	ft := t.funcTab()
    	if pc < ft.pc(0) || pc >= ft.pc(ft.Count()) {
    		return funcData{}
    	}
    	idx := sort.Search(int(t.nfunctab), func(i int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 19:43:24 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  10. 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)
Back to top