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

Issue 2710183005: ozone: drm: Add more debug details when dmabuf mmap fails. (Closed)

Created:
3 years, 10 months ago by Daniele Castagna
Modified:
3 years, 9 months ago
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: drm: Add more details when dmabuf mmap fails. When native GPU memory buffers were enabled we noticed many crashes reporting mmap failing. This CL adds more information when dmabuf mmap fails in the crash report that is uploaded. It adds the values of the parameters passed to mmap, the validity of the fd passed to mmap, the last errno set, and the logical size of the buffer. Additionally, while we used to always report mmap failing as out of memory, after this CL we'll differentiate based on the last system error set. BUG=629521 Review-Url: https://codereview.chromium.org/2710183005 Cr-Commit-Position: refs/heads/master@{#453226} Committed: https://chromium.googlesource.com/chromium/src/+/7288c33cfa94a7d45a98eb3cdb4dd5ef11da9d3b

Patch Set 1 #

Patch Set 2 : Register crash keys. #

Total comments: 4

Patch Set 3 : Address reveman's nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -2 lines) Patch
M chrome/common/crash_keys.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc View 1 2 2 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
Daniele Castagna
3 years, 10 months ago (2017-02-23 22:46:28 UTC) #4
reveman
lgtm % nits https://codereview.chromium.org/2710183005/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc File ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc (right): https://codereview.chromium.org/2710183005/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc#newcode85 ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc:85: logging::SystemErrorCode mmap_error = logging::GetLastSystemErrorCode(); nit: please ...
3 years, 10 months ago (2017-02-24 00:46:19 UTC) #8
Daniele Castagna
Tnx for the review. Adding owners: - dnicoara@ for ui/ozone/* - rsesek@ for chrome/common/crash_keys.cc https://codereview.chromium.org/2710183005/diff/20001/ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.cc ...
3 years, 10 months ago (2017-02-24 01:18:21 UTC) #10
Robert Sesek
LGTM
3 years, 10 months ago (2017-02-24 17:01:33 UTC) #11
Daniele Castagna
+rjkroege for ownership since dnicoara is OOO.
3 years, 10 months ago (2017-02-24 18:25:14 UTC) #13
dshwang
lgtm, I learnt how to get logs. nice!
3 years, 10 months ago (2017-02-24 19:31:25 UTC) #14
dnicoara
lgtm
3 years, 9 months ago (2017-02-27 15:11:29 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2710183005/40001
3 years, 9 months ago (2017-02-27 15:20:27 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 16:05:23 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7288c33cfa94a7d45a98eb3cdb4d...

Powered by Google App Engine
This is Rietveld 408576698