summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@meta.com>2024-04-24 14:31:02 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2024-04-24 14:31:02 -0700
commitbb25b82e33c629466bc78bd2b6fe7d66e202da78 (patch)
tree63ab4d82e3505bf2d1036984365f6c14e4f3fd28
parent5a74205a063e6e2c4fbf010ab9bec2fdc70eac85 (diff)
Add local mm_rss_stat definition
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
-rw-r--r--below/src/bpf/exitstat.bpf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/below/src/bpf/exitstat.bpf.c b/below/src/bpf/exitstat.bpf.c
index 28109666..6c3bf348 100644
--- a/below/src/bpf/exitstat.bpf.c
+++ b/below/src/bpf/exitstat.bpf.c
@@ -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 {