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

Issue 1131473005: win: Add thread snapshot and memory snapshot for stacks (Closed)

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

Description

win: Add thread snapshot and memory snapshot for stacks The next big piece of functionality in snapshot. There's a bit more grubbing around in the NT internals than would be nice, and it has made me start to question the value avoiding MinidumpWriteDump. But this seems to extract most of the data we need (I haven't pulled the cpu context yet, but I hope that won't be too hard.) R=mark@chromium.org BUG=crashpad:1 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/658cd3e1a729e3bd183873b81230da44ed195946

Patch Set 1 #

Patch Set 2 : fix proc structs, can at least grab first thread x64-x64 now #

Patch Set 3 : fix stack range #

Patch Set 4 : memory snapshot #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 52

Patch Set 7 : fixes #

Patch Set 8 : don't bother range checking kernel data #

Total comments: 16

Patch Set 9 : . #

Patch Set 10 : k to K #

Patch Set 11 : get SuspendCount properly #

Patch Set 12 : use scopedhandle #

Patch Set 13 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -63 lines) Patch
M snapshot/mac/memory_snapshot_mac.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M snapshot/snapshot.gyp View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A + snapshot/win/memory_snapshot_win.h View 1 2 3 4 5 4 chunks +14 lines, -14 lines 0 comments Download
A + snapshot/win/memory_snapshot_win.cc View 1 2 3 4 5 6 4 chunks +13 lines, -11 lines 0 comments Download
M snapshot/win/process_reader_win.h View 1 2 3 4 5 6 4 chunks +22 lines, -0 lines 0 comments Download
M snapshot/win/process_reader_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +256 lines, -0 lines 0 comments Download
M snapshot/win/process_snapshot_win.h View 2 chunks +3 lines, -2 lines 0 comments Download
M snapshot/win/process_snapshot_win.cc View 1 2 3 4 4 chunks +21 lines, -5 lines 0 comments Download
A + snapshot/win/thread_snapshot_win.h View 1 2 3 3 chunks +20 lines, -31 lines 0 comments Download
A snapshot/win/thread_snapshot_win.cc View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
M util/win/process_structs.h View 1 2 3 4 5 6 1 chunk +101 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
scottmg
5 years, 7 months ago (2015-05-07 23:25:04 UTC) #2
Mark Mentovai
https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/memory_snapshot_win.cc File snapshot/win/memory_snapshot_win.cc (right): https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/memory_snapshot_win.cc#newcode39 snapshot/win/memory_snapshot_win.cc:39: size_ = static_cast<size_t>(size); Oh, I see. Can you DLOG_IF ...
5 years, 7 months ago (2015-05-08 16:54:21 UTC) #3
Mark Mentovai
https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/process_reader_win.cc File snapshot/win/process_reader_win.cc (right): https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/process_reader_win.cc#newcode72 snapshot/win/process_reader_win.cc:72: reinterpret_cast<uint8_t*>(process) + offset); Mark Mentovai wrote: > Assure no ...
5 years, 7 months ago (2015-05-08 18:14:15 UTC) #4
scottmg
Thanks! https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/memory_snapshot_win.cc File snapshot/win/memory_snapshot_win.cc (right): https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/memory_snapshot_win.cc#newcode39 snapshot/win/memory_snapshot_win.cc:39: size_ = static_cast<size_t>(size); On 2015/05/08 16:54:19, Mark Mentovai ...
5 years, 7 months ago (2015-05-08 18:24:02 UTC) #5
scottmg
On 2015/05/08 18:14:15, Mark Mentovai wrote: > https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/process_reader_win.cc > File snapshot/win/process_reader_win.cc (right): > > https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/process_reader_win.cc#newcode72 ...
5 years, 7 months ago (2015-05-08 18:25:26 UTC) #6
scottmg
https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/process_reader_win.cc File snapshot/win/process_reader_win.cc (right): https://codereview.chromium.org/1131473005/diff/100001/snapshot/win/process_reader_win.cc#newcode72 snapshot/win/process_reader_win.cc:72: reinterpret_cast<uint8_t*>(process) + offset); On 2015/05/08 18:14:14, Mark Mentovai wrote: ...
5 years, 7 months ago (2015-05-08 18:27:10 UTC) #7
Mark Mentovai
LGTM https://codereview.chromium.org/1131473005/diff/140001/snapshot/win/process_reader_win.cc File snapshot/win/process_reader_win.cc (right): https://codereview.chromium.org/1131473005/diff/140001/snapshot/win/process_reader_win.cc#newcode51 snapshot/win/process_reader_win.cc:51: enum class KTHREAD_STATE : uint32_t { KTHREAD_STATE intentional ...
5 years, 7 months ago (2015-05-08 20:30:21 UTC) #8
scottmg
https://codereview.chromium.org/1131473005/diff/140001/snapshot/win/process_reader_win.cc File snapshot/win/process_reader_win.cc (right): https://codereview.chromium.org/1131473005/diff/140001/snapshot/win/process_reader_win.cc#newcode51 snapshot/win/process_reader_win.cc:51: enum class KTHREAD_STATE : uint32_t { On 2015/05/08 20:30:21, ...
5 years, 7 months ago (2015-05-08 21:05:45 UTC) #9
Mark Mentovai
https://codereview.chromium.org/1131473005/diff/140001/snapshot/win/process_reader_win.cc File snapshot/win/process_reader_win.cc (right): https://codereview.chromium.org/1131473005/diff/140001/snapshot/win/process_reader_win.cc#newcode225 snapshot/win/process_reader_win.cc:225: thread_info.ThreadState == static_cast<ULONG>(KTHREAD_STATE::kGateWait) scottmg wrote: > On 2015/05/08 20:30:21, ...
5 years, 7 months ago (2015-05-08 21:15:00 UTC) #10
scottmg
https://codereview.chromium.org/1131473005/diff/140001/snapshot/win/process_reader_win.cc File snapshot/win/process_reader_win.cc (right): https://codereview.chromium.org/1131473005/diff/140001/snapshot/win/process_reader_win.cc#newcode225 snapshot/win/process_reader_win.cc:225: thread_info.ThreadState == static_cast<ULONG>(KTHREAD_STATE::kGateWait) On 2015/05/08 21:15:00, Mark Mentovai wrote: ...
5 years, 7 months ago (2015-05-09 02:46:15 UTC) #12
scottmg
5 years, 7 months ago (2015-05-11 20:29:58 UTC) #13
Message was sent while issue was closed.
Committed patchset #13 (id:260001) manually as
658cd3e1a729e3bd183873b81230da44ed195946 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698