Skip to content

Commit

Permalink
Apply fix specifically for RHEL 9.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
Molter73 committed Jun 3, 2024
1 parent ab58aa7 commit 7e49041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/bpf/fillers.h
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,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)
#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)) || (PPM_RHEL_RELEASE_CODE > 0 && PPM_RHEL_RELEASE_CODE < PPM_RHEL_RELEASE_VERSION(9, 4))
bpf_probe_read_kernel(&val, sizeof(val), &mm->rss_stat.count[member]);
#else
bpf_probe_read_kernel(&val, sizeof(val), &mm->rss_stat[member].count);
Expand Down

0 comments on commit 7e49041

Please sign in to comment.