MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / CallsiteInsns

Method CallsiteInsns

pkg/callstack/callstack.go:421–432  ·  view source on GitHub ↗

CallsiteInsns returns callsite assembly opcodes for leading/trailing bytes contained in each frame.

(pid uint32, leading bool)

Source from the content-addressed store, hash-verified

419// CallsiteInsns returns callsite assembly opcodes
420// for leading/trailing bytes contained in each frame.
421func (s Callstack) CallsiteInsns(pid uint32, leading bool) []string {
422 proc, err := windows.OpenProcess(windows.PROCESS_QUERY_INFORMATION|windows.PROCESS_VM_READ, false, pid)
423 if err != nil {
424 return nil
425 }
426 defer windows.Close(proc)
427 opcodes := make([]string, len(s))
428 for i, f := range s {
429 opcodes[i] = f.CallsiteAssembly(proc, leading)
430 }
431 return opcodes
432}

Callers 1

GetMethod · 0.80

Calls 2

CallsiteAssemblyMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected