basic_filters: move legacy tracing class names to the end of table

* basic_filters.c (lookup_class) <syscall_class>: Move names that do not
start with % to the end of table.
This commit is contained in:
Дмитрий Левин 2018-01-15 22:58:48 +00:00
parent 8672a7189d
commit 3782831620

View 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;