Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Update fillers.h
Browse files Browse the repository at this point in the history
  • Loading branch information
tzachiabo authored Oct 2, 2023
1 parent b91ef19 commit 781914c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions driver/bpf/fillers.h
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ static __always_inline unsigned long bpf_get_mm_counter(struct mm_struct *mm,
{
long val;

// See 6.2 kernel commit: https://github.com/torvalds/linux/commit/f1a7941243c102a44e8847e3b94ff4ff3ec56f25
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
bpf_probe_read(&val, sizeof(val), &mm->rss_stat.count[member]);
#else
Expand Down

0 comments on commit 781914c

Please sign in to comment.