mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Sandbox not active error tracking observations
This commit is contained in:
parent
d51d558083
commit
3fb4d59545
|
@ -21,3 +21,10 @@ Sandboxed main observations:
|
||||||
=> loop in pffft_transform for N = 64 (why?);
|
=> loop in pffft_transform for N = 64 (why?);
|
||||||
N = 64, status OK, pffft_transform generates error
|
N = 64, status OK, pffft_transform generates error
|
||||||
N > 64, status not OK
|
N > 64, status not OK
|
||||||
|
Problem on initialising sapi::StatusOr<PFFFT_Setup *> s;
|
||||||
|
the memory that stays for s is not the same with the address passed
|
||||||
|
in pffft_transform function.
|
||||||
|
(sapi::v::GenericPtr to be changed?)
|
||||||
|
|
||||||
|
Temporary solution (not done): change the generated files to accept
|
||||||
|
uintptr_t instead of PFFFT_Setup
|
||||||
|
|
|
@ -73,6 +73,8 @@ int main(int argc, char* argv[]) {
|
||||||
pffftSapiSandbox sandbox;
|
pffftSapiSandbox sandbox;
|
||||||
sandbox.Init().IgnoreError();
|
sandbox.Init().IgnoreError();
|
||||||
|
|
||||||
|
printf("%s\n", sandbox.Init().ToString().c_str());
|
||||||
|
|
||||||
pffftApi api(&sandbox);
|
pffftApi api(&sandbox);
|
||||||
|
|
||||||
int N, cplx;
|
int N, cplx;
|
||||||
|
@ -164,7 +166,7 @@ int main(int argc, char* argv[]) {
|
||||||
api.pffft_transform(s_reg.PtrBoth(), X_.PtrBoth(),
|
api.pffft_transform(s_reg.PtrBoth(), X_.PtrBoth(),
|
||||||
Z_.PtrBoth(), Y_.PtrBoth(), PFFFT_FORWARD)
|
Z_.PtrBoth(), Y_.PtrBoth(), PFFFT_FORWARD)
|
||||||
.ToString()
|
.ToString()
|
||||||
.c_str());
|
.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
t1 = uclock_sec();
|
t1 = uclock_sec();
|
||||||
|
@ -175,7 +177,7 @@ int main(int argc, char* argv[]) {
|
||||||
(max_iter * 2) * ((cplx ? 5 : 2.5) * N * log((double)N) / M_LN2);
|
(max_iter * 2) * ((cplx ? 5 : 2.5) * N * log((double)N) / M_LN2);
|
||||||
show_output("PFFFT", N, cplx, flops, t0, t1, max_iter);
|
show_output("PFFFT", N, cplx, flops, t0, t1, max_iter);
|
||||||
}
|
}
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user