diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2023-03-12 14:26:04 +0300 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2023-03-16 13:08:40 -0700 |
commit | f7d304343b9d2456ffba23b99d2345408251ea45 (patch) | |
tree | c7e5315aaeaac40909084a5784a0536c858091b6 /include/linux/mmu_context.h | |
parent | 2f8794bd087e7958c8d1f0a0538856ca03e0bf3c (diff) | |
download | lwn-f7d304343b9d2456ffba23b99d2345408251ea45.tar.gz lwn-f7d304343b9d2456ffba23b99d2345408251ea45.zip |
mm: Expose untagging mask in /proc/$PID/status
Add a line in /proc/$PID/status to report untag_mask. It can be
used to find out LAM status of the process from the outside. It is
useful for debuggers.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Alexander Potapenko <glider@google.com>
Link: https://lore.kernel.org/all/20230312112612.31869-10-kirill.shutemov%40linux.intel.com
Diffstat (limited to 'include/linux/mmu_context.h')
-rw-r--r-- | include/linux/mmu_context.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mmu_context.h b/include/linux/mmu_context.h index b9b970f7ab45..14b9c1fa05c4 100644 --- a/include/linux/mmu_context.h +++ b/include/linux/mmu_context.h @@ -28,4 +28,11 @@ static inline void leave_mm(int cpu) { } # define task_cpu_possible(cpu, p) cpumask_test_cpu((cpu), task_cpu_possible_mask(p)) #endif +#ifndef mm_untag_mask +static inline unsigned long mm_untag_mask(struct mm_struct *mm) +{ + return -1UL; +} +#endif + #endif |