From: Dmitry V. Levin Date: Wed, 3 Jul 2019 18:56:13 +0000 (+0000) Subject: xlat: rename policies to mpol_modes X-Git-Tag: v5.2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40bb160d5459ae6df2e884af7697df8ba48bfc1a;p=strace xlat: rename policies to mpol_modes The former name was too vague. * xlat/policies.in: Rename to xlat/mpol_modes.in; all users updated. --- diff --git a/numa.c b/numa.c index 0029dfb3..4434f5d2 100644 --- a/numa.c +++ b/numa.c @@ -52,14 +52,14 @@ SYS_FUNC(migrate_pages) return RVAL_DECODED; } -#include "xlat/policies.h" +#include "xlat/mpol_modes.h" #include "xlat/mbindflags.h" SYS_FUNC(mbind) { printaddr(tcp->u_arg[0]); tprintf(", %" PRI_klu ", ", tcp->u_arg[1]); - printxval64(policies, tcp->u_arg[2], "MPOL_???"); + printxval64(mpol_modes, tcp->u_arg[2], "MPOL_???"); tprints(", "); print_nodemask(tcp, tcp->u_arg[3], tcp->u_arg[4]); tprintf(", %" PRI_klu ", ", tcp->u_arg[4]); @@ -70,7 +70,7 @@ SYS_FUNC(mbind) SYS_FUNC(set_mempolicy) { - printxval(policies, tcp->u_arg[0], "MPOL_???"); + printxval(mpol_modes, tcp->u_arg[0], "MPOL_???"); tprints(", "); print_nodemask(tcp, tcp->u_arg[1], tcp->u_arg[2]); tprintf(", %" PRI_klu, tcp->u_arg[2]); @@ -86,7 +86,7 @@ SYS_FUNC(get_mempolicy) int pol; if (!umove_or_printaddr(tcp, tcp->u_arg[0], &pol)) { tprints("["); - printxval(policies, pol, "MPOL_???"); + printxval(mpol_modes, pol, "MPOL_???"); tprints("]"); } tprints(", "); diff --git a/tests/get_mempolicy.c b/tests/get_mempolicy.c index 7667bdb0..656587e4 100644 --- a/tests/get_mempolicy.c +++ b/tests/get_mempolicy.c @@ -16,7 +16,7 @@ # include # include "xlat.h" -# include "xlat/policies.h" +# include "xlat/mpol_modes.h" # define MAX_STRLEN 3 # define NLONGS(n) ((n + 8 * sizeof(long) - 2) \ @@ -75,13 +75,13 @@ main(void) rc = syscall(__NR_get_mempolicy, mode, 0, 0, 0, 0); printf("get_mempolicy(["); - printxval(policies, (unsigned) *mode, "MPOL_???"); + printxval(mpol_modes, (unsigned) *mode, "MPOL_???"); printf("], NULL, 0, NULL, 0) = %ld\n", rc); *mode = -1; rc = syscall(__NR_get_mempolicy, mode, 0, 0, mode - 1, 2); printf("get_mempolicy(["); - printxval(policies, (unsigned) *mode, "MPOL_???"); + printxval(mpol_modes, (unsigned) *mode, "MPOL_???"); printf("], NULL, 0, %p, MPOL_F_ADDR) = %ld\n", mode - 1, rc); maxnode = get_page_size() * 8; diff --git a/tests/set_mempolicy.c b/tests/set_mempolicy.c index 46703713..2f4c7fec 100644 --- a/tests/set_mempolicy.c +++ b/tests/set_mempolicy.c @@ -19,7 +19,7 @@ # include # include "xlat.h" -# include "xlat/policies.h" +# include "xlat/mpol_modes.h" # define MAX_STRLEN 3 # define NLONGS(n) ((n + 8 * sizeof(long) - 2) \ diff --git a/xlat/policies.in b/xlat/mpol_modes.in similarity index 100% rename from xlat/policies.in rename to xlat/mpol_modes.in