ltp.lists.linux.it archive mirror
 help / color / mirror / Atom feed
* [LTP] [PATCH v1] doc: update syscalls statistics
@ 2024-04-22 12:46 Andrea Cervesato
  2024-04-22 13:43 ` Andrea Cervesato via ltp
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Cervesato @ 2024-04-22 12:46 UTC (permalink / raw)
  To: ltp

From: Andrea Cervesato <andrea.cervesato@suse.com>

This patch black-list a few syscalls which are not implemented in the
kernel, untestable or either really old (=< 2.6 kernel version), as well
as defining already tested syscalls.
Also fixed an index issue with table generation.

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
 doc/conf.py | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/doc/conf.py b/doc/conf.py
index 9408ee46e..810dfe5c6 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -76,14 +76,27 @@ def generate_syscalls_stats(_):
         'io_uring_register',
         'epoll_pwait2',
         'quotactl_fd',
+        'pread64',
+        'pwrite64',
+        'fadvise64',
     ]
 
-    # populate with non-syscalls which are present in the kernel sources
-    # syscalls file
+    # populate with not implemented, reserved, unmaintained syscalls defined
+    # inside the syscalls file
     black_list = [
         'reserved177',
         'reserved193',
-        'rseq'
+        'rseq',
+        '_newselect',
+        '_sysctl',
+        'create_module',
+        'get_kernel_syms',
+        'query_module',
+        'nfsservctl',
+        'afs_syscall',
+        'sysmips',
+        'mq_getsetattr',
+        'vserver',
     ]
 
     # fetch syscalls file
@@ -184,12 +197,12 @@ def generate_syscalls_stats(_):
 
     left = index_tested % 3
     if left > 0:
-        for index in range(0, left + 1):
+        for index in range(0, 3 - left):
             table_tested.append(f'      -\n')
 
     left = index_untest % 3
     if left > 0:
-        for index in range(0, left + 1):
+        for index in range(0, 3 - left):
             table_untest.append(f'      -\n')
 
     text.extend(table_tested)
-- 
2.35.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH v1] doc: update syscalls statistics
  2024-04-22 12:46 [LTP] [PATCH v1] doc: update syscalls statistics Andrea Cervesato
@ 2024-04-22 13:43 ` Andrea Cervesato via ltp
  0 siblings, 0 replies; 2+ messages in thread
From: Andrea Cervesato via ltp @ 2024-04-22 13:43 UTC (permalink / raw)
  To: Andrea Cervesato, ltp

Hi,
please ignore this one and take in consideration the v2. It has a couple 
of more syscalls into black-list.

Andrea

On 4/22/24 14:46, Andrea Cervesato wrote:
> From: Andrea Cervesato <andrea.cervesato@suse.com>
>
> This patch black-list a few syscalls which are not implemented in the
> kernel, untestable or either really old (=< 2.6 kernel version), as well
> as defining already tested syscalls.
> Also fixed an index issue with table generation.
>
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
> ---
>   doc/conf.py | 23 ++++++++++++++++++-----
>   1 file changed, 18 insertions(+), 5 deletions(-)
>
> diff --git a/doc/conf.py b/doc/conf.py
> index 9408ee46e..810dfe5c6 100644
> --- a/doc/conf.py
> +++ b/doc/conf.py
> @@ -76,14 +76,27 @@ def generate_syscalls_stats(_):
>           'io_uring_register',
>           'epoll_pwait2',
>           'quotactl_fd',
> +        'pread64',
> +        'pwrite64',
> +        'fadvise64',
>       ]
>   
> -    # populate with non-syscalls which are present in the kernel sources
> -    # syscalls file
> +    # populate with not implemented, reserved, unmaintained syscalls defined
> +    # inside the syscalls file
>       black_list = [
>           'reserved177',
>           'reserved193',
> -        'rseq'
> +        'rseq',
> +        '_newselect',
> +        '_sysctl',
> +        'create_module',
> +        'get_kernel_syms',
> +        'query_module',
> +        'nfsservctl',
> +        'afs_syscall',
> +        'sysmips',
> +        'mq_getsetattr',
> +        'vserver',
>       ]
>   
>       # fetch syscalls file
> @@ -184,12 +197,12 @@ def generate_syscalls_stats(_):
>   
>       left = index_tested % 3
>       if left > 0:
> -        for index in range(0, left + 1):
> +        for index in range(0, 3 - left):
>               table_tested.append(f'      -\n')
>   
>       left = index_untest % 3
>       if left > 0:
> -        for index in range(0, left + 1):
> +        for index in range(0, 3 - left):
>               table_untest.append(f'      -\n')
>   
>       text.extend(table_tested)



-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-22 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-22 12:46 [LTP] [PATCH v1] doc: update syscalls statistics Andrea Cervesato
2024-04-22 13:43 ` Andrea Cervesato via ltp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).