How to start a trace session with driver install

Hi, all

I have a storport miniport driver, and use WPP as the trace.
Now I can manually start the trace session by using “logman create trace
…” command.

I want to find a effective way to meet the following request:

  1. after driver install, the trace session will start automatically without
    restart the OS;
  2. when the OS is restarted, the trace session can automatically start.

Autologger can meet the second request, but it need a restart after

Hope you can give some suggestions. thanks!

Best regards,
David Zeng