-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPerfMetaOptions.cs
123 lines (101 loc) · 3.21 KB
/
PerfMetaOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Microsoft.LinuxTracepoints.Decode
{
using FlagsAttribute = System.FlagsAttribute;
/// <summary>
/// Options for the "meta" suffix generated by the <c>AppendJsonEventMetaTo</c>
/// method of <see cref="EventHeaderEventInfo"/>, <see cref="PerfSampleEventInfo"/>,
/// and <see cref="PerfNonSampleEventInfo"/>.
/// </summary>
[Flags]
public enum PerfMetaOptions : uint
{
/// <summary>
/// disable the "meta" suffix.
/// </summary>
None = 0,
/// <summary>
/// Event identity, "n":"provider:event" before the user fields (not in the suffix).
/// This flag is not used by AppendJsonEventMetaTo, but may be used by the caller to
/// track whether the caller wants to add the "n" field to the event.
/// </summary>
N = 0x1,
/// <summary>
/// timestamp.
/// </summary>
Time = 0x2,
/// <summary>
/// cpu index.
/// </summary>
Cpu = 0x4,
/// <summary>
/// process id.
/// </summary>
Pid = 0x8,
/// <summary>
/// thread id (only if different from Pid).
/// </summary>
Tid = 0x10,
/// <summary>
/// eventheader id (decimal integer, omitted if 0).
/// </summary>
Id = 0x20,
/// <summary>
/// eventheader version (decimal integer, omitted if 0).
/// </summary>
Version = 0x40,
/// <summary>
/// eventheader level (decimal integer, omitted if 0).
/// </summary>
Level = 0x80,
/// <summary>
/// eventheader keyword (hexadecimal string, omitted if 0).
/// </summary>
Keyword = 0x100,
/// <summary>
/// eventheader opcode (decimal integer, omitted if 0).
/// </summary>
Opcode = 0x200,
/// <summary>
/// eventheader tag (hexadecimal string, omitted if 0).
/// </summary>
Tag = 0x400,
/// <summary>
/// eventheader activity ID (UUID string, omitted if not set).
/// </summary>
Activity = 0x800,
/// <summary>
/// eventheader related activity ID (UUID string, omitted if not set).
/// </summary>
RelatedActivity = 0x1000,
/// <summary>
/// provider name or system name (string).
/// </summary>
Provider = 0x10000,
/// <summary>
/// event name or tracepoint name (string).
/// </summary>
Event = 0x20000,
/// <summary>
/// eventheader provider options (string, omitted if none).
/// </summary>
Options = 0x40000,
/// <summary>
/// eventheader flags (hexadecimal string).
/// </summary>
Flags = 0x80000,
/// <summary>
/// Include the common_* fields before the user fields.
/// </summary>
Common = 0x100000,
/// <summary>
/// Include n..relatedActivity.
/// </summary>
Default = 0xffff,
/// <summary>
/// All flags set.
/// </summary>
All = ~0u
}
}