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

Issue 1586433003: Adding an API to read module annotations in snapshot.gyp (Closed)

Created:
4 years, 11 months ago by Patrick Monette
Modified:
4 years, 11 months ago
Reviewers:
Mark Mentovai, scottmg
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Adding an API to read module annotations in snapshot.gyp Kasko needs a way to read crash keys from out of process. This API reuses the functionality of PEImageAnnotationsReader. BUG=chromium:485149

Patch Set 1 #

Patch Set 2 : New target to get crashpad annotations from another process #

Total comments: 28

Patch Set 3 : Comments #

Total comments: 4

Patch Set 4 : Add test and fix nits. #

Total comments: 10

Patch Set 5 : Last comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -44 lines) Patch
A snapshot/api/module_annotations_win.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A snapshot/api/module_annotations_win.cc View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A snapshot/api/module_annotations_win_test.cc View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download
M snapshot/snapshot.gyp View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M snapshot/snapshot_test.gyp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M snapshot/win/pe_image_annotations_reader_test.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M snapshot/win/pe_image_reader_test.cc View 1 2 2 chunks +1 line, -10 lines 0 comments Download
M util/util.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + util/win/get_module_information.h View 1 2 3 4 2 chunks +11 lines, -16 lines 1 comment Download
A + util/win/get_module_information.cc View 1 2 3 4 2 chunks +10 lines, -17 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
Patrick Monette
PTAL. Does this look reasonable?
4 years, 11 months ago (2016-01-12 22:40:00 UTC) #2
Mark Mentovai
Patrick Monette wrote: > PTAL. Does this look reasonable? Depends. What did we leave exposed ...
4 years, 11 months ago (2016-01-12 22:41:46 UTC) #3
Patrick Monette
The goal is to reuse PEImageAnnotationsReader. Create a function GetAnnotationsForProcess(HANDLE) in components/crash/content/app/crashpad.h in Chrome that ...
4 years, 11 months ago (2016-01-12 22:47:01 UTC) #5
Mark Mentovai
Can you cite the bug (BUG=project:number)?
4 years, 11 months ago (2016-01-12 22:48:53 UTC) #7
Patrick Monette
Done. Not much context in the bug. Most of the discussion took place through email.
4 years, 11 months ago (2016-01-12 22:54:32 UTC) #9
Mark Mentovai
Chromium bug 485149 is about getting the client ID. You won’t find the crash client ...
4 years, 11 months ago (2016-01-12 23:00:51 UTC) #10
scottmg
Rather than exporting "all" of snapshot, I wonder if we should have something like client ...
4 years, 11 months ago (2016-01-12 23:01:37 UTC) #11
Patrick Monette
The values that are read by the annotations reader are still very useful. But we ...
4 years, 11 months ago (2016-01-12 23:08:47 UTC) #12
Mark Mentovai
You can get the client ID out of the database (provided you know what database ...
4 years, 11 months ago (2016-01-12 23:16:32 UTC) #13
Patrick Monette
I'll take a look at this. About this CL, the bug specifically mention the client ...
4 years, 11 months ago (2016-01-12 23:24:25 UTC) #14
Mark Mentovai
Scott knows more about what’s currently exposed for Kasko’s benefit, so I’ll throw the mike ...
4 years, 11 months ago (2016-01-12 23:28:50 UTC) #15
scottmg
Ah, I didn't realize getting the client ID was the primary goal here. We don't ...
4 years, 11 months ago (2016-01-13 18:28:42 UTC) #16
Patrick Monette
scott PTAL
4 years, 11 months ago (2016-01-13 18:37:52 UTC) #19
Patrick Monette
I just realized that we are actually already fine for the guid. This value is ...
4 years, 11 months ago (2016-01-13 18:51:17 UTC) #20
scottmg
https://codereview.chromium.org/1586433003/diff/60001/snapshot/client/crashpad_annotations_win.cc File snapshot/client/crashpad_annotations_win.cc (right): https://codereview.chromium.org/1586433003/diff/60001/snapshot/client/crashpad_annotations_win.cc#newcode29 snapshot/client/crashpad_annotations_win.cc:29: if (!process_reader.Initialize(process, ProcessSuspensionState::kRunning)) Would it be a good idea ...
4 years, 11 months ago (2016-01-13 19:12:42 UTC) #21
Mark Mentovai
Who or what is Kasko already talking to when you want it to read annotations? ...
4 years, 11 months ago (2016-01-13 19:40:23 UTC) #22
Patrick Monette
mark@ When the Chrome watcher process detects that the browser is hanged, it wants to ...
4 years, 11 months ago (2016-01-13 22:59:40 UTC) #23
scottmg
Changes look good, let me know when there's a test up and I'll take another ...
4 years, 11 months ago (2016-01-13 23:13:39 UTC) #24
Patrick Monette
I added a test. PTAL https://codereview.chromium.org/1586433003/diff/80001/snapshot/api/module_annotations_win.cc File snapshot/api/module_annotations_win.cc (right): https://codereview.chromium.org/1586433003/diff/80001/snapshot/api/module_annotations_win.cc#newcode25 snapshot/api/module_annotations_win.cc:25: HMODULE module, On 2016/01/13 ...
4 years, 11 months ago (2016-01-14 22:58:53 UTC) #26
scottmg
lgtm https://codereview.chromium.org/1586433003/diff/100001/snapshot/api/module_annotations_win.h File snapshot/api/module_annotations_win.h (right): https://codereview.chromium.org/1586433003/diff/100001/snapshot/api/module_annotations_win.h#newcode30 snapshot/api/module_annotations_win.h:30: //! will be read. The test makes it ...
4 years, 11 months ago (2016-01-18 17:11:59 UTC) #27
Patrick Monette
https://codereview.chromium.org/1586433003/diff/100001/snapshot/api/module_annotations_win.h File snapshot/api/module_annotations_win.h (right): https://codereview.chromium.org/1586433003/diff/100001/snapshot/api/module_annotations_win.h#newcode30 snapshot/api/module_annotations_win.h:30: //! will be read. On 2016/01/18 17:11:59, scottmg wrote: ...
4 years, 11 months ago (2016-01-18 19:35:44 UTC) #28
scottmg
https://codereview.chromium.org/1586433003/diff/120001/util/win/get_module_information.h File util/win/get_module_information.h (right): https://codereview.chromium.org/1586433003/diff/120001/util/win/get_module_information.h#newcode25 util/win/get_module_information.h:25: //! \brief Proxy function for 'GetModuleInformation()'. These have to ...
4 years, 11 months ago (2016-01-18 19:43:21 UTC) #29
Mark Mentovai
4 years, 11 months ago (2016-01-19 21:35:22 UTC) #30
Note that this moved to and was committed at
https://chromium-review.googlesource.com/322550/.

Powered by Google App Engine
This is Rietveld 408576698