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

Issue 11411118: Add tracing support to NaCl (Closed)

Created:
8 years, 1 month ago by jbauman
Modified:
7 years, 9 months ago
Reviewers:
bbudge, brettw, jam, jschuh, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, apatrick_chromium, brettw
Visibility:
Public.

Description

Add tracing support to NaCl Add Ppapi IPC messages and a handler inside of the NaCl IRT to enable, disable, and send the result of tracing. BUG=93839 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171911

Patch Set 1 #

Patch Set 2 : use two different sets of messages #

Patch Set 3 : use components #

Total comments: 3

Patch Set 4 : split some files #

Total comments: 1

Patch Set 5 : unify ppapi_trace_message_filter and child_trace_message_filter #

Total comments: 2

Patch Set 6 : minor fixes #

Total comments: 1

Patch Set 7 : remove content from tracing DEPS #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -274 lines) Patch
M base/debug/trace_event_impl.h View 2 chunks +6 lines, -0 lines 0 comments Download
M base/debug/trace_event_impl.cc View 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/trace_message_filter.cc View 1 2 3 chunks +13 lines, -12 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/common/child_process_messages.h View 2 2 chunks +0 lines, -38 lines 0 comments Download
M content/common/child_thread.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/child_trace_message_filter.h View 1 2 3 4 1 chunk +0 lines, -51 lines 0 comments Download
M content/common/child_trace_message_filter.cc View 1 2 3 4 1 chunk +0 lines, -109 lines 0 comments Download
A content/components/tracing/DEPS View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 1 comment Download
A content/components/tracing/OWNERS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + content/components/tracing/child_trace_message_filter.h View 1 2 3 4 5 6 3 chunks +12 lines, -10 lines 0 comments Download
A + content/components/tracing/child_trace_message_filter.cc View 1 2 3 4 5 6 5 chunks +31 lines, -23 lines 0 comments Download
A content/components/tracing/tracing_messages.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A + content/components/tracing/tracing_messages.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
A content/content_components_tracing.gyp View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A + content/content_components_tracing_untrusted.gyp View 1 2 3 4 1 chunk +16 lines, -19 lines 0 comments Download
M gpu/command_buffer/common/trace_event.h View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_message_start.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/native_client.gyp View 1 2 3 4 5 6 9 chunks +9 lines, -0 lines 0 comments Download
M ppapi/ppapi_ipc_proxy_untrusted.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/ppapi_ipc_untrusted.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/plugin_main_nacl.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
jbauman
Not sure if this is the best approach, but it seems to work.
8 years, 1 month ago (2012-11-21 09:53:13 UTC) #1
bbudge
The general approach looks OK. I don't think moving the messages from content to ppapi ...
8 years, 1 month ago (2012-11-21 18:34:52 UTC) #2
jbauman
On 2012/11/21 18:34:52, bbudge1 wrote: > The general approach looks OK. I don't think moving ...
8 years, 1 month ago (2012-11-21 19:08:51 UTC) #3
bbudge
We should probably discuss how to expose what we need in 'content' with Brett and ...
8 years, 1 month ago (2012-11-21 19:18:03 UTC) #4
jbauman
jam@, brettw@, we'll need to send some of the content child process messages (like ChildProcessMsg_BeginTracing) ...
8 years ago (2012-11-26 18:33:32 UTC) #5
brettw
I don't have a better idea for where to put these. Maybe John does? I ...
8 years ago (2012-11-27 23:53:32 UTC) #6
jbauman
Ok, I've duplicated all of the messages. Better?
8 years ago (2012-11-28 03:34:20 UTC) #7
bbudge
It seems like you could factor a bunch of duplicate code from TraceMessageFilterImpl and PepperTraceMessageFilterImpl. ...
8 years ago (2012-11-28 22:45:57 UTC) #8
jbauman
On 2012/11/28 22:45:57, bbudge1 wrote: > It seems like you could factor a bunch of ...
8 years ago (2012-12-05 00:20:09 UTC) #9
bbudge
Component-izing trace messages seems good. One issue we have is the size of the IRT ...
8 years ago (2012-12-05 02:22:28 UTC) #10
jbauman
Ok, I split up the .gyp and plugin_main_nacl.cc files. nacl_irt_x86_64.nexe grew from 5,981,188 bytes to ...
8 years ago (2012-12-05 05:38:56 UTC) #11
bbudge
LGTM w/nit FYI I am not an OWNER on most of this code. https://codereview.chromium.org/11411118/diff/19002/ppapi/proxy/ppapi_trace_message_filter.h File ...
8 years ago (2012-12-05 22:25:54 UTC) #12
jam
can the trace_messge_filter.* be shared? i.e. have one implementation in content/components
8 years ago (2012-12-05 22:58:12 UTC) #13
jbauman
On 2012/12/05 22:58:12, John Abd-El-Malek wrote: > can the trace_messge_filter.* be shared? i.e. have one ...
8 years ago (2012-12-06 00:45:47 UTC) #14
jam
lgtm with nits https://codereview.chromium.org/11411118/diff/25001/content/DEPS File content/DEPS (right): https://codereview.chromium.org/11411118/diff/25001/content/DEPS#newcode12 content/DEPS:12: "+content/components/tracing", put this in content/browser instead ...
8 years ago (2012-12-06 01:36:16 UTC) #15
jbauman
Ok, fixed those things. Adding jschuh@ to review exposing these messages to NaCl, brettw@ for ...
8 years ago (2012-12-06 03:27:30 UTC) #16
piman
lgtm
8 years ago (2012-12-06 04:02:44 UTC) #17
jschuh
ipc lgtm.
8 years ago (2012-12-07 18:46:47 UTC) #18
brettw
lgtm https://codereview.chromium.org/11411118/diff/21010/content/components/tracing/DEPS File content/components/tracing/DEPS (right): https://codereview.chromium.org/11411118/diff/21010/content/components/tracing/DEPS#newcode3 content/components/tracing/DEPS:3: "+ipc" Can you add a "-content" rule here, ...
8 years ago (2012-12-07 21:23:37 UTC) #19
tfarina
https://codereview.chromium.org/11411118/diff/29002/content/components/tracing/DEPS File content/components/tracing/DEPS (right): https://codereview.chromium.org/11411118/diff/29002/content/components/tracing/DEPS#newcode2 content/components/tracing/DEPS:2: "+base", was this and +ipc necessary? They are allowed ...
7 years, 9 months ago (2013-02-27 15:55:39 UTC) #20
jschuh
On 2013/02/27 15:55:39, tfarina wrote: > https://codereview.chromium.org/11411118/diff/29002/content/components/tracing/DEPS > File content/components/tracing/DEPS (right): > > https://codereview.chromium.org/11411118/diff/29002/content/components/tracing/DEPS#newcode2 > ...
7 years, 9 months ago (2013-02-27 18:13:09 UTC) #21
tfarina
On 2013/02/27 18:13:09, Justin Schuh wrote: > All IPC changes must be reviewed by the ...
7 years, 9 months ago (2013-02-27 18:16:39 UTC) #22
jbauman
On 2013/02/27 15:55:39, tfarina wrote: > https://codereview.chromium.org/11411118/diff/29002/content/components/tracing/DEPS > File content/components/tracing/DEPS (right): > > https://codereview.chromium.org/11411118/diff/29002/content/components/tracing/DEPS#newcode2 > ...
7 years, 9 months ago (2013-02-27 18:19:32 UTC) #23
jschuh
On 2013/02/27 18:16:39, tfarina wrote: > On 2013/02/27 18:13:09, Justin Schuh wrote: > > All ...
7 years, 9 months ago (2013-02-27 18:29:55 UTC) #24
jschuh
7 years, 9 months ago (2013-02-27 22:17:22 UTC) #25
Message was sent while issue was closed.
On 2013/02/27 18:29:55, Justin Schuh wrote:
> On 2013/02/27 18:16:39, tfarina wrote:
> > On 2013/02/27 18:13:09, Justin Schuh wrote:
> > > All IPC changes must be reviewed by the security team due to the high risk
> of
> > > introducing sandbox escapes via IPC.
> > But that does not require you to introduce a DEPS rule for ipc. I think that
> is
> > not the way to enforce that IPC changes should be reviewed by the security
> team.
> 
> I'm sorry, but your understanding here is wrong. Owner reviews are an ideal
> mechanism for enforcing this policy. Regardless, this CL isn't a good place
for
> such a discussion. If you are unconvinced please raise your concern on
> chromium-dev and CC mailto:security@chromium.org.

Okay, it appears I totally misread the context here. Please ignore. You're right
that this dependency has nothing to do with IPC reviews.

Powered by Google App Engine
This is Rietveld 408576698