cloudbase / wnbd

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

Add new logging facilities and the ability to install and uninstall the driver via client #29

Closed aserdean closed 3 years ago

aserdean commented 3 years ago

This PR adds two new logging facilities: one for WPP and one for ETW.

WPP tracing is enabled only on Debug builds for the moment and different tools can be used used to capture its output.

ETW tracing is enabled on all builds. To start a ETW 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

The reinstall.ps1 script has been updated to install and remove our defined events.

Two new commands are added to wnbd-client: install-driver <InfFileLocation> and uninstall-driver.

The predefined hardware ID used for installation and lookup is root\wnbd.

When using the uninstall command please note that the OEM information is also marked for removal.

aserdean commented 3 years ago

This PR has been superseded.