[Bug 43161] PresentMon v1.x needs advapi32.OpenTrace semi-stub/ implementation

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jun 12 10:11:12 CDT 2017


https://bugs.winehq.org/show_bug.cgi?id=43161

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net
            Summary|PresentMon fails to run     |PresentMon v1.x needs
                   |                            |advapi32.OpenTrace
                   |                            |semi-stub/implementation
           Keywords|                            |source

--- Comment #2 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

refining some fields.

app source code: https://github.com/GameTechDev/PresentMon

https://github.com/GameTechDev/PresentMon/blob/master/source/TraceSession.cpp#L89

--- 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#l857

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

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list