]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Wrap linux specific syscall sysfs
authorMartin Cermak <mcermak@redhat.com>
Fri, 1 Aug 2025 12:04:24 +0000 (14:04 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 1 Aug 2025 13:59:17 +0000 (15:59 +0200)
commit34dff50cf304d1d4f0d5a1ad3f55f8b3d85ae701
treed7b16bcc147b08a7f6756ff27c92256bfae8894d
parenta5c48217e94a0fb7bac909a2ff13813ac10f5c37
Wrap linux specific syscall sysfs

The sysfs syscall is deprecated, but in some cases it may still
be used.  The Linux Test Project covers it.

The (obsolete) sysfs() system call returns information about the
filesystem types currently present in the kernel.  The specific
form of the sysfs() call and the information returned depends on
the option in effect:

1  Translate the filesystem identifier string fsname into a
   filesystem type index.

2  Translate the filesystem type index fs_index into a null-
   terminated filesystem identifier string.  This string will be
   written to the buffer pointed to by buf.  Make sure that buf
   has enough space to accept the string.

3  Return the total number of filesystem types currently present
   in the kernel.

Declare a sys_sysfs wrapper in priv_syswrap-linux.h and hook it
for {amd64,arm,mips32,mips64,ppc32,ppc64,s390x,x86}-linux
using LINXY with PRE and POST handler in syswrap-linux.c

https://bugs.kde.org/show_bug.cgi?id=506929
NEWS
coregrind/m_syswrap/priv_syswrap-linux.h
coregrind/m_syswrap/syswrap-amd64-linux.c
coregrind/m_syswrap/syswrap-arm-linux.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-mips32-linux.c
coregrind/m_syswrap/syswrap-mips64-linux.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-ppc64-linux.c
coregrind/m_syswrap/syswrap-s390x-linux.c
coregrind/m_syswrap/syswrap-x86-linux.c