Skip to content

Commit

Permalink
clang/gcov: Add a way to directly dump memory address
Browse files Browse the repository at this point in the history
Signed-off-by: wangmingrong1 <[email protected]>
  • Loading branch information
W-M-R committed Nov 25, 2024
1 parent 602700a commit 044213a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libs/libbuiltin/compiler-rt/coverage.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,15 @@ void __gcov_dump(void)
_NX_CLOSE(fd);
}

size_t __gcov_dump_to_memory(FAR void *ptr, size_t size)
{
struct lib_memoutstream_s stream;

lib_memoutstream(&stream, ptr, size);

return __llvm_profile_dump(&stream.common);
}

void __gcov_reset(void)
{
}

0 comments on commit 044213a

Please sign in to comment.