https://bugs.winehq.org/show_bug.cgi?id=43161
Bug ID: 43161 Summary: PresentMon fails to run Product: Wine Version: 2.10 Hardware: x86 URL: https://github.com/GameTechDev/PresentMon/releases/tag /v1.1.2 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: advapi32 Assignee: wine-bugs@winehq.org Reporter: the.ideals@gmail.com Distribution: ---
Created attachment 58415 --> https://bugs.winehq.org/attachment.cgi?id=58415 wine log
error: failed to open trace.
sha1sum PresentMon32-v1.1.2.exe 62baf19dbaaeea1421d3181b9b62dc6d9db7e123 PresentMon32-v1.1.2.exe
du -sh PresentMon32-v1.1.2.exe 348K PresentMon32-v1.1.2.exe
https://bugs.winehq.org/show_bug.cgi?id=43161
John the.ideals@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |43084 Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=43161
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #1 from Austin English austinenglish@gmail.com --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=43161
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Summary|PresentMon fails to run |PresentMon v1.x needs | |advapi32.OpenTrace | |semi-stub/implementation Keywords| |source
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
refining some fields.
app source code: https://github.com/GameTechDev/PresentMon
https://github.com/GameTechDev/PresentMon/blob/master/source/TraceSession.cp...
--- snip --- ... // Open trace EVENT_TRACE_LOGFILEA loggerInfo = {};
loggerInfo.ProcessTraceMode = PROCESS_TRACE_MODE_EVENT_RECORD | PROCESS_TRACE_MODE_RAW_TIMESTAMP; loggerInfo.BufferCallback = BufferCallback; loggerInfo.EventRecordCallback = EventRecordCallback; loggerInfo.Context = session;
if (realtime) { loggerInfo.LoggerName = (LPSTR) name; loggerInfo.ProcessTraceMode |= PROCESS_TRACE_MODE_REAL_TIME; } else { loggerInfo.LogFileName = (LPSTR) name; }
session->traceHandle_ = OpenTraceA(&loggerInfo); if (session->traceHandle_ == INVALID_PROCESSTRACE_HANDLE) { fprintf(stderr, "error: failed to open trace"); auto lastError = GetLastError(); switch (lastError) { ... --- snip ---
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/advapi32/eventlog.c#l...
Not sure what the purpose of this ticket is...
Even with that API function implemented the app won't be useful for a long time unless Wine actually implements Event Tracing for Windows (ETW) *and* various components (DXGI, D3D9, optionally DXGK, Win32k, DWM) actually emit trace events.
Regards
https://bugs.winehq.org/show_bug.cgi?id=43161
--- Comment #3 from John the.ideals@gmail.com --- (In reply to Austin English from comment #1)
Confirming.
Thanks for adding the tdh stub dll.
(In reply to Anastasius Focht from comment #2)
Not sure what the purpose of this ticket is...
Even with that API function implemented the app won't be useful for a long time unless Wine actually implements Event Tracing for Windows (ETW) *and* various components (DXGI, D3D9, optionally DXGK, Win32k, DWM) actually emit trace events.
I accept the above. Thanks for the breakdown. I'm working on the similar premise to msvbvm60.dll and mfc42.dll. Valid requests but no plans to implement.
https://bugs.winehq.org/show_bug.cgi?id=19816#c3 https://bugs.winehq.org/show_bug.cgi?id=657#c73