Skip to content

Commit 3e4bd3c

Browse files
committed
Checkin LTTng driver to dump or save events on command line
1 parent e2b4747 commit 3e4bd3c

File tree

7 files changed

+548
-3
lines changed

7 files changed

+548
-3
lines changed

LTTngDriver/LttngDriver.csproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<PackageReference Include="Microsoft.Performance.SDK" Version="0.108.2" />
10+
<PackageReference Include="Microsoft.Performance.Toolkit.Engine" Version="0.108.2" />
11+
</ItemGroup>
12+
13+
<ItemGroup>
14+
<ProjectReference Include="..\Antlr4.Runtime\Antlr4.Runtime.dotnet.csproj" />
15+
<ProjectReference Include="..\CtfPlayback\CtfPlayback.csproj" />
16+
<ProjectReference Include="..\LttngCds\LttngCds.csproj" />
17+
<ProjectReference Include="..\LttngDataExtensions\LttngDataExtensions.csproj" />
18+
</ItemGroup>
19+
20+
</Project>

LTTngDriver/Program.Main.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
using System;
5+
6+
namespace LttngDriver
7+
{
8+
public sealed partial class Program
9+
{
10+
public static int Main(string[] args)
11+
{
12+
try
13+
{
14+
var p = new Program(args);
15+
return p.Run()
16+
? 0
17+
: -1;
18+
}
19+
catch (Exception e)
20+
{
21+
Console.Error.WriteLine(e);
22+
return e.HResult;
23+
}
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)