137 references to PlatformArchitecture
datacollector (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43
public static string ProcDumpFileName(
PlatformArchitecture
architecture) =>
46
PlatformArchitecture
.X86 => "procdump.exe",
47
PlatformArchitecture
.ARM64 => "procdump64a.exe",
54
var
targetProcessArchitecture = _environment.Architecture;
61
var
targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId);
65
public bool TryGetProcDumpExecutable(
PlatformArchitecture
architecture, out string path)
datacollector.arm64 (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43
public static string ProcDumpFileName(
PlatformArchitecture
architecture) =>
46
PlatformArchitecture
.X86 => "procdump.exe",
47
PlatformArchitecture
.ARM64 => "procdump64a.exe",
54
var
targetProcessArchitecture = _environment.Architecture;
61
var
targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId);
65
public bool TryGetProcDumpExecutable(
PlatformArchitecture
architecture, out string path)
Microsoft.TestPlatform.CoreUtilities (25)
Helpers\DotnetHostHelper.cs (24)
129
PlatformArchitecture
targetArchitecture,
175
targetArchitecture ==
PlatformArchitecture
.X86 && _environment.OperatingSystem == PlatformOperatingSystem.Windows)
262
if ((_environment.Architecture ==
PlatformArchitecture
.X64 || _environment.Architecture ==
PlatformArchitecture
.ARM64) &&
263
targetArchitecture ==
PlatformArchitecture
.X86)
270
muxerPath = _environment.Architecture ==
PlatformArchitecture
.ARM64 && targetArchitecture ==
PlatformArchitecture
.X64
280
muxerPath = _environment.Architecture ==
PlatformArchitecture
.ARM64 && targetArchitecture ==
PlatformArchitecture
.X64
311
private string? GetMuxerFromGlobalRegistrationWin(
PlatformArchitecture
targetArchitecture)
344
private string? GetMuxerFromGlobalRegistrationOnUnix(
PlatformArchitecture
targetArchitecture)
380
private
PlatformArchitecture
? GetMuxerArchitectureByPEHeaderOnWin(string path)
389
return
PlatformArchitecture
.X64;
391
return
PlatformArchitecture
.X64;
393
return
PlatformArchitecture
.ARM64;
395
return
PlatformArchitecture
.ARM;
397
return
PlatformArchitecture
.X86;
412
private
PlatformArchitecture
? GetMuxerArchitectureByMachoOnMac(string path)
433
PlatformArchitecture
? architecture = (MacOsCpuType)cpuInfo switch
435
MacOsCpuType.Arm64Magic or MacOsCpuType.Arm64Cigam =>
PlatformArchitecture
.ARM64,
436
MacOsCpuType.X64Magic or MacOsCpuType.X64Cigam =>
PlatformArchitecture
.X64,
437
MacOsCpuType.X86Magic or MacOsCpuType.X86Cigam =>
PlatformArchitecture
.X86,
483
private bool IsValidArchitectureMuxer(
PlatformArchitecture
targetArchitecture, string path)
485
PlatformArchitecture
? muxerPlatform = null;
Helpers\Interfaces\IDotnetHostHelper.cs (1)
35
PlatformArchitecture
targetArchitecture,
Microsoft.TestPlatform.CrossPlatEngine (1)
DataCollection\DefaultDataCollectionLauncher.cs (1)
62
string dataCollectorProcessName = _processHelper.GetCurrentProcessArchitecture() ==
PlatformArchitecture
.ARM64
Microsoft.TestPlatform.Extensions.BlameDataCollector (11)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43
public static string ProcDumpFileName(
PlatformArchitecture
architecture) =>
46
PlatformArchitecture
.X86 => "procdump.exe",
47
PlatformArchitecture
.ARM64 => "procdump64a.exe",
54
var
targetProcessArchitecture = _environment.Architecture;
61
var
targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId);
65
public bool TryGetProcDumpExecutable(
PlatformArchitecture
architecture, out string path)
WindowsHangDumper.cs (5)
119
var
currentProcessArchitecture = processHelper.GetCurrentProcessArchitecture();
120
var
targetProcessArchitecture = processHelper.GetProcessArchitecture(process.Id);
131
PlatformArchitecture
.X86 => "DumpMinitool.x86.exe",
132
PlatformArchitecture
.X64 => "DumpMinitool.exe",
133
PlatformArchitecture
.ARM64 => "DumpMinitool.arm64.exe",
Microsoft.TestPlatform.PlatformAbstractions (33)
common\System\ProcessHelper.cs (3)
321
var
osArchitecture = new PlatformEnvironment().Architecture;
322
return osArchitecture is
PlatformArchitecture
.ARM or
PlatformArchitecture
.ARM64
Interfaces\System\IEnvironment.cs (1)
14
PlatformArchitecture
Architecture { get; }
Interfaces\System\IProcessHelper.cs (2)
69
PlatformArchitecture
GetCurrentProcessArchitecture();
75
PlatformArchitecture
GetProcessArchitecture(int processId);
net462\System\ProcessHelper.cs (9)
52
public
PlatformArchitecture
GetProcessArchitecture(int processId)
76
return
PlatformArchitecture
.X86;
86
return
PlatformArchitecture
.ARM64;
90
return
PlatformArchitecture
.X64;
95
return
PlatformArchitecture
.X64;
111
return
PlatformArchitecture
.X86;
126
return isWow64 ?
PlatformArchitecture
.X86 :
PlatformArchitecture
.X64;
131
return
PlatformArchitecture
.X64;
netcore\System\PlatformEnvironment.cs (9)
17
public
PlatformArchitecture
Architecture
23
System.Runtime.InteropServices.Architecture.X86 =>
PlatformArchitecture
.X86,
24
System.Runtime.InteropServices.Architecture.X64 =>
PlatformArchitecture
.X64,
25
System.Runtime.InteropServices.Architecture.Arm =>
PlatformArchitecture
.ARM,
26
System.Runtime.InteropServices.Architecture.Arm64 =>
PlatformArchitecture
.ARM64,
30
(Architecture)5 =>
PlatformArchitecture
.S390x,
31
(Architecture)6 =>
PlatformArchitecture
.LoongArch64,
32
(Architecture)8 =>
PlatformArchitecture
.Ppc64le,
33
(Architecture)9 =>
PlatformArchitecture
.RiscV64,
netcore\System\ProcessHelper.cs (9)
32
public
PlatformArchitecture
GetCurrentProcessArchitecture()
36
Architecture.X86 =>
PlatformArchitecture
.X86,
37
Architecture.X64 =>
PlatformArchitecture
.X64,
38
Architecture.Arm =>
PlatformArchitecture
.ARM,
39
Architecture.Arm64 =>
PlatformArchitecture
.ARM64,
43
(Architecture)5 =>
PlatformArchitecture
.S390x,
44
(Architecture)6 =>
PlatformArchitecture
.LoongArch64,
45
(Architecture)8 =>
PlatformArchitecture
.Ppc64le,
46
(Architecture)9 =>
PlatformArchitecture
.RiscV64,
Microsoft.TestPlatform.TestHostRuntimeProvider (32)
Hosting\DefaultTestHostManager.cs (9)
253
private static string GetTestHostName(Architecture architecture, Framework targetFramework,
PlatformArchitecture
processArchitecture)
290
PlatformArchitecture
.X86 => Architecture.X86,
291
PlatformArchitecture
.X64 => Architecture.X64,
292
PlatformArchitecture
.ARM => Architecture.ARM,
293
PlatformArchitecture
.ARM64 => Architecture.ARM64,
294
PlatformArchitecture
.S390x => Architecture.S390x,
295
PlatformArchitecture
.Ppc64le => Architecture.Ppc64le,
296
PlatformArchitecture
.RiscV64 => Architecture.RiscV64,
297
PlatformArchitecture
.LoongArch64 => Architecture.LoongArch64,
Hosting\DotnetTestHostManager.cs (23)
485
PlatformArchitecture
targetArchitecture = TranslateToPlatformArchitecture(_architecture);
498
PlatformArchitecture
finalTargetArchitecture = forceToX64 ?
PlatformArchitecture
.X64 : targetArchitecture;
640
PlatformArchitecture
TranslateToPlatformArchitecture(Architecture targetArchitecture)
645
return
PlatformArchitecture
.X86;
647
return
PlatformArchitecture
.X64;
649
return
PlatformArchitecture
.ARM;
651
return
PlatformArchitecture
.ARM64;
653
return
PlatformArchitecture
.S390x;
655
return
PlatformArchitecture
.Ppc64le;
657
return
PlatformArchitecture
.RiscV64;
659
return
PlatformArchitecture
.LoongArch64;
669
static bool IsSameArchitecture(Architecture targetArchitecture,
PlatformArchitecture
platformAchitecture)
672
Architecture.X86 => platformAchitecture ==
PlatformArchitecture
.X86,
673
Architecture.X64 => platformAchitecture ==
PlatformArchitecture
.X64,
674
Architecture.ARM => platformAchitecture ==
PlatformArchitecture
.ARM,
675
Architecture.ARM64 => platformAchitecture ==
PlatformArchitecture
.ARM64,
676
Architecture.S390x => platformAchitecture ==
PlatformArchitecture
.S390x,
677
Architecture.Ppc64le => platformAchitecture ==
PlatformArchitecture
.Ppc64le,
678
Architecture.RiscV64 => platformAchitecture ==
PlatformArchitecture
.RiscV64,
679
Architecture.LoongArch64 => platformAchitecture ==
PlatformArchitecture
.LoongArch64,
690
_platformEnvironment.Architecture ==
PlatformArchitecture
.ARM64 &&
698
_platformEnvironment.Architecture ==
PlatformArchitecture
.ARM64 &&
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
Utilities\XmlRunSettingsUtilities.cs (5)
30
var
arch = new PlatformEnvironment().Architecture;
34
PlatformArchitecture
.X64 => Architecture.X64,
35
PlatformArchitecture
.X86 => Architecture.X86,
36
PlatformArchitecture
.ARM64 => Architecture.ARM64,
37
PlatformArchitecture
.ARM => Architecture.ARM,
testhost (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43
public static string ProcDumpFileName(
PlatformArchitecture
architecture) =>
46
PlatformArchitecture
.X86 => "procdump.exe",
47
PlatformArchitecture
.ARM64 => "procdump64a.exe",
54
var
targetProcessArchitecture = _environment.Architecture;
61
var
targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId);
65
public bool TryGetProcDumpExecutable(
PlatformArchitecture
architecture, out string path)
testhost.arm64 (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43
public static string ProcDumpFileName(
PlatformArchitecture
architecture) =>
46
PlatformArchitecture
.X86 => "procdump.exe",
47
PlatformArchitecture
.ARM64 => "procdump64a.exe",
54
var
targetProcessArchitecture = _environment.Architecture;
61
var
targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId);
65
public bool TryGetProcDumpExecutable(
PlatformArchitecture
architecture, out string path)
testhost.x86 (6)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (6)
43
public static string ProcDumpFileName(
PlatformArchitecture
architecture) =>
46
PlatformArchitecture
.X86 => "procdump.exe",
47
PlatformArchitecture
.ARM64 => "procdump64a.exe",
54
var
targetProcessArchitecture = _environment.Architecture;
61
var
targetProcessArchitecture = _processHelper.GetProcessArchitecture(processId);
65
public bool TryGetProcDumpExecutable(
PlatformArchitecture
architecture, out string path)