diff options
| author | Kirill A. Shutemov <[email protected]> | 2023-03-12 14:26:04 +0300 |
|---|---|---|
| committer | Dave Hansen <[email protected]> | 2023-03-16 13:08:40 -0700 |
| commit | f7d304343b9d2456ffba23b99d2345408251ea45 (patch) | |
| tree | c7e5315aaeaac40909084a5784a0536c858091b6 /include/linux | |
| parent | 2f8794bd087e7958c8d1f0a0538856ca03e0bf3c (diff) | |
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 <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Alexander Potapenko <[email protected]>
Link: https://lore.kernel.org/all/20230312112612.31869-10-kirill.shutemov%40linux.intel.com
Diffstat (limited to 'include/linux')
| -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 |