plugins-extra icon indicating copy to clipboard operation
plugins-extra copied to clipboard

can processhacker plugin support individual file op ?

Open yangjian123 opened this issue 4 years ago • 6 comments

I am a heavy user of processhack, sometimes i need to analysis file operation(read,write), Hope processhack can have such a plugin

yangjian123 avatar Dec 09 '20 11:12 yangjian123

https://github.com/processhacker/processhacker/issues/749

dmex avatar Dec 09 '20 11:12 dmex

hi, dmex, do you know why EventRecord->EventHeader->ProcessId and EventRecord->EventHeader->ThreadId always -1 in windows7 on file io event . i modify the etwmon.c code as below, and the question still exist, can dmex have idea about this?

` EtpTraceProperties->Wnode.BufferSize = bufferSize;

    EtpTraceProperties->Wnode.Guid = *EtpActualSessionGuid;

    EtpTraceProperties->Wnode.ClientContext = 1;

    EtpTraceProperties->Wnode.Flags = WNODE_FLAG_TRACED_GUID;

    EtpTraceProperties->MinimumBuffers = 1;

    EtpTraceProperties->LogFileMode = EVENT_TRACE_REAL_TIME_MODE;

    EtpTraceProperties->FlushTimer = 1;

    EtpTraceProperties->EnableFlags = EVENT_TRACE_FLAG_DISK_IO | EVENT_TRACE_FLAG_DISK_FILE_IO | EVENT_TRACE_FLAG_NETWORK_TCPIP|EVENT_TRACE_FLAG_FILE_IO| EVENT_TRACE_FLAG_FILE_IO_INIT| EVENT_TRACE_FLAG_PROCESS | EVENT_TRACE_FLAG_THREAD;

    EtpTraceProperties->LoggerNameOffset = sizeof(EVENT_TRACE_PROPERTIES);`

yangjian123 avatar Dec 11 '20 05:12 yangjian123

ThreadId always -1

You ignore these for the ID included in the event message.

dmex avatar Dec 11 '20 06:12 dmex

where can we get the correct process id and threadid? can dmex supply some helps ?

yangjian123 avatar Dec 11 '20 06:12 yangjian123

The kernel generally returns files to the application from cache not disk. components like superfetch speculatively load files before the process is created so when the ID is zero you default to processId 4 for system.

dmex avatar Dec 12 '20 08:12 dmex

hi,dmex,do you have any update?

yangjian123 avatar Jan 10 '21 06:01 yangjian123