-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add proper tracing options, remove getenv calls from enclave code. #806
base: oe_port
Are you sure you want to change the base?
Conversation
There's one relevant getenv call in musl, see https://github.com/lsds/sgx-lkl-musl/blob/a6360f883fd906b18c1878254547ad72da28d7e6/ldso/dynlink.c#L822. This is now the only tracing/debug env var that gets passed through to the enclave as an env var: sgx-lkl/src/main-oe/sgxlkl_params.c Line 3 in 9979a88
I'm not sure this is still useful (see bunch of commented code further up in the file). Can I remove it? |
920f5ff
to
f48d41d
Compare
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
Signed-off-by: Christoph M. Wintersteiger <[email protected]>
cbd5b68
to
c83e7f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left minor questions.
This is part of a mechanism that, instead of loading debug symbols inside the enclave and then passing a pointer to gdb, it allows the enclave image to be mounted outside and thus gdb can access the files with symbols directly. For large applications (e.g. TF), this results in much better performance during debugging. |
Great, thanks for the explanation, then it makes sense to keep it! |
This adds proper tracing options, which removes the need for
getenv
calls in the enclave. Fixes #780.Goes with lsds/sgx-lkl-musl#36.