gecko-dev/mozglue/misc
Toshihito Kikuchi 8b206d0aad Bug 1588245 - More values to DetourResultCode. r=mhowell
This is the third attempt to investigate the launcher failure of our detour.
The previous commits d8315e4ed18d and 1b81ea85c43d added the assembly bytes
of a detour target and a special error code `DetourResultCode` to the launcher
failure ping.

In the latest telemetry data, however, the most common value of `hresult`
is still `ERROR_UNIDENTIFIED_ERROR`, meaning the previous commit missed to
set an error code in the common fallible codepath we wanted to know.
Besides `ERROR_UNIDENTIFIED_ERROR`, we're seeing `DETOUR_PATCHER_DO_RESERVE_ERROR`
in the telemetry, but having that code is not enough to pinpoint a falling
operation.

For further investigation, this patch adds ten more values to `DetourResultCode`.
`FUNCHOOKCROSSPROCESS_COPYSTUB_ERROR` is the last codepath we forgot to cover
in the previous commit.  The values of `MMPOLICY_RESERVE_*` are to investigate
`DETOUR_PATCHER_DO_RESERVE_ERROR` in the MMPolicy level.  In both cases, we add
the last Windows error code to `DetourError::mOrigBytes`.

Differential Revision: https://phabricator.services.mozilla.com/D92974
2020-10-12 18:25:47 +00:00
..
decimal
interceptor Bug 1588245 - More values to DetourResultCode. r=mhowell 2020-10-12 18:25:47 +00:00
AutoProfilerLabel.cpp Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
AutoProfilerLabel.h Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
ConditionVariable_posix.cpp
ConditionVariable_windows.cpp
Debug.h
DynamicallyLinkedFunctionPtr.h
ImportDir.h Bug 1662560 - Always retrieve the imagebase of the child process's executable from a process handle. r=mhowell 2020-09-15 21:10:06 +00:00
MmapFaultHandler.cpp Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
MmapFaultHandler.h Bug 1223932 - delete guard object uses from the tree; r=jwalden 2020-07-30 14:22:38 +00:00
MutexPlatformData_posix.h
MutexPlatformData_windows.h
Mutex_posix.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-08-31 09:23:02 +00:00
Mutex_windows.cpp
NativeNt.h Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
PlatformConditionVariable.h
PlatformMutex.h
PreXULSkeletonUI.cpp Bug 1665453 - Poll for native events in between prefetching early dlls r=agashlin 2020-09-24 23:51:42 +00:00
PreXULSkeletonUI.h Bug 1665453 - Poll for native events in between prefetching early dlls r=agashlin 2020-09-24 23:51:42 +00:00
Printf.cpp
Printf.h
StackWalk.cpp Bug 1634205 - Support Gecko Profiler and Base Profiler on FreeBSD r=mstange 2020-05-06 17:44:19 +00:00
StackWalk.h Bug 1634205 - Support Gecko Profiler and Base Profiler on FreeBSD r=mstange 2020-05-06 17:44:19 +00:00
StackWalk_windows.h
TimeStamp.cpp
TimeStamp.h Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj 2020-03-28 16:00:09 +00:00
TimeStamp_darwin.cpp
TimeStamp_posix.cpp
TimeStamp_windows.cpp
TimeStamp_windows.h
WinUtils.h
WindowsDpiAwareness.h Bug 1665357 - Ensure DPI_AWARENESS_CONTEXT is defined r=mhowell 2020-09-16 20:14:40 +00:00
WindowsMapRemoteView.cpp
WindowsMapRemoteView.h
WindowsProcessMitigations.cpp Bug 1509748 - Do not touch ntdll's PE header directly if EAF+ is enabled. r=mhowell,mstange 2020-05-27 21:48:35 +00:00
WindowsProcessMitigations.h Bug 1509748 - Do not touch ntdll's PE header directly if EAF+ is enabled. r=mhowell,mstange 2020-05-27 21:48:35 +00:00
WindowsUnicode.cpp
WindowsUnicode.h
moz.build Bug 1665453 - Rename EarlyBlankWindow to PreXULSkeletonUI r=agashlin 2020-09-24 14:25:56 +00:00
nsWindowsDllInterceptor.h Bug 1588245 - More values to DetourResultCode. r=mhowell 2020-10-12 18:25:47 +00:00