]> granicus.if.org Git - strace/commitdiff
basic_filters: move legacy tracing class names to the end of table
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 15 Jan 2018 22:58:48 +0000 (22:58 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 15 Jan 2018 22:58:48 +0000 (22:58 +0000)
* basic_filters.c (lookup_class) <syscall_class>: Move names that do not
start with % to the end of table.

basic_filters.c

index d20b8809a7877654aaef405796a4da9bb6135f00..4a6488586206cf795ebd2b9ca07222bcab4b826e 100644 (file)
@@ -100,13 +100,6 @@ lookup_class(const char *s)
                const char *name;
                unsigned int value;
        } syscall_class[] = {
-               { "desc",       TRACE_DESC      },
-               { "file",       TRACE_FILE      },
-               { "memory",     TRACE_MEMORY    },
-               { "process",    TRACE_PROCESS   },
-               { "signal",     TRACE_SIGNAL    },
-               { "ipc",        TRACE_IPC       },
-               { "network",    TRACE_NETWORK   },
                { "%desc",      TRACE_DESC      },
                { "%file",      TRACE_FILE      },
                { "%memory",    TRACE_MEMORY    },
@@ -121,6 +114,14 @@ lookup_class(const char *s)
                { "%statfs",    TRACE_STATFS    },
                { "%fstatfs",   TRACE_FSTATFS   },
                { "%%statfs",   TRACE_STATFS_LIKE       },
+               /* legacy class names */
+               { "desc",       TRACE_DESC      },
+               { "file",       TRACE_FILE      },
+               { "memory",     TRACE_MEMORY    },
+               { "process",    TRACE_PROCESS   },
+               { "signal",     TRACE_SIGNAL    },
+               { "ipc",        TRACE_IPC       },
+               { "network",    TRACE_NETWORK   },
        };
 
        unsigned int i;