Kevin Parsons
dac77d8a7c
etw: Fix panic when provider creation fails
...
There is a cleanup function deferred to remove the provider from the global
provider map. However, this function didn't bind the value of provider ahead of
time, so when the provider creation returned with nil for provider, we tried to
cleanup a nil provider, and panicked.
2019-04-19 10:43:53 -07:00
John Howard
84b4ab48a5
Merge pull request #125 from jstarks/listenpipe
...
pipe: Fix ListenPipe/DialPipe race
2019-04-08 10:36:21 -07:00
John Starks
bd71ef0e5d
pipe: Fix ListenPipe/DialPipe race
...
ListenPipe can fail if there is a concurrent DialPipe because there is a
race window where DialPipe can connect to the initial server named pipe
before it is connected to and closed by ListenPipe.
To fix this, use the lower-level NT API for creating the server pipe,
since this API allows for specifying that a server pipe should initially
be in the disconnected state instead of the listening state. This allows
us to avoid the race condition by creating the pipe in the correct state
initially, so there is no longer a need to create a dummy client
connection.
2019-04-08 10:08:23 -07:00
Kevin Parsons
b30741e1fe
Merge pull request #124 from kevpar/guid
...
Add guid package
2019-04-02 10:44:00 -07:00
Kevin Parsons
88da7d1491
Add guid package
2019-04-01 16:07:14 -07:00
Kevin Parsons
8710e5dda3
Merge pull request #123 from kevpar/etw-opcode
...
Add opcode support to etw package
2019-03-28 14:42:35 -07:00
Kevin Parsons
873693efb7
Add opcode support to etw package
2019-03-28 14:34:17 -07:00
Justin
812eb80041
Merge pull request #121 from sime1/context
...
add DialPipeContext
2019-03-26 11:52:53 -07:00
sime1
6e309c3584
remove newOpenError
2019-03-26 18:39:51 +01:00
sime1
498f830763
formatting, inline Dial returned error
2019-03-26 18:37:37 +01:00
sime1
693f74258b
context timeout test
2019-03-26 18:36:36 +01:00
Simeone
665a579a64
test context cancel error type
2019-03-26 10:10:46 +01:00
Simeone
b9aaa11ea0
errors coercion to pass the tests
2019-03-26 10:09:27 +01:00
Simeone
5fdbdcc2ae
add DialPipeContext
2019-03-26 09:43:43 +01:00
Kevin Parsons
dd3d7fa178
Merge pull request #120 from kevpar/etw-smart-field
...
Move smart ETW field logging to base etw library
2019-03-22 14:48:08 -07:00
Kevin Parsons
d39b93dec6
Merge pull request #119 from kevpar/fix-activity-id
...
Fix activity ID not being passed in ETW
2019-03-22 14:37:41 -07:00
Kevin Parsons
a132ab2270
Move smart ETW field logging to base etw library
2019-03-22 14:16:54 -07:00
Kevin Parsons
9ea416ec01
Fix activity ID not being passed in ETW
2019-03-22 11:11:18 -07:00
John Howard
c599b533b4
Merge pull request #117 from Microsoft/jjh/gvmga-take2
...
Fix GrantVmGroupAccess
2019-03-21 13:07:17 -07:00
John Howard
8df5952535
Fix GrantVmGroupAccess
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2019-03-21 12:32:46 -07:00
John Howard
cf4178e271
Merge pull request #116 from Microsoft/jjh/grantvmgroupaccess
...
Add GrantVmGroupAccess
2019-03-20 21:04:50 -07:00
John Howard
884f680ab9
Add GrantVmGroupAccess
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2019-03-20 19:35:27 -07:00
Justin
584c8d8bd8
Merge pull request #115 from kevpar/etw-logrus-pass-provider
...
Etw logrus pass provider
2019-03-19 11:13:27 -07:00
Justin
19a2e5edd7
Merge pull request #113 from kevpar/public-etw
...
Export etw package
2019-03-19 11:12:31 -07:00
Justin
a6c66acae5
Merge pull request #114 from kevpar/etw-logrus-level-map
...
Map Logrus level to standard ETW level
2019-03-19 09:55:57 -07:00
Kevin Parsons
811b34668c
Provide a hook constructor which accepts an ETW provider
...
Previously, the only constructor for the etwlogrus hook accepted a name, and
created a new ETW provider with that name. With this change, there is another
constructor which takes an already created ETW provider. This is to allow the
use of the ETW provider for other things, such as if the application wants to
support ETW capture state.
2019-03-19 00:09:35 -07:00
Kevin Parsons
b246ce4803
Map Logrus level to standard ETW level
...
ETW and Logrus have similar, but different definitiosn of log level.
Originally, the plan was to just convert the integer value of the Logrus level
to an ETW level, and leave it at that. However, it turns out there are tools
that assume you are logging with the standard set of ETW log level. So now we
will map the Logrus level to an ETW level, so that these tools better.
2019-03-19 00:01:56 -07:00
Kevin Parsons
ce5a3739bc
Export etw package
2019-03-18 23:57:19 -07:00
Kevin Parsons
063573a7d1
Reduce exported surface area of ETW package
2019-03-18 23:43:37 -07:00
Justin
4de24ed3e8
Merge pull request #111 from Microsoft/jjh/openvhd
...
Add OpenVirtualDisk to vhd library
2019-03-12 15:15:28 -07:00
Justin
66a446b3b5
Merge pull request #112 from CodeLingoBot/rewrite
...
Fix function comments based on best practices from Effective Go
2019-03-12 15:12:18 -07:00
John Howard
dcdaf955de
Add OpenVirtualDisk to vhd package
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2019-03-12 11:57:15 -07:00
CodeLingo Bot
ea6bc01ef5
Fix function comments based on best practices from Effective Go
...
Signed-off-by: CodeLingo Bot <bot@codelingo.io >
2019-03-11 00:56:50 +00:00
John Howard
1a8911d1ed
Merge pull request #110 from Microsoft/jjh/lineendings
...
Convert to Uix line endings
2019-02-21 09:35:31 -08:00
John Howard
c16103c642
Convert to UNix line endings
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2019-02-21 09:33:18 -08:00
Kevin Parsons
75bf6ca3d7
Merge pull request #108 from kevpar/etw-set-provider-info
...
Set ETW provider info so it's always treated as TraceLogging
2019-01-17 13:15:22 -08:00
Kevin Parsons
7dba96a333
Set ETW provider info so it's always treated as TraceLogging
...
Signed-off-by: Kevin Parsons <kevpar@ntdev.microsoft.com >
2019-01-17 10:45:50 -08:00
Justin
16cfc97580
Merge pull request #107 from Microsoft/etw_generator
...
Add a simple tool to generate provider ID's
2019-01-15 21:26:04 -08:00
Justin Terry (VM)
950c57133f
Add a simple tool to generate provider ID's
...
Also implements the Stringer interface for etw.Provider to output the ID
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com >
2019-01-15 15:56:17 -08:00
Justin
6c8aa416ae
Merge pull request #106 from kevpar/etw-moretypes
...
Support logging more Go types to ETW
2019-01-11 13:49:48 -08:00
Kevin Parsons
6e71d2839c
Add test cases for logging empty slices
...
Signed-off-by: Kevin Parsons <kevpar@ntdev.microsoft.com >
2019-01-11 12:22:02 -08:00
Kevin Parsons
515e920a0a
Support logging more Go types to ETW
...
Signed-off-by: Kevin Parsons <kevpar@ntdev.microsoft.com >
2019-01-10 11:08:01 -08:00
Kevin Parsons
a0ca357ef7
Merge pull request #104 from kevpar/etw-nofields
...
Support ETW events with no data fields
2019-01-08 12:25:37 -08:00
Kevin Parsons
b08043063d
Merge branch 'master' into etw-nofields
2019-01-08 11:28:28 -08:00
Kevin Parsons
f8ca910a3b
Merge pull request #105 from kevpar/etw-activityid
...
Support ETW activity ID
2019-01-08 11:23:21 -08:00
Kevin Parsons
1844c5213b
Support ETW activity ID
2019-01-07 16:01:46 -08:00
Kevin Parsons
e82c358c71
Support ETW events with no data fields
2019-01-07 15:49:09 -08:00
Kevin Parsons
763dedbc18
Merge pull request #103 from kevpar/etw
...
Add basic Go ETW implementation
2019-01-03 16:09:57 -08:00
Kevin Parsons
82fc62aed2
Return error from WriteEvent in Logrus hook
2019-01-03 16:08:24 -08:00
Kevin Parsons
d23783336b
Fix indices in provider name to ID
2019-01-03 14:57:37 -08:00