|
Hi,
I' trying to track file write io for certain files in a given directory.
The FileIoWrite events occur properly, but its not possible to lookup for the filenames, since the lookup table does not contain either the FileObject nor the FileKey.
It seems like the events are simply not provided by the session. How can i enable them? Even when I enable "All" keywords, im not receiving ANY name events.
It is a realtime session:
KernelSession = new TraceEventSession(
KernelTraceEventParser.KernelSessionName, null);
KernelSource = new ETWTraceEventSource(
KernelTraceEventParser.KernelSessionName, TraceEventSourceType.Session);
KernelParser = new KernelTraceEventParser(
KernelSource);
...
KernelSession.StopOnDispose = true;
KernelSession.EnableKernelProvider(
KernelTraceEventParser.Keywords.FileIO |
KernelTraceEventParser.Keywords.FileIOInit |
KernelTraceEventParser.Keywords.Thread);
SourceProcessor = Task.Factory.StartNew(() =>
KernelSource.Process());
|