You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environments.Platform.X86 or Environments.Platform.X64=>4096,
30
+
Environments.Platform.Arm64=>0x100000000,
31
+
_ =>thrownewNotSupportedException($"{RuntimeInformation.GetCurrentPlatform()} is not supported")
32
+
};
33
+
thrownewNotSupportedException($"{System.Runtime.InteropServices.RuntimeInformation.OSDescription} is not supported");
34
+
}
35
+
36
+
privatestaticboolIsValidAddress(ulongaddress)
37
+
// -1 (ulong.MaxValue) address is invalid, and will crash the runtime in older runtimes. https://github.com/dotnet/runtime/pull/90794
38
+
// 0 is NULL and therefore never valid.
39
+
// Addresses less than the minimum virtual address are also invalid.
yieldreturnnewValidationError(true,$"{nameof(DisassemblyDiagnoser)} supports only .NET Core 3.0+",benchmark);
121
+
}
122
+
123
+
if(ptrace_scope.Value=="2")
124
+
{
125
+
yieldreturnnewValidationError(false,$"ptrace_scope is set to 2, {nameof(DisassemblyDiagnoser)} is going to work only if you run as sudo");
126
+
}
127
+
elseif(ptrace_scope.Value=="3")
128
+
{
129
+
yieldreturnnewValidationError(true,$"ptrace_scope is set to 3, {nameof(DisassemblyDiagnoser)} is not going to work");
130
+
}
128
131
}
129
132
}
133
+
elseif(!ShouldUseMonoDisassembler(benchmark))
134
+
{
135
+
yieldreturnnewValidationError(true,$"Only Windows and Linux are supported in DisassemblyDiagnoser without Mono. Current OS is {System.Runtime.InteropServices.RuntimeInformation.OSDescription}");
0 commit comments