12 instantiations of SessionMask
mscorlib (12)
system\diagnostics\eventing\eventsource.cs (12)
1491
m_curLiveSessions = new
SessionMask
(0);
2314
SessionMask etwSessions = new
SessionMask
();
2764
m_activityFilteringForETWEnabled = new
SessionMask
(0);
2765
m_curLiveSessions = new
SessionMask
(0);
4026
SessionMask m = new
SessionMask
();
5888
get { return new
SessionMask
(MASK); }
5894
return new
SessionMask
((uint)1 << perEventSourceSessionId);
5904
return new
SessionMask
((uint)(m >> SHIFT_SESSION_TO_KEYWORD));
5924
return new
SessionMask
(m1.m_mask | m2.m_mask);
5929
return new
SessionMask
(m1.m_mask & m2.m_mask);
5934
return new
SessionMask
(m1.m_mask ^ m2.m_mask);
5939
return new
SessionMask
(MASK & ~(m.m_mask));
58 references to SessionMask
mscorlib (58)
system\diagnostics\eventing\eventprovider.cs (2)
432
uint sessionIdBitMask = (uint)
SessionMask
.FromEventKeywords(unchecked((ulong)matchAllKeywords));
449
sessionList.Add(new SessionInfo(bitcount((uint)
SessionMask
.All)+1, etwSessionId));
system\diagnostics\eventing\eventsource.cs (56)
1216
SessionMask
etwSessions =
SessionMask
.All;
1239
long origKwd = unchecked((long)((ulong)m_eventData[eventId].Descriptor.Keywords & ~(
SessionMask
.All.ToEventKeywords())));
1269
long origKwd = unchecked((long)((ulong)m_eventData[eventId].Descriptor.Keywords & ~(
SessionMask
.All.ToEventKeywords())));
1411
internal void WriteStringToListener(EventListener listener, string msg,
SessionMask
m)
1413
Contract.Assert(listener == null || (uint)m == (uint)
SessionMask
.FromId(0));
1492
m_etwSessionIdMap = new EtwSession[
SessionMask
.MAX];
1948
SessionMask
etwSessions =
SessionMask
.All;
1967
long origKwd = unchecked((long)((ulong)m_eventData[eventId].Descriptor.Keywords & ~(
SessionMask
.All.ToEventKeywords())));
1994
long origKwd = unchecked((long)((ulong)m_eventData[eventId].Descriptor.Keywords & ~(
SessionMask
.All.ToEventKeywords())));
2312
unsafe private
SessionMask
GetEtwSessionMask(int eventId, Guid* childActivityID)
2314
SessionMask
etwSessions = new SessionMask();
2316
for (int i = 0; i <
SessionMask
.MAX; ++i)
2377
EventKeywords eventKeywords = unchecked((EventKeywords)((ulong)m_eventData[eventNum].Descriptor.Keywords & (~(
SessionMask
.All.ToEventKeywords()))));
2615
bool shouldReport = (commandArgs.perEventSourceSessionId > 0) && (commandArgs.perEventSourceSessionId <=
SessionMask
.MAX);
2676
Contract.Assert(commandArgs.perEventSourceSessionId >= -1 && commandArgs.perEventSourceSessionId <=
SessionMask
.MAX);
2703
commandArgs.perEventSourceSessionId +
SessionMask
.SHIFT_SESSION_TO_KEYWORD,
2704
sessionIdBit +
SessionMask
.SHIFT_SESSION_TO_KEYWORD));
2720
if (commandArgs.perEventSourceSessionId >= 0 && commandArgs.perEventSourceSessionId <
SessionMask
.MAX)
2722
commandArgs.Arguments["EtwSessionKeyword"] = (commandArgs.perEventSourceSessionId +
SessionMask
.SHIFT_SESSION_TO_KEYWORD).ToString(CultureInfo.InvariantCulture);
2758
for (int i = 0; i <
SessionMask
.MAX; ++i)
2768
for (int i = 0; i <
SessionMask
.MAX; ++i)
2832
SessionMask
m =
SessionMask
.FromId(commandArgs.perEventSourceSessionId);
2855
if (sessionIdBit <
SessionMask
.MAX)
2932
sessionKwd <
SessionMask
.SHIFT_SESSION_TO_KEYWORD ||
2933
sessionKwd >=
SessionMask
.SHIFT_SESSION_TO_KEYWORD +
SessionMask
.MAX)
2940
sessionIdBit = sessionKwd -
SessionMask
.SHIFT_SESSION_TO_KEYWORD;
2955
for (int sessId = 0; sessId <
SessionMask
.MAX; ++sessId)
3658
unchecked((long)((ulong)eventAttribute.Keywords |
SessionMask
.All.ToEventKeywords())));
4002
private void ReportActivitySamplingInfo(EventListener listener,
SessionMask
sessions)
4004
Contract.Assert(listener == null || (uint)sessions == (uint)
SessionMask
.FromId(0));
4006
for (int perEventSourceSessionId = 0; perEventSourceSessionId <
SessionMask
.MAX; ++perEventSourceSessionId)
4026
SessionMask
m = new SessionMask();
4080
private
SessionMask
m_curLiveSessions; // the activity-tracing aware sessions' bits
4084
internal
SessionMask
m_activityFilteringForETWEnabled; // does THIS EventSource have activity filtering turned on for each ETW session
5875
public SessionMask(
SessionMask
m)
5881
public bool IsEqualOrSupersetOf(
SessionMask
m)
5886
public static
SessionMask
All
5891
public static
SessionMask
FromId(int perEventSourceSessionId)
5902
public static
SessionMask
FromEventKeywords(ulong m)
5922
public static
SessionMask
operator |(
SessionMask
m1,
SessionMask
m2)
5927
public static
SessionMask
operator &(
SessionMask
m1,
SessionMask
m2)
5932
public static
SessionMask
operator ^(
SessionMask
m1,
SessionMask
m2)
5937
public static
SessionMask
operator ~(
SessionMask
m)
5942
public static explicit operator ulong(
SessionMask
m)
5945
public static explicit operator uint(
SessionMask
m)