summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNanyong Sun <sunnanyong@huawei.com>2021-04-30 16:28:47 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-05-22 10:19:29 -0700
commitf5397c3ee0a3e2ca0a6d66d079ffcd5386b45b81 (patch)
tree8372806f05bfd2b3cca7a2eef002302e0c3f04c8 /tools/perf/scripts/python/export-to-postgresql.py
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
riscv: mm: add _PAGE_LEAF macro
In riscv, a page table entry is leaf when any bit of read, write, or execute bit is set. So add a macro:_PAGE_LEAF instead of (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC), which is frequently used to determine if it is a leaf page. This make code easier to read, without any functional change. Signed-off-by: Nanyong Sun <sunnanyong@huawei.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions