Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/memleak: Use compact size of key for sizes and memptrs maps
As sizes and memptrs map are to store the temporal information of each thread, use only tid portion of the return value of bpf_get_current_pid_tgid as a key of sizes and memptrs map. This change could reduce the key size of each map from 64 bits to 32 bits. The lower 32 bits portion of the return value of bpf_get_current_pid_tgid is kernel's view of the pid, which in user space is usually presented as the tid. Please refer this document for further information: https://github.com/iovisor/bcc/blob/master/docs/reference_guide.md#4-bpf_get_current_pid_tgid
- Loading branch information