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

Function MaxTypeID

pkg/event/metainfo_windows.go:250–257  ·  view source on GitHub ↗

MaxTypeID returns the maximum event type (hook id) value.

()

Source from the content-addressed store, hash-verified

248
249// MaxTypeID returns the maximum event type (hook id) value.
250func MaxTypeID() uint16 {
251 types := AllWithState()
252 ids := make([]uint16, len(types))
253 for i, t := range types {
254 ids[i] = t.HookID()
255 }
256 return slices.Max(ids)
257}
258
259// TypeToEventInfo maps the event type to the structure storing detailed information about the event.
260func TypeToEventInfo(typ Type) Info {

Callers 1

SetBitMethod · 0.85

Calls 2

AllWithStateFunction · 0.85
HookIDMethod · 0.45

Tested by

no test coverage detected