Skip to content

Commit

Permalink
bcc/tools: update mountsnoop's based on comment in containers.py
Browse files Browse the repository at this point in the history
this patch just replicates the fix done in
ef330a3
  • Loading branch information
sum12 authored and yonghong-song committed Jul 20, 2021
1 parent e330e81 commit 332e2ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/mountsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
* real struct, but we don't need them, and they're more likely to change.
*/
struct mnt_namespace {
// This field was removed in https://github.com/torvalds/linux/commit/1a7b8969e664d6af328f00fe6eb7aabd61a71d13
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
atomic_t count;
#endif
struct ns_common ns;
};
Expand Down

0 comments on commit 332e2ea

Please sign in to comment.