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

Method Get

pkg/filter/accessor_windows.go:1318–1355  ·  view source on GitHub ↗
(f Field, e *event.Event)

Source from the content-addressed store, hash-verified

1316}
1317
1318func (*threadpoolAccessor) Get(f Field, e *event.Event) (params.Value, error) {
1319 switch f.Name {
1320 case fields.ThreadpoolPoolID:
1321 return e.GetParamAsString(params.ThreadpoolPoolID), nil
1322 case fields.ThreadpoolTaskID:
1323 return e.GetParamAsString(params.ThreadpoolTaskID), nil
1324 case fields.ThreadpoolCallbackAddress:
1325 return e.GetParamAsString(params.ThreadpoolCallback), nil
1326 case fields.ThreadpoolCallbackSymbol:
1327 return e.GetParamAsString(params.ThreadpoolCallbackSymbol), nil
1328 case fields.ThreadpoolCallbackModule:
1329 return e.GetParamAsString(params.ThreadpoolCallbackModule), nil
1330 case fields.ThreadpoolCallbackContext:
1331 return e.GetParamAsString(params.ThreadpoolContext), nil
1332 case fields.ThreadpoolCallbackContextRip:
1333 return e.GetParamAsString(params.ThreadpoolContextRip), nil
1334 case fields.ThreadpoolCallbackContextRipSymbol:
1335 return e.GetParamAsString(params.ThreadpoolContextRipSymbol), nil
1336 case fields.ThreadpoolCallbackContextRipModule:
1337 return e.GetParamAsString(params.ThreadpoolContextRipModule), nil
1338 case fields.ThreadpoolSubprocessTag:
1339 return e.GetParamAsString(params.ThreadpoolSubprocessTag), nil
1340 case fields.ThreadpoolTimer:
1341 return e.GetParamAsString(params.ThreadpoolTimer), nil
1342 case fields.ThreadpoolTimerSubqueue:
1343 return e.GetParamAsString(params.ThreadpoolTimerSubqueue), nil
1344 case fields.ThreadpoolTimerDuetime:
1345 return e.Params.GetUint64(params.ThreadpoolTimerDuetime)
1346 case fields.ThreadpoolTimerPeriod:
1347 return e.Params.GetUint32(params.ThreadpoolTimerPeriod)
1348 case fields.ThreadpoolTimerWindow:
1349 return e.Params.GetUint32(params.ThreadpoolTimerWindow)
1350 case fields.ThreadpoolTimerAbsolute:
1351 return e.Params.GetBool(params.ThreadpoolTimerAbsolute)
1352 }
1353
1354 return nil, nil
1355}

Callers

nothing calls this directly

Calls 4

GetParamAsStringMethod · 0.80
GetUint64Method · 0.80
GetUint32Method · 0.80
GetBoolMethod · 0.80

Tested by

no test coverage detected