Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Issue 1038453002: Add option to export tracing events to ETW. (Closed)

Created:
5 years, 9 months ago by Georges Khalil
Modified:
5 years, 8 months ago
CC:
chrisha, chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, gab, jam, James Su, tfarina, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add option to export tracing events to ETW. - Exporting of ETW events can be turned on using --trace-export-events-to-etw. BUG= Committed: https://crrev.com/1cc86c4f686869f32dfede093a07828c73563892 Cr-Commit-Position: refs/heads/master@{#324982} Committed: https://crrev.com/28ad5e6b1100a7f0d25a5e6741f7241a86cf61bd Cr-Commit-Position: refs/heads/master@{#325408}

Patch Set 1 : #

Patch Set 2 : Export argument values now works + fix formatting. #

Patch Set 3 : Rebase (ignore). #

Patch Set 4 : Add compiling manifest to GYP/GN. Formatting and other minor fixes. #

Total comments: 12

Patch Set 5 : Address reviewer's comments. #

Total comments: 6

Patch Set 6 : Fix for Windows XP. #

Total comments: 4

Patch Set 7 : Addressed reviewer's comments. #

Total comments: 2

Patch Set 8 : Minor fixes to build files. #

Total comments: 4

Patch Set 9 : scottmg@ review. #

Total comments: 1

Patch Set 10 : Remove unnecessary blank line. #

Total comments: 6

Patch Set 11 : thestig@ review. #

Total comments: 4

Patch Set 12 : Add missing dependency in base.gyp #

Total comments: 12

Patch Set 13 : thakis@ and thestig@ reviews. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+526 lines, -5 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M base/trace_event/BUILD.gn View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
A base/trace_event/etw_manifest/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +37 lines, -0 lines 0 comments Download
A + base/trace_event/etw_manifest/BUILD/message_compiler.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A base/trace_event/etw_manifest/chrome_events_win.man View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
A base/trace_event/etw_manifest/etw_manifest.gyp View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M base/trace_event/trace_event.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M base/trace_event/trace_event.gypi View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
A base/trace_event/trace_event_etw_export_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +73 lines, -0 lines 2 comments Download
A base/trace_event/trace_event_etw_export_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +239 lines, -0 lines 0 comments Download
M base/trace_event/trace_event_impl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M base/trace_event/trace_event_impl.cc View 1 2 3 4 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 85 (36 generated)
dsinclair
https://codereview.chromium.org/1038453002/diff/330001/base/trace_event/trace_event_etw_export_win.cc File base/trace_event/trace_event_etw_export_win.cc (right): https://codereview.chromium.org/1038453002/diff/330001/base/trace_event/trace_event_etw_export_win.cc#newcode62 base/trace_event/trace_event_etw_export_win.cc:62: case TRACE_EVENT_PHASE_BEGIN: This seems fragile to me. This list ...
5 years, 9 months ago (2015-03-26 18:18:17 UTC) #19
nduca
this seems good enough. lgtm on my part but please await dan's lg
5 years, 9 months ago (2015-03-26 18:48:42 UTC) #21
dsinclair
On 2015/03/26 at 18:48:42, nduca wrote: > this seems good enough. lgtm on my part ...
5 years, 9 months ago (2015-03-26 19:04:35 UTC) #22
Georges Khalil
PTAnL. https://codereview.chromium.org/1038453002/diff/330001/base/trace_event/trace_event_etw_export_win.cc File base/trace_event/trace_event_etw_export_win.cc (right): https://codereview.chromium.org/1038453002/diff/330001/base/trace_event/trace_event_etw_export_win.cc#newcode62 base/trace_event/trace_event_etw_export_win.cc:62: case TRACE_EVENT_PHASE_BEGIN: On 2015/03/26 18:18:17, dsinclair wrote: > ...
5 years, 9 months ago (2015-03-26 23:09:20 UTC) #24
dsinclair
lgtm
5 years, 9 months ago (2015-03-26 23:12:47 UTC) #25
brucedawson
I have a couple of small efficiency suggestions - if possible we want to avoid ...
5 years, 9 months ago (2015-03-27 19:57:23 UTC) #27
Georges Khalil
PTAnL. Following Bruce's comments: - Fixed the Windows XP issue by using GetProcAddress (tested on ...
5 years, 9 months ago (2015-03-29 01:00:21 UTC) #29
brucedawson
The Windows XP changes lgtm with two comment fixes needed. https://codereview.chromium.org/1038453002/diff/410001/base/trace_event/trace_event_etw_export_win.cc File base/trace_event/trace_event_etw_export_win.cc (right): https://codereview.chromium.org/1038453002/diff/410001/base/trace_event/trace_event_etw_export_win.cc#newcode15 ...
5 years, 8 months ago (2015-03-29 20:39:23 UTC) #30
Georges Khalil
thakis@chromium.org: Please review changes in - base/base.gyp - chrome/BUILD.gn nasko@chromium.org: Please review changes in - ...
5 years, 8 months ago (2015-03-30 14:50:05 UTC) #32
nasko
content/ LGTM
5 years, 8 months ago (2015-03-30 22:45:38 UTC) #33
Nico
https://codereview.chromium.org/1038453002/diff/430001/chrome/chrome_dll.gypi File chrome/chrome_dll.gypi (right): https://codereview.chromium.org/1038453002/diff/430001/chrome/chrome_dll.gypi#newcode136 chrome/chrome_dll.gypi:136: '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_dll_version.rc', huh, this looks wrong to me. I haven't ...
5 years, 8 months ago (2015-03-31 22:26:08 UTC) #34
Georges Khalil
Nico, PTAnL. - Fix order of source files and add missing dependency in chrome_dll.gypi - ...
5 years, 8 months ago (2015-04-01 16:47:04 UTC) #35
Nico
On 2015/04/01 16:47:04, Georges Khalil wrote: > Nico, PTAnL. > > - Fix order of ...
5 years, 8 months ago (2015-04-01 18:23:44 UTC) #36
Georges Khalil
On 2015/04/01 18:23:44, Nico wrote: > On 2015/04/01 16:47:04, Georges Khalil wrote: > > Nico, ...
5 years, 8 months ago (2015-04-01 21:13:09 UTC) #37
Nico
I looked through gyp's ninja generator, and the process_outputs_as_sources thing should work from what I ...
5 years, 8 months ago (2015-04-09 23:05:54 UTC) #39
scottmg
I think process_outputs_as_sources will mean that the .rc should get built in the etw_manifest target, ...
5 years, 8 months ago (2015-04-09 23:45:34 UTC) #40
brucedawson
I don't think you can insert a resource into a .lib file -- they can ...
5 years, 8 months ago (2015-04-10 00:19:42 UTC) #41
scottmg
On 2015/04/10 00:19:42, brucedawson wrote: > I don't think you can insert a resource into ...
5 years, 8 months ago (2015-04-10 01:20:22 UTC) #42
Georges Khalil
scottmg@, PTAnL. - process_outputs_as_sources removed. - Whitespace fixed. - Removed dependency in chrome_dll.gypi, that was ...
5 years, 8 months ago (2015-04-10 22:29:50 UTC) #43
scottmg
gyp[i] lgtm
5 years, 8 months ago (2015-04-10 22:40:50 UTC) #44
scottmg
https://codereview.chromium.org/1038453002/diff/470001/base/trace_event/etw_manifest/etw_manifest.gyp File base/trace_event/etw_manifest/etw_manifest.gyp (right): https://codereview.chromium.org/1038453002/diff/470001/base/trace_event/etw_manifest/etw_manifest.gyp#newcode29 base/trace_event/etw_manifest/etw_manifest.gyp:29: '-r', '<(man_output_dir)/.', Actually, sorry. Why do you need the ...
5 years, 8 months ago (2015-04-10 22:41:57 UTC) #45
Georges Khalil
On 2015/04/10 22:41:57, scottmg wrote: > https://codereview.chromium.org/1038453002/diff/470001/base/trace_event/etw_manifest/etw_manifest.gyp > File base/trace_event/etw_manifest/etw_manifest.gyp (right): > > https://codereview.chromium.org/1038453002/diff/470001/base/trace_event/etw_manifest/etw_manifest.gyp#newcode29 > ...
5 years, 8 months ago (2015-04-10 23:04:33 UTC) #46
scottmg
On 2015/04/10 23:04:33, Georges Khalil wrote: > On 2015/04/10 22:41:57, scottmg wrote: > > > ...
5 years, 8 months ago (2015-04-10 23:08:46 UTC) #47
Georges Khalil
thestig@chromium.org: Please review changes in - base/base.gyp (LGTMed by scottmg) - chrome/BUILD.gn
5 years, 8 months ago (2015-04-10 23:20:18 UTC) #49
Lei Zhang
Mostly trying to make sure the GYP and GN changes match. https://codereview.chromium.org/1038453002/diff/490001/base/base.gyp File base/base.gyp (right): ...
5 years, 8 months ago (2015-04-10 23:50:13 UTC) #50
Georges Khalil
thestig@, PTAnL. - Fixed discrepancy between GYP and GN. They should both be similar now. ...
5 years, 8 months ago (2015-04-13 13:44:46 UTC) #55
Lei Zhang
lgtm
5 years, 8 months ago (2015-04-13 19:55:31 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1038453002/570001
5 years, 8 months ago (2015-04-13 20:05:46 UTC) #59
commit-bot: I haz the power
Committed patchset #11 (id:570001)
5 years, 8 months ago (2015-04-14 01:36:26 UTC) #60
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/1cc86c4f686869f32dfede093a07828c73563892 Cr-Commit-Position: refs/heads/master@{#324982}
5 years, 8 months ago (2015-04-14 01:38:38 UTC) #61
Nico
https://codereview.chromium.org/1038453002/diff/570001/base/trace_event/trace_event_etw_export_win.cc File base/trace_event/trace_event_etw_export_win.cc (right): https://codereview.chromium.org/1038453002/diff/570001/base/trace_event/trace_event_etw_export_win.cc#newcode46 base/trace_event/trace_event_etw_export_win.cc:46: // chrome_events_win.h I can't see a file chrome_events_win.h, and ...
5 years, 8 months ago (2015-04-14 02:25:09 UTC) #63
Nico
On 2015/04/14 02:25:09, Nico (away until Wed Apr 15) wrote: > https://codereview.chromium.org/1038453002/diff/570001/base/trace_event/trace_event_etw_export_win.cc > File base/trace_event/trace_event_etw_export_win.cc ...
5 years, 8 months ago (2015-04-14 02:27:13 UTC) #64
Nico
https://codereview.chromium.org/1038453002/diff/570001/chrome/chrome_dll.gypi File chrome/chrome_dll.gypi (right): https://codereview.chromium.org/1038453002/diff/570001/chrome/chrome_dll.gypi#newcode138 chrome/chrome_dll.gypi:138: '<(SHARED_INTERMEDIATE_DIR)/base/trace_event/etw_manifest/chrome_events_win.rc', Shouldn't this be in base/base.gyp? As-is, the clang/win ...
5 years, 8 months ago (2015-04-14 02:31:58 UTC) #65
pdr.
On 2015/04/14 at 02:31:58, thakis wrote: > https://codereview.chromium.org/1038453002/diff/570001/chrome/chrome_dll.gypi > File chrome/chrome_dll.gypi (right): > > https://codereview.chromium.org/1038453002/diff/570001/chrome/chrome_dll.gypi#newcode138 ...
5 years, 8 months ago (2015-04-14 03:29:20 UTC) #66
pdr.
Our revert button is not quite teched up to handle this patch. I created a ...
5 years, 8 months ago (2015-04-14 03:55:05 UTC) #67
Georges Khalil
thestig@, PTAnL. This got reverted as it broke a buildbot. The dependency in base.gyp is ...
5 years, 8 months ago (2015-04-14 17:57:42 UTC) #70
brucedawson
And, to respond to pdr@'s question, function definitions don't come from .rc files -- the ...
5 years, 8 months ago (2015-04-14 18:05:16 UTC) #71
Lei Zhang
Can you address Nico's most recent comment? https://codereview.chromium.org/1038453002/diff/630001/base/trace_event/etw_manifest/BUILD/message_compiler.py File base/trace_event/etw_manifest/BUILD/message_compiler.py (right): https://codereview.chromium.org/1038453002/diff/630001/base/trace_event/etw_manifest/BUILD/message_compiler.py#newcode6 base/trace_event/etw_manifest/BUILD/message_compiler.py:6: # GYP ...
5 years, 8 months ago (2015-04-15 08:10:36 UTC) #72
Georges Khalil
Nico, Lei, PTAnl. My apologies for having missed Nico's comments, they got lost in the ...
5 years, 8 months ago (2015-04-15 15:10:33 UTC) #73
Nico
Thanks! I patched this in and built with clang locally, and it still fails though: ...
5 years, 8 months ago (2015-04-15 17:02:31 UTC) #74
Georges Khalil
On 2015/04/15 17:02:31, Nico (away until Wed Apr 15) wrote: > Thanks! > > I ...
5 years, 8 months ago (2015-04-15 17:37:32 UTC) #75
Georges Khalil
So it looks like the culprit is __declspec(selectany), which seems to not be handled correctly ...
5 years, 8 months ago (2015-04-15 20:27:41 UTC) #76
Nico
Yup, it's a clang bug. Filed https://llvm.org/bugs/show_bug.cgi?id=23242 Since that bot is on the fyi waterfall, ...
5 years, 8 months ago (2015-04-15 20:40:42 UTC) #77
Lei Zhang
lgtm https://codereview.chromium.org/1038453002/diff/650001/base/trace_event/trace_event_etw_export_win.h File base/trace_event/trace_event_etw_export_win.h (right): https://codereview.chromium.org/1038453002/diff/650001/base/trace_event/trace_event_etw_export_win.h#newcode32 base/trace_event/trace_event_etw_export_win.h:32: static bool isETWExportEnabled() { return GetInstance()->ETWExportEnabled_; } nit: ...
5 years, 8 months ago (2015-04-16 08:11:02 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1038453002/650001
5 years, 8 months ago (2015-04-16 08:11:25 UTC) #81
commit-bot: I haz the power
Committed patchset #13 (id:650001)
5 years, 8 months ago (2015-04-16 09:25:28 UTC) #82
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/28ad5e6b1100a7f0d25a5e6741f7241a86cf61bd Cr-Commit-Position: refs/heads/master@{#325408}
5 years, 8 months ago (2015-04-16 09:26:16 UTC) #83
scottmg
I think there's a missing dependency here, the generated file is missing and failing compile ...
5 years, 8 months ago (2015-04-17 20:57:30 UTC) #84
Georges Khalil
5 years, 8 months ago (2015-04-17 21:01:05 UTC) #85
Message was sent while issue was closed.
On 2015/04/17 20:57:30, scottmg wrote:
> I think there's a missing dependency here, the generated file is missing and
> failing compile sometimes, e.g.:
> 
>
http://build.chromium.org/p/chromium/builders/Win/builds/31012/steps/compile/...

Yes, there was a missing dependency in base_win64, this has been fixed in a CL
that has just
been committed:

https://codereview.chromium.org/1090223002/

Powered by Google App Engine
This is Rietveld 408576698