Skip to content

Commit

Permalink
valloc and pvalloc is deprecated in bionic on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ripper authored and yonghong-song committed Jul 2, 2020
1 parent f0bbf32 commit 581b198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/memleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ def attach_probes(sym, fn_prefix=None, can_fail=False):
attach_probes("calloc")
attach_probes("realloc")
attach_probes("posix_memalign")
attach_probes("valloc")
attach_probes("valloc", can_fail=True) # failed on Android, is deprecated in libc.so from bionic directory
attach_probes("memalign")
attach_probes("pvalloc")
attach_probes("pvalloc", can_fail=True) # failed on Android, is deprecated in libc.so from bionic directory
attach_probes("aligned_alloc", can_fail=True) # added in C11
bpf.attach_uprobe(name=obj, sym="free", fn_name="free_enter",
pid=pid)
Expand Down

0 comments on commit 581b198

Please sign in to comment.