|
NaCl: Send fatal log messages via shared memory.
nacl_helper reports the last few log messages to the renderer when a LOG_FATAL
message is logged in the plugin. This currently uses the "bootstrap" channel,
which we would like to get rid of.
This uses a shared memory segment instead of IPC, since something bad may have
happened in the plugin process, so we'd like to keep the behavior for handling
that case as simple as possible. For that reason, the shared memory segment is
mapped before the nexe is loaded.
I've tested this locally by calling RemoteLog(LOG_FATAL, ...) after StartModule
in ServiceRuntime, though I'd like to find some better way to test this as
there's a decent amount of logic here.
BUG= 391039
R=jschuh@chromium.org, mseaborn@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290910
Total comments: 10
Total comments: 20
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+123 lines, -40 lines) |
Patch |
|
M |
components/nacl/browser/nacl_process_host.h
|
View
|
1
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/browser/nacl_process_host.cc
|
View
|
1
2
|
3 chunks |
+22 lines, -1 line |
0 comments
|
Download
|
|
M |
components/nacl/common/nacl_host_messages.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/common/nacl_messages.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/common/nacl_types.h
|
View
|
1
2
|
5 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
|
M |
components/nacl/common/nacl_types.cc
|
View
|
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/nacl/loader/nacl_listener.h
|
View
|
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/nacl/loader/nacl_listener.cc
|
View
|
1
2
3
4
|
5 chunks |
+25 lines, -8 lines |
0 comments
|
Download
|
|
M |
components/nacl/renderer/nexe_load_manager.h
|
View
|
|
4 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
components/nacl/renderer/nexe_load_manager.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+21 lines, -2 lines |
0 comments
|
Download
|
|
M |
components/nacl/renderer/ppb_nacl_private_impl.cc
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/api/private/ppb_nacl_private.idl
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/c/private/ppb_nacl_private.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/src/trusted/plugin/plugin.cc
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/src/trusted/plugin/service_runtime.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/src/trusted/plugin/service_runtime.cc
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|