cloudbase / wnbd

Windows Ceph RBD NBD driver
GNU Lesser General Public License v2.1
58 stars 26 forks source link

Add etw support #40

Closed aserdean closed 3 years ago

aserdean commented 3 years ago

Add ETW support for the kernelspace.

For now, we define and use a single variable event which reuses the messages relayed via WnbdLog.

To install and remove the custom events we need to use the utility: wevtutil

To start a trace session one can use: tracelog -start WNBDEventdrv -guid #FFACC4E7-C115-4FE2-9D3C-80FAE73BAB91 -f WNBDEventdrv.etl To stop: tracelog -stop WNBDEventdrv To display the trace use: tracerpt WNBDEventdrv.etl

WNBD error and warning messages are automatically displayed inside the default SYSTEM channel.