From 23f9a3a2b798a77c6ce8b54f4ee12e54326f24c9 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 3 Jul 2019 18:56:13 +0000 Subject: [PATCH] xlat: update MPOL_F_* get_mempolicy flags * xlat/get_mempolicy_flags.in (MPOL_F_MEMS_ALLOWED): New constant introduced by Linux kernel v2.6.24-rc1~1212. * NEWS: Mention this. * tests/get_mempolicy.c (main): Update expected output. --- NEWS | 4 ++-- tests/get_mempolicy.c | 4 ++-- xlat/get_mempolicy_flags.in | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 776bbec5..10612448 100644 --- a/NEWS +++ b/NEWS @@ -5,8 +5,8 @@ Noteworthy changes in release ?.? (????-??-??) * Implemented decoding of open_tree, move_mount, fsopen, fsconfig, fsmount, and fspick syscalls. * Enhanced decoding of bpf and clone syscalls. - * Updated lists of AT_*, AUDIT_*, BPF_*, CLONE_*, ETH_*, KEY_*, KVM_*, TIPC_*, - and V4L2_* constants. + * Updated lists of AT_*, AUDIT_*, BPF_*, CLONE_*, ETH_*, KEY_*, KVM_*, MPOL_*, + TIPC_*, and V4L2_* constants. Noteworthy changes in release 5.1 (2019-05-22) ============================================== diff --git a/tests/get_mempolicy.c b/tests/get_mempolicy.c index 656587e4..b999a43e 100644 --- a/tests/get_mempolicy.c +++ b/tests/get_mempolicy.c @@ -68,8 +68,8 @@ main(void) rc = syscall(__NR_get_mempolicy, mode, nodemask, maxnode, addr, flags); printf("get_mempolicy(%p, %p, %lu, %#lx, %s|%#lx) = %ld %s (%m)\n", mode, nodemask, maxnode, addr, - "MPOL_F_NODE|MPOL_F_ADDR", - flags & ~3, rc, errno2name()); + "MPOL_F_NODE|MPOL_F_ADDR|MPOL_F_MEMS_ALLOWED", + flags & ~7, rc, errno2name()); mode = tail_alloc(sizeof(*mode)); diff --git a/xlat/get_mempolicy_flags.in b/xlat/get_mempolicy_flags.in index bdcc6f3e..4e8025b2 100644 --- a/xlat/get_mempolicy_flags.in +++ b/xlat/get_mempolicy_flags.in @@ -1,2 +1,3 @@ MPOL_F_NODE 1 MPOL_F_ADDR 2 +MPOL_F_MEMS_ALLOWED 4 -- 2.40.0