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

Method StackID

pkg/event/event_windows.go:257–262  ·  view source on GitHub ↗

StackID returns the integer that is used to stich the callstack present in the StackWalk event.

()

Source from the content-addressed store, hash-verified

255
256// StackID returns the integer that is used to stich the callstack present in the StackWalk event.
257func (e *Event) StackID() uint64 {
258 if e.IsCreateProcess() {
259 return uint64(e.Params.MustGetPpid() + e.Tid)
260 }
261 return uint64(e.PID + e.Tid)
262}
263
264// StackPID returns the process id as seen the creator
265// from the callstack execution perspective. For example,

Callers 6

TestStackwalkDecoratorFunction · 0.95
PushMethod · 0.80
PopMethod · 0.80
processEventMethod · 0.80

Calls 2

IsCreateProcessMethod · 0.95
MustGetPpidMethod · 0.80

Tested by 3

TestStackwalkDecoratorFunction · 0.76