Skip to content

Commit

Permalink
Merge branch 'main' into geneva-tfm
Browse files Browse the repository at this point in the history
  • Loading branch information
joegoldman2 authored Sep 30, 2024
2 parents 7111a2f + 68a25e8 commit 96d88eb
Show file tree
Hide file tree
Showing 18 changed files with 2,273 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs

root = true

###############################
# Core EditorConfig Options #
###############################
Expand Down
2 changes: 2 additions & 0 deletions src/OpenTelemetry.Exporter.Geneva/External/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.cs]
generated_code = true
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*.cs]
# Use DefaultDllImportSearchPaths attribute for P/Invokes
dotnet_diagnostic.CA5392.severity = none

# The ref modifier for argument corresponding to in parameter is equivalent to in. Consider using in instead.
dotnet_diagnostic.CS9191.severity = none
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#nullable enable

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Microsoft.LinuxTracepoints.Provider;

using System.Runtime.InteropServices;

/// <summary>
/// struct iovec, for use with calls to writev.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
internal unsafe struct DataSegment
{
public void* PinnedBase;
public nuint Length;

public DataSegment(void* pinnedBase, nuint length)
{
this.PinnedBase = pinnedBase;
this.Length = length;
}
}
Loading

0 comments on commit 96d88eb

Please sign in to comment.