]> granicus.if.org Git - strace/commitdiff
xlat: rename policies to mpol_modes
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 3 Jul 2019 18:56:13 +0000 (18:56 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 3 Jul 2019 18:56:13 +0000 (18:56 +0000)
The former name was too vague.

* xlat/policies.in: Rename to xlat/mpol_modes.in; all users updated.

numa.c
tests/get_mempolicy.c
tests/set_mempolicy.c
xlat/mpol_modes.in [moved from xlat/policies.in with 100% similarity]

diff --git a/numa.c b/numa.c
index 0029dfb3a3fefda441eb34d306560bee833fe88c..4434f5d20bc5b977bd9526f312dd78386d38461d 100644 (file)
--- 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(", ");
index 7667bdb028e6bc1c2eca75ee8597c0d1fbe10e9c..656587e4347a2bda23d41b597af41be7dfc16f6a 100644 (file)
@@ -16,7 +16,7 @@
 # include <unistd.h>
 
 # 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;
index 46703713f2dca92c3cc4f09abfe5f9c738303466..2f4c7fec78293aa94be1e7738eefb75541a03458 100644 (file)
@@ -19,7 +19,7 @@
 # include <unistd.h>
 
 # include "xlat.h"
-# include "xlat/policies.h"
+# include "xlat/mpol_modes.h"
 
 # define MAX_STRLEN 3
 # define NLONGS(n) ((n + 8 * sizeof(long) - 2) \
similarity index 100%
rename from xlat/policies.in
rename to xlat/mpol_modes.in