On Mon, Jan 23, 2023 at 11:05 PM Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> wrote: > > 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@xxxxxxxxxxxxxxx> > Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx> > Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> > mm->context.untag_mask = -1UL; > diff --git a/fs/proc/array.c b/fs/proc/array.c > index 49283b8103c7..d2a94eafe9a3 100644 > --- a/fs/proc/array.c > +++ b/fs/proc/array.c Right now mm_untag_mask() is visible from array.c thanks to inclusion of <linux/cpuset.h>, which happens to include <linux/mmu_context.h>. But maybe it would be better to directly include mmu_context.h here?