mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 23:01:09 +00:00
mm_event feature exports mm_event_count function and adds new fields in the task_struct. Fix ABI diffs by adding the necessary padding. Bug: 80168800 Bug: 116825053 Bug: 153442668 Test: boot Change-Id: I4e69c994f47402766481c58ab5ec2071180964b8 Signed-off-by: Minchan Kim <minchan@google.com> (cherry picked from commit 04ff5ec537a5f9f546dcb32257d8fbc1f4d9ca2d) Signed-off-by: Martin Liu <liumartin@google.com> [surenb: cherry picked and trimmed the original patch to include only necessary changes to resolve ABI diff for task_struct and mm_event_count, changed enum mm_event_type to contain the final members] Bug: 149182139 Test: build and boot Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Iacdba61298ba15fc71b46e0323b4160f174300b7
23 lines
384 B
C
23 lines
384 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_MM_EVENT_H
|
|
#define _LINUX_MM_EVENT_H
|
|
|
|
enum mm_event_type {
|
|
MM_MIN_FAULT = 0,
|
|
MM_MAJ_FAULT = 1,
|
|
MM_READ_IO = 2,
|
|
MM_COMPACTION = 3,
|
|
MM_RECLAIM = 4,
|
|
MM_SWP_FAULT = 5,
|
|
MM_KERN_ALLOC = 6,
|
|
MM_TYPE_NUM = 7,
|
|
};
|
|
|
|
struct mm_event_task {
|
|
unsigned int count;
|
|
unsigned int max_lat;
|
|
u64 accm_lat;
|
|
} __attribute__ ((packed));
|
|
|
|
#endif
|