From d3f1f93eda69905932bde4f66b44d72f9211909a Mon Sep 17 00:00:00 2001 From: Andrea Cervesato Date: Fri, 26 Apr 2024 13:57:56 +0200 Subject: [PATCH] doc: update more syscalls stats Some more syscalls are already tested in LTP, but they are part of different testing suites. For example, seccomp() is tested in prctl() testing suite. Some other syscalls need to be blacklisted, since they are part of MIPS or internal kernel usage. Reviewed-by: Petr Vorel Signed-off-by: Andrea Cervesato --- doc/conf.py | 59 +++++++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index ac12204509a..c0346388e7f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -39,7 +39,7 @@ spelling_lang = "en_US" spelling_warning = True -spelling_exclude_patterns=['users/stats.rst'] +spelling_exclude_patterns = ['users/stats.rst'] spelling_word_list_filename = "spelling_wordlist" # -- Options for HTML output ------------------------------------------------- @@ -62,49 +62,53 @@ def generate_syscalls_stats(_): # part of a more complex scenario. In the following list, we define syscalls # which we know they are 100% tested already. white_list = [ - 'rt_sigpending', - 'sethostname', - 'lsetxattr', - 'inotify_add_watch', - 'inotify_rm_watch', - 'newfstatat', - 'pselect6', + 'epoll_pwait2', + 'fadvise64', 'fanotify_init', 'fanotify_mark', - 'prlimit64', 'getdents64', - 'pkey_mprotect', - 'pkey_alloc', - 'pkey_free', - 'io_uring_setup', - 'io_uring_enter', - 'io_uring_register', - 'epoll_pwait2', - 'quotactl_fd', - 'pread64', - 'pwrite64', - 'fadvise64', 'getmsg', 'getpmsg', + 'inotify_add_watch', + 'inotify_rm_watch', + 'io_uring_enter', + 'io_uring_register', + 'io_uring_setup', + 'lsetxattr', + 'newfstatat', 'putmsg', 'putpmsg', + 'pkey_alloc', + 'pkey_free', + 'pkey_mprotect', + 'prlimit64', + 'pread64', + 'pselect6', + 'pwrite64', + 'quotactl_fd', + 'rt_sigpending', + 'seccomp', + 'semtimedop', + 'sethostname', ] # populate with not implemented, reserved, unmaintained syscalls defined # inside the syscalls file black_list = [ - 'reserved177', - 'reserved193', - 'rseq', '_newselect', '_sysctl', + 'afs_syscall', + 'cachectl', 'create_module', 'get_kernel_syms', - 'query_module', + 'mq_getsetattr', 'nfsservctl', - 'afs_syscall', + 'query_module', + 'reserved177', + 'reserved193', + 'restart_syscall', + 'rseq', 'sysmips', - 'mq_getsetattr', 'vserver', ] @@ -167,7 +171,8 @@ def generate_syscalls_stats(_): # generate the statistics file tested_syscalls = [key for key, val in syscalls.items() if val] - text.append('syscalls which are tested under :master:`testcases/kernel/syscalls`:\n\n') + text.append( + 'syscalls which are tested under :master:`testcases/kernel/syscalls`:\n\n') text.append(f'* kernel syscalls: {len(ker_syscalls)}\n') text.append(f'* tested syscalls: {len(tested_syscalls)}\n\n')