Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check permission before nullifying type_id's in bcc_map_create_xattr
In the latest kernel, before trying to copy map_name and check map key/value type id, the kernel first tried to allocate map which may hit permission deny error due to unsufficiently charged memory. Let us amend the retry sequence in bcc_map_create_xattr to reflect what kernel does. Note that retry logic can be made simpler if libbpf provides probe logic and stores the result somewhere and bcc can examine these results to tailor parameters without excessive retries. Signed-off-by: Yonghong Song <[email protected]>
- Loading branch information