[PATCH v2 0/3] mm: trace: decode architecture-specific VMA flags

Meijing Zhao posted 3 patches 3 weeks, 3 days ago
include/trace/events/mmflags.h | 43 ++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
[PATCH v2 0/3] mm: trace: decode architecture-specific VMA flags
Posted by Meijing Zhao 3 weeks, 3 days ago
From: Meijing Zhao <zhaomeijing@lixiang.com>

show_vma_flags(), which is used by VMA tracepoints and %pGv, names
generic VM_* bits but does not fully decode architecture-specific flag
positions.  As a result, trace output and VMA dumps can show a generic
"arch_1" name or a raw hexadecimal value instead of the meaning assigned
by the target architecture.

This series adds symbolic names for the arm64 and sparc64 meanings of
VM_ARCH_1, arm64 MTE flags, user shadow stack flags, and protection-key
encoding bits under their corresponding configuration guards.

Changes in v2:
- Rebase onto v7.3-rc1.
- Fix the patch 1 changelog: "bti" and "adi" are descriptive trace
  names, but do not match the two-character smaps mnemonics.
- Cc Lorenzo Stoakes.

Meijing Zhao (3):
  mm: trace: decode arm64 and sparc64 VM_ARCH_1 flags
  mm: trace: decode MTE and shadow stack VMA flags
  mm: trace: name protection key encoding bits

 include/trace/events/mmflags.h | 43 ++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

-- 
2.25.1
Re: [PATCH v2 0/3] mm: trace: decode architecture-specific VMA flags
Posted by Andrew Morton 3 hours ago
On Wed,  2 Sep 2026 14:45:07 +0800 Meijing Zhao <zhaomeijing100@gmail.com> wrote:

> show_vma_flags(), which is used by VMA tracepoints and %pGv, names
> generic VM_* bits but does not fully decode architecture-specific flag
> positions.  As a result, trace output and VMA dumps can show a generic
> "arch_1" name or a raw hexadecimal value instead of the meaning assigned
> by the target architecture.
> 
> This series adds symbolic names for the arm64 and sparc64 meanings of
> VM_ARCH_1, arm64 MTE flags, user shadow stack flags, and protection-key
> encoding bits under their corresponding configuration guards.

We're presently not showing any review of this series, if someone is up
for it.

Thanks.