MCPcopy Create free account

hub / github.com/bi-zone/etw / functions

Functions70 in github.com/bi-zone/etw

↓ 9 callersMethodwaitForSignal
waitForSignal waits for anything on @done no longer than @deadline. Fails test run if deadline exceeds.
session_test.go:269
↓ 8 callersFunctionNewSession
NewSession creates a Windows event tracing session instance. Session with no options provided is a usable session, but it could be a bit noisy. It's r
session.go:83
↓ 7 callersMethodClose
Close stops trace session and frees associated resources.
session.go:146
↓ 5 callersMethodProcess
Process starts processing of ETW events. Events will be passed to @cb synchronously and sequentially. Take a look to EventCallback documentation for m
session.go:115
↓ 5 callersMethodtrySignal
trySignal tries to send a signal to @done if it's ready to receive. @done expected to be a buffered channel.
session_test.go:260
↓ 4 callersMethodgenerateEvents
We have no easy way to ensure that etw session is started and ready to process events, so it seems easier to just flood an events and catch some of th
session_test.go:281
↓ 4 callersFunctionwindowsGUIDToGo
(guid C.GUID)
event.go:487
↓ 3 callersMethodError
()
session.go:42
↓ 3 callersMethodEventProperties
EventProperties returns a map that represents events-specific data provided by event producer. Returned data depends on the provider, event type and e
event.go:96
↓ 3 callersFunctionWithLevel
WithLevel specifies a maximum level consumer is interested in. Higher levels imply that you get lower levels as well. For example, with TRACE_LEVEL_ER
options.go:77
↓ 3 callersFunctionWithName
WithName specifies a provided @name for the creating session. Further that session could be controlled from other processed by it's name, so it should
options.go:68
↓ 2 callersFunctionGetPropertyName
Returns ULONGLONG instead of string pointer cos event data descriptor expects exactly that type.
session.c:100
↓ 2 callersFunctioncreateUTF16String
Creates UTF16 string from raw parts. Actually in go we have no way to make a slice from raw parts, ref: - https://github.com/golang/go/issues/13656 -
event.go:517
↓ 2 callersMethodfree
free frees associated PTRACE_EVENT_INFO if any assigned.
event.go:309
↓ 2 callersFunctiongetLengthFromProperty
session.c:25
↓ 2 callersMethodgetPropertyName
getPropertyName returns a name of the @i-th event property.
event.go:316
↓ 2 callersMethodgetPropertyValue
getPropertyValue retrieves a value of @i-th property. N.B. getPropertyValue HIGHLY depends not only on @i but also on memory offsets, so check twice
event.go:326
↓ 2 callersMethodsubscribeToProvider
subscribeToProvider wraps EnableTraceEx2 with EVENT_CONTROL_CODE_ENABLE_PROVIDER.
session.go:251
↓ 1 callersMethodExtendedInfo
ExtendedInfo extracts ExtendedEventInfo structure from native buffers of received event record. If no ExtendedEventInfo is available inside an event
event.go:162
↓ 1 callersFunctionKillSession
KillSession forces the session with a given @name to stop. Don't having a session handle we can't shutdown it gracefully unsubscribing from all the pr
session.go:165
↓ 1 callersMethodUpdateOptions
UpdateOptions changes subscription parameters in runtime. The only option that can't be updated is session name. To change session name -- stop and re
session.go:135
↓ 1 callersMethodcreateETWSession
createETWSession wraps StartTraceW.
session.go:210
↓ 1 callersFunctioneventDescriptorToGo
(descriptor C.EVENT_DESCRIPTOR)
session.go:452
↓ 1 callersFunctioneventHeaderToGo
(header C.EVENT_HEADER)
session.go:436
↓ 1 callersFunctionfreeCallbackKey
(key uintptr)
session.go:411
↓ 1 callersFunctiongetEventInformation
getEventInformation wraps TdhGetEventInformation. It extracts some kind of simplified event information used by Tdh* family of function. Returned inf
event.go:283
↓ 1 callersFunctiongetMapInfo
getMapInfo retrieve the mapping between the @i-th field and the structure it represents. If that mapping exists, function extracts it and returns a po
event.go:455
↓ 1 callersFunctionhandleEvent
handleEvent is exported to guarantee C calling convention (cdecl). The function should be defined here but would be linked and used inside C code in
session.go:421
↓ 1 callersFunctionnewCallbackKey
newCallbackKey stores a @ptr inside a global storage returning its' key. After use the key should be freed using `freeCallbackKey`.
session.go:404
↓ 1 callersFunctionnewPropertyParser
(r C.PEVENT_RECORD)
event.go:258
↓ 1 callersMethodparseExtendedInfo
()
event.go:172
↓ 1 callersMethodparseSimpleType
parseSimpleType wraps TdhFormatProperty to get rendered to string value of @i-th event property.
event.go:387
↓ 1 callersMethodparseStruct
parseStruct tries to extract fields of embedded structure at property @i.
event.go:360
↓ 1 callersMethodprocessEvents
processEvents subscribes to the actual provider events and starts its processing.
session.go:319
↓ 1 callersFunctionrandomName
()
session.go:377
↓ 1 callersFunctionstampToTime
stampToTime translates FileTime to a golang time. Same as in standard packages.
event.go:501
↓ 1 callersMethodstopSession
stopSession wraps ControlTraceW with EVENT_TRACE_CONTROL_STOP.
session.go:353
↓ 1 callersMethodunsubscribeFromProvider
unsubscribeFromProvider wraps EnableTraceEx2 with EVENT_CONTROL_CODE_DISABLE_PROVIDER.
session.go:290
FunctionGetAddress32
session.c:168
FunctionGetAddress64
session.c:172
FunctionGetArraySize
https://docs.microsoft.com/ru-ru/windows/win32/etw/using-tdhformatproperty-to-consume-event-data
session.c:37
FunctionGetDataPtr
session.c:160
FunctionGetDataSize
session.c:164
FunctionGetExtType
session.c:156
FunctionGetInType
session.c:104
FunctionGetKernelTime
session.c:144
FunctionGetMapName
session.c:112
FunctionGetOutType
session.c:108
FunctionGetProcessorTime
session.c:152
FunctionGetPropertyLength
GetPropertyLength returns an associated length of the @j-th property of @pInfo. If the length is available, retrieve it here. In some cases, the lengt
session.c:60
FunctionGetStructLastIndex
session.c:135
FunctionGetStructStartIndex
session.c:131
FunctionGetTimeStamp
session.c:140
FunctionGetUserTime
session.c:148
MethodHasCPUTime
HasCPUTime returns true if the event has separate UserTime and KernelTime measurements. Otherwise the value of UserTime and KernelTime is meaningless
event.go:54
FunctionOpenTraceHelper
OpenTraceHelper helps to access EVENT_TRACE_LOGFILEW union fields and pass pointer to C not warning CGO checker.
session.c:15
FunctionPropertyIsArray
Determine whether the property is an array. The property is an array if the EVENT_PROPERTY_INFO.Flags member is set to PropertyParamCount or the EVENT
session.c:125
FunctionPropertyIsStruct
session.c:116
MethodSetupTest
()
session_test.go:32
MethodTearDownTest
()
session_test.go:42
MethodTestEventOutsideCallback
TestEventOutsideCallback ensures *etw.Event can't be used outside EventCallback.
session_test.go:222
MethodTestKillSession
TestKillSession ensures that we are able to force kill the lost session using only its name.
session_test.go:197
MethodTestParsing
TestParsing ensures that etw.Session is able to parse events with all common field types.
session_test.go:134
FunctionTestSession
(t *testing.T)
session_test.go:19
MethodTestSmoke
TestSmoke ensures that etw.Session is working as expected: it could start, process incoming events and stop properly.
session_test.go:49
MethodTestUpdating
TestUpdating ensures that etw.Session is able to update its properties in runtime.
session_test.go:82
FunctionWithMatchKeywords
WithMatchKeywords allows to specify keywords of receiving events. Each event has a set of keywords associated with it. That keywords are encoded as bi
options.go:93
FunctionWithProperty
WithProperty enables additional provider feature toggled by @p. Subsequent WithProperty options will enable all provided options. For more info about
options.go:106
Functionmain
()
examples/tracer/main.go:20
FunctionstdcallHandleEvent
session.c:9