Skip to content
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 Java DaCapo benchmark sample provide fixes #646

Open
wants to merge 22 commits into
base: oe_port
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve mmap logging
  • Loading branch information
prp committed Jul 22, 2020
commit d5d745ee43ba4ee63ce21d40a2589da68e97c53b
9 changes: 6 additions & 3 deletions src/enclave/enclave_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 415,15 @@ void* enclave_mmap(
char* rv = ret == MAP_FAILED ? " (FAILED)" : "";
SGXLKL_TRACE_MMAP(
"mmap stats: TOTAL: %8zuKB, USED: %8zuKB, MAX USED: %8zuKB, FREE: "
"%8zuKB, ALLOCATED: %6zuKB (addr = %p, ret = %p) %s%s\n",
"%8zuKB, ALLOCATED: %6zuKB (addr=%p len=%lu prot=%i ret=%p) %s%s\n",
total / 1024,
used / 1024,
mmap_max_allocated / 1024,
free / 1024,
requested / 1024,
addr,
length,
prot,
ret,
mfixed,
rv);
Expand Down Expand Up @@ -468,13 470,14 @@ int enclave_munmap(void* addr, size_t length)
size_t used = total - free;
SGXLKL_TRACE_MMAP(
"munmap stats: TOTAL: %8zuKB, USED: %8zuKB, MAX USED: %8zuKB, "
"FREE: %8zuKB, FREED: %6zuKB (addr = %p)\n",
"FREE: %8zuKB, FREED: %6zuKB (addr=%p len=%lu)\n",
total / 1024,
used / 1024,
mmap_max_allocated / 1024,
free / 1024,
requested / 1024,
addr);
addr,
length);
}
#endif

Expand Down