To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 6203641b authored by Javad Ebrahimian Amiri's avatar Javad Ebrahimian Amiri
Browse files

made huge improvements to benchmark results, now unify using str (not bytearray)

parent 839090ef
...@@ -180,6 +180,10 @@ fn link_executable_internal( ...@@ -180,6 +180,10 @@ fn link_executable_internal(
} }
// dylibs used for linux // dylibs used for linux
if cfg!(target_os = "linux") { if cfg!(target_os = "linux") {
// cc.arg("-g");
// cc.arg("-fprofile-instr-generate");
// cc.arg("-fcoverage-mapping");
// cc.arg("-lprofiler");
cc.arg("-pthread"); cc.arg("-pthread");
cc.arg("-ldl"); cc.arg("-ldl");
cc.arg("-lm"); cc.arg("-lm");
......
...@@ -256,16 +256,16 @@ impl EMMRegion { ...@@ -256,16 +256,16 @@ impl EMMRegion {
let _size = sys_get_aligned_size(_size, POINTER_SIZE); let _size = sys_get_aligned_size(_size, POINTER_SIZE);
let res = self.freeptr; let res = self.freeptr;
if self.has_enough_space(_size) { if self.has_enough_space(_size) {
trace_if!( // trace_if!(
log_settings::MM_RTMU_TRACE, // log_settings::MM_RTMU_TRACE,
"RALLOC: allocating {} bytes", // "RALLOC: allocating {} bytes",
_size // _size
); // );
self.freeptr += _size as ByteOffset; self.freeptr += _size as ByteOffset;
res res
} else { } else {
panic!("RALLOC: not enough free space in scope:\n {:#?}", self); panic!("RALLOC: not enough free space in scope:\n {:#?}", self);
unsafe { Address::from_usize(0) } // unsafe { Address::from_usize(0) }
} }
} }
...@@ -317,15 +317,19 @@ pub extern "C" fn muentry_delete_reg(regionref: Address) { ...@@ -317,15 +317,19 @@ pub extern "C" fn muentry_delete_reg(regionref: Address) {
/// space /// space
#[no_mangle] #[no_mangle]
pub extern "C" fn muentry_ralloc(regionref: Address, size: usize) -> Address { pub extern "C" fn muentry_ralloc(regionref: Address, size: usize) -> Address {
trace_if!(log_settings::MM_RTMU_TRACE, "=== RALLOC ==="); // trace_if!(log_settings::MM_RTMU_TRACE, "=== RALLOC ===");
trace_if!(log_settings::MM_RTMU_TRACE, "- size: -{}", size); // trace_if!(log_settings::MM_RTMU_TRACE, "- size: -{}", size);
let mut emmregion = unsafe { regionref.to_ptr_mut() as *mut EMMRegion }; // let mut emmregion = unsafe { regionref.to_ptr_mut() as *mut EMMRegion };
trace_if!(log_settings::MM_RTMU_TRACE, "- from region: {:?}", unsafe { // trace_if!(log_settings::MM_RTMU_TRACE, "- from region: {:?}", unsafe {
&(*emmregion) // &(*emmregion)
}); // });
let res = unsafe { (*emmregion).ralloc(size) }; // let res = unsafe { (*emmregion).ralloc(size) };
trace_if!(log_settings::MM_RTMU_TRACE, "=== DONE RALLOC ==="); // trace_if!(log_settings::MM_RTMU_TRACE, "=== DONE RALLOC ===");
res // res
unsafe { (*(regionref.to_ptr_mut() as *mut EMMRegion)).ralloc(size) }
// let res = unsafe { (*emmregion).ralloc(size) };
// trace_if!(log_settings::MM_RTMU_TRACE, "=== DONE RALLOC ===");
// res
} }
#[no_mangle] #[no_mangle]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment