-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load blockmap and LLVM bitcode sections from the ELF binary.
This is to reflect a change in ykllvm. In short, it's not obviously correct for us to add SHF_ALLOC to those sections. For more details see: ykjit#923
- Loading branch information
Showing
12 changed files
with
56 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ykllvm
updated
5 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
//! This module is only enabled when the `yk_testing` feature is enabled. It contains functions | ||
//! that are only needed when testing internal yk code. | ||
use hwtracer::llvm_blockmap::BlockMap; | ||
use hwtracer::llvm_blockmap::LLVM_BLOCK_MAP; | ||
|
||
#[no_mangle] | ||
pub extern "C" fn __yktrace_hwt_mapper_blockmap_new() -> *mut BlockMap { | ||
Box::into_raw(Box::new(BlockMap::new())) | ||
} | ||
|
||
#[no_mangle] | ||
pub extern "C" fn __yktrace_hwt_mapper_blockmap_free(bm: *mut BlockMap) { | ||
drop(unsafe { Box::from_raw(bm) }); | ||
} | ||
|
||
#[no_mangle] | ||
pub extern "C" fn __yktrace_hwt_mapper_blockmap_len(bm: *mut BlockMap) -> usize { | ||
unsafe { &*bm }.len() | ||
pub extern "C" fn __yktrace_hwt_mapper_blockmap_len() -> usize { | ||
LLVM_BLOCK_MAP.len() | ||
} |