Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into tevoinea/MoreGranularScaleInProtectionErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
tevoinea authored Jun 9, 2023
2 parents dec09bc + a040aa2 commit 25ccdfd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/agent/coverage/src/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ pub fn find_coverage_sites(
let mut offsets = BTreeSet::new();

for function in debuginfo.functions() {
if let Some(location) = symcache.lookup(function.offset.0).next() {
if let Some(file) = location.file() {
if !allowlist.source_files.is_allowed(file.full_path()) {
debug!(
"skipping sweep of `{}:{}` due to excluded source path `{}`",
module.executable_path(),
function.name,
file.full_path(),
);
continue;
}
}
}

let blocks = block::sweep_region(module, &debuginfo, function.offset, function.size)?;

for block in &blocks {
Expand Down

0 comments on commit 25ccdfd

Please sign in to comment.