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

Issue 10870109: Change the pnacl shim from doing real shimming to just intercepting (Closed)

Created:
8 years, 3 months ago by Robert Muth (chromium)
Modified:
6 years, 10 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Change the pnacl shim from doing real shimming to just intercepting queries for "nacl-irt-ppapihook-XXX" and rewriting them to "nacl-irt-ppapihook-shimmed-XXX" BUG= http://code.google.com/p/nativeclient/issues/detail?id=2465 TEST= trybots

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Total comments: 14

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -148 lines) Patch
M src/untrusted/pnacl_irt_shim/nacl.scons View 1 2 3 1 chunk +3 lines, -21 lines 0 comments Download
M src/untrusted/pnacl_irt_shim/shim_entry.c View 1 2 3 4 2 chunks +33 lines, -4 lines 0 comments Download
D src/untrusted/pnacl_irt_shim/shim_ppapi.h View 1 chunk +0 lines, -21 lines 0 comments Download
D src/untrusted/pnacl_irt_shim/shim_ppapi.c View 1 chunk +0 lines, -102 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Robert Muth (chromium)
PTAL This depends on http://codereview.chromium.org/10826171/ It is not fully tested yet but I want to ...
8 years, 3 months ago (2012-08-27 19:54:02 UTC) #1
jvoung (off chromium)
http://codereview.chromium.org/10870109/diff/5001/src/untrusted/pnacl_irt_shim/nacl.scons File src/untrusted/pnacl_irt_shim/nacl.scons (right): http://codereview.chromium.org/10870109/diff/5001/src/untrusted/pnacl_irt_shim/nacl.scons#newcode15 src/untrusted/pnacl_irt_shim/nacl.scons:15: env.ClearBits('pnacl_generate_pexe') Leave the comment about clearing the bit pnacl_generate_pexe, ...
8 years, 3 months ago (2012-08-27 21:57:39 UTC) #2
Robert Muth (chromium)
+ncbray, +bradnelson PTAL http://codereview.chromium.org/10870109/diff/5001/src/untrusted/pnacl_irt_shim/nacl.scons File src/untrusted/pnacl_irt_shim/nacl.scons (right): http://codereview.chromium.org/10870109/diff/5001/src/untrusted/pnacl_irt_shim/nacl.scons#newcode15 src/untrusted/pnacl_irt_shim/nacl.scons:15: env.ClearBits('pnacl_generate_pexe') On 2012/08/27 21:57:39, jvoung (chromium) ...
8 years, 3 months ago (2012-08-27 22:38:18 UTC) #3
Mark Seaborn
https://chromiumcodereview.appspot.com/10870109/diff/8/src/untrusted/pnacl_irt_shim/nacl.scons File src/untrusted/pnacl_irt_shim/nacl.scons (right): https://chromiumcodereview.appspot.com/10870109/diff/8/src/untrusted/pnacl_irt_shim/nacl.scons#newcode2 src/untrusted/pnacl_irt_shim/nacl.scons:2: # Copyright 2012 The Native Client Authors. All rights ...
8 years, 3 months ago (2012-08-28 16:04:51 UTC) #4
Robert Muth (chromium)
PTAL https://chromiumcodereview.appspot.com/10870109/diff/8/src/untrusted/pnacl_irt_shim/nacl.scons File src/untrusted/pnacl_irt_shim/nacl.scons (right): https://chromiumcodereview.appspot.com/10870109/diff/8/src/untrusted/pnacl_irt_shim/nacl.scons#newcode2 src/untrusted/pnacl_irt_shim/nacl.scons:2: # Copyright 2012 The Native Client Authors. All ...
8 years, 3 months ago (2012-08-28 19:11:23 UTC) #5
Mark Seaborn
8 years, 3 months ago (2012-08-28 19:38:41 UTC) #6
https://chromiumcodereview.appspot.com/10870109/diff/8/src/untrusted/pnacl_ir...
File src/untrusted/pnacl_irt_shim/shim_entry.c (right):

https://chromiumcodereview.appspot.com/10870109/diff/8/src/untrusted/pnacl_ir...
src/untrusted/pnacl_irt_shim/shim_entry.c:7: #include <stddef.h>
On 2012/08/28 19:11:24, Robert Muth (chromium) wrote:
> On 2012/08/28 16:04:51, Mark Seaborn wrote:
> > I don't think you actually need stddef.h below, do you?
> 
> irt.h depends on it.

But irt.h contains "#include <stddef.h>".  So I don't think you need this
#include.

https://chromiumcodereview.appspot.com/10870109/diff/8/src/untrusted/pnacl_ir...
src/untrusted/pnacl_irt_shim/shim_entry.c:51: if (0 ==
my_strcmp(interface_ident, prefix_search)) {
On 2012/08/28 19:11:24, Robert Muth (chromium) wrote:
> On 2012/08/28 16:04:51, Mark Seaborn wrote:
> > When is this check going to return true, if interface_ident contains a
> > full interface name and prefix_search only contains an interface name
> > prefix?  How have you tested this code?
> 
> Thanks this was a bug.
> As I mention in the initial email - this code has not been fully tested yet.

Why don't you combine this change into your IRT change,
http://codereview.chromium.org/10826171/?  It would make sense to introduce the
new IRT interface in the same change as you add code that uses it.

https://chromiumcodereview.appspot.com/10870109/diff/15001/src/untrusted/pnac...
File src/untrusted/pnacl_irt_shim/shim_entry.c (right):

https://chromiumcodereview.appspot.com/10870109/diff/15001/src/untrusted/pnac...
src/untrusted/pnacl_irt_shim/shim_entry.c:22: static const char prefix_search[]
= "nacl-irt-ppapihook";
This variable is not used.  Please remove it.  Same for 'prefix_replace'.

https://chromiumcodereview.appspot.com/10870109/diff/15001/src/untrusted/pnac...
src/untrusted/pnacl_irt_shim/shim_entry.c:37: return
real_irt_interface(NACL_IRT_PPAPIHOOK_SHIMMED_v0_1, table, tablesize);
This line is >80 chars

https://chromiumcodereview.appspot.com/10870109/diff/15001/src/untrusted/pnac...
src/untrusted/pnacl_irt_shim/shim_entry.c:39: return real_irt_interface(ident,
table, tablesize);
'ident' is not defined, so I don't think this compiles.  I'd prefer if you
compile-test your code before sending it out.

Powered by Google App Engine
This is Rietveld 408576698