-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
2,273 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[*.cs] | ||
generated_code = true |
6 changes: 6 additions & 0 deletions
6
src/OpenTelemetry.Exporter.Geneva/External/LinuxTracepoints-Net/.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
24 changes: 24 additions & 0 deletions
24
src/OpenTelemetry.Exporter.Geneva/External/LinuxTracepoints-Net/Provider/DataSegment.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.