- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for findfunc (0.18 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
src/runtime/print.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 03:27:26 UTC 2023 - 5.9K bytes - Viewed (0) -
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) -
src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go
// The path isn't interesting, so just give the .so. lineFunc, lineFile = filePath[1], filepath.Base(filePath[2]) } else if strings.Contains(jloc[2], "generated stub/JIT") { lineFunc = "STUB" } else { // Treat whole line as the function name. This is used by the // java agent for internal states such as "GC" or "VM". lineFunc = jloc[2] } fn := fns[lineFunc] if fn == nil { fn = &Function{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 8.8K bytes - Viewed (0) -
src/os/user/lookup_unix.go
package user import ( "bufio" "bytes" "errors" "io" "os" "strconv" "strings" ) // lineFunc returns a value, an error, or (nil, nil) to skip the row. type lineFunc func(line []byte) (v any, err error) // readColonFile parses r as an /etc/group or /etc/passwd style file, running // fn for each row. readColonFile returns a value, an error, or (nil, nil) if
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 6K bytes - Viewed (0)