src/Microsoft.Diagnostics.Runtime/Linux/Structs/ElfPRStatusArm64.cs (28 lines of code) (raw):

// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; namespace Microsoft.Diagnostics.Runtime.Utilities { [StructLayout(LayoutKind.Sequential, Pack = 1)] internal struct ElfPRStatusArm64 : IElfPRStatus { public ElfSignalInfo SignalInfo; public short CurrentSignal; private readonly ushort Padding; public ulong SignalsPending; public ulong SignalsHeld; public uint Pid; public uint PPid; public uint PGrp; public uint Sid; public TimeVal64 UserTime; public TimeVal64 SystemTime; public TimeVal64 CUserTime; public TimeVal64 CSystemTime; public RegSetArm64 RegisterSet; public int FPValid; public uint ProcessId => PGrp; public uint ThreadId => Pid; public bool CopyRegistersAsContext(Span<byte> context) => RegisterSet.CopyContext(context); } }