| Index: base/win/event_trace_provider.h
|
| diff --git a/base/win/event_trace_provider.h b/base/win/event_trace_provider.h
|
| index 7907347b72451607bba2e026b6550e1f457d0e4e..4107ed3c6845dcf79b67aeb3f7f48918928175f7 100644
|
| --- a/base/win/event_trace_provider.h
|
| +++ b/base/win/event_trace_provider.h
|
| @@ -43,6 +43,14 @@ template <size_t N> class EtwMofEvent: public EtwMofEventBase<N> {
|
| memset(static_cast<Super*>(this), 0, sizeof(Super));
|
| }
|
|
|
| + EtwMofEvent(const EtwEventClass& event_class, EtwEventLevel level) {
|
| + memset(static_cast<Super*>(this), 0, sizeof(Super));
|
| + header.Size = sizeof(Super);
|
| + header.Guid = event_class;
|
| + header.Class.Level = level;
|
| + header.Flags = WNODE_FLAG_TRACED_GUID | WNODE_FLAG_USE_MOF_PTR;
|
| + }
|
| +
|
| EtwMofEvent(const EtwEventClass& event_class, EtwEventType type,
|
| EtwEventLevel level) {
|
| memset(static_cast<Super*>(this), 0, sizeof(Super));
|
| @@ -64,6 +72,10 @@ template <size_t N> class EtwMofEvent: public EtwMofEventBase<N> {
|
| header.Flags = WNODE_FLAG_TRACED_GUID | WNODE_FLAG_USE_MOF_PTR;
|
| }
|
|
|
| + void SetType(EtwEventType type) {
|
| + header.Class.Type = type;
|
| + }
|
| +
|
| void SetField(int field, size_t size, const void *data) {
|
| // DCHECK(field < N);
|
| if ((field < N) && (size <= kuint32max)) {
|
|
|