Skip to content

Commit

Permalink
Add local mm_rss_stat definition
Browse files Browse the repository at this point in the history
Summary:
Add local definition of struct mm_rss_stat available pre-6.2. Once we switch to
6.4-based vmlinux.h in fbcode this stop compiling because `struct mm_rss_stat`
is not available anymore.

Reviewed By: lnyng

Differential Revision: D56500799

fbshipit-source-id: e5371bae807615011d6f615ea78ea5e7bd83b9ab
  • Loading branch information
Andrii Nakryiko authored and facebook-github-bot committed Apr 24, 2024
1 parent 5a74205 commit bb25b82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion below/src/bpf/exitstat.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ struct task_struct___post516 {
struct thread_info___post516 thread_info;
} __attribute__((preserve_access_index));

struct mm_rss_stat___pre62 {
atomic_long_t count[4];
} __attribute__((preserve_access_index));

struct mm_struct___pre62 {
struct mm_rss_stat rss_stat;
struct mm_rss_stat___pre62 rss_stat;
} __attribute__((preserve_access_index));

struct mm_struct___post62 {
Expand Down

0 comments on commit bb25b82

Please sign in to comment.