, their
implementation was straightforward.
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h | 2 ++
linux-user/syscall_defs.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 0a4e3f1..1f1f3e6 100644
--- a/linux-user/ioctls.h
+++ b/linux-user
comprehensible
v3:
* changed two instances of MK_PTR(TYPE_ULONG) to TYPE_ULONG
v2:
* added description of each ioctl in patches
* wrote a more detailed cover letter with description of testing
* changed one instance of TYPE_INT to MK_PTR(TYPE_INT)
Filip Bozuta (13):
linux-user
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h| 4
linux-user/syscall.c | 1 +
linux-user/syscall_defs.h | 5 +
linux-user/syscall_types.h | 7 +++
4 files changed, 17 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 1f1f3e6..ed1bd4c 100644
-
are of
type 'int', except the last one that is of type 'long'. That is
the reason why a separate target structure (target_rtc_pll_info)
is defined in linux-user/syscall_defs. The rest of the
implementation is straightforward.
Reviewed-by: Laurent Vivier
Signed-off-by: Filip Bozuta
---
linux
at
which test the program aborts. It was also modified so that it
doesn't have styling problems detected by 'scripts/checkpatch.pl'.
Signed-off-by: Filip Bozuta
---
.../Disable/disableEnhancedRead.c | 29
.../EnhancedRead-test/Enable/enableEnhancedRead.c | 29
.
roblems identified by "scripts/checkpatch.pl".
It is used to further test functionalities of some rtc ioctls by
running rtc clock at different frequencies.
Signed-off-by: Filip Bozuta
---
.../Alarm-time-test/ReadAlarm/getAlarm.c | 33 +++
.../Alarm-time-test/ReadTime/getTime.c
global program that tests multiple ioctls at once.
Individual tests were written manually while the global tests were obtained
remotely and
modified so that they fit the QEMU coding style.
Filip Bozuta (2):
tests/tcg/multiarch: Add tests for implemented rtc ioctls
tests/tcg/multiarch: Add tests
the 'btrfs.h'
header is available as to not cause build errors on older
Linux systems.
Signed-off-by: Filip Bozuta
---
linux-user/syscall_defs.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 33a414c50f..731c3d5341 100644
--- a/linux-user
On 1.9.20. 15:06, Peter Maydell wrote:
On Mon, 31 Aug 2020 at 12:08, Laurent Vivier wrote:
The following changes since commit 39335fab59e11cfda9b7cf63929825db2dd3a3e0:
Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-5.2-pull-=
request' into staging (2020-08-28 22:30:11
method:
The implementation was tested using existing tests from
the LTP test suite which was build inside a chroot.
Filip Bozuta (2):
linux-user: Modify 'recvmmsg()' implementation
linux-user: Add support for 'recvmmsg_time64()'
linux-user/syscall.c | 56
.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 27 +++
1 file changed, 19 insertions(+), 8 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index dc89bfacca..762eea0e5b 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3197,7
notes:
Function 'clock_gettime()' is used to check the time before
messages start getting received. After each message is received,
'clock_gettime()' is called and used to check whether the timeout
is expired.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 45
as added for 'SEMOPM' as to be sure
in case the value is not available for some targets.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 13 +++--
linux-user/syscall_defs.h | 2 ++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-
Hello,
On 21.8.20. 20:45, Laurent Vivier wrote:
Filip,
could you have a look to see what's going wrong?
Thanks,
LAurent
Le 21/08/2020 à 18:23, Peter Maydell a écrit :
On Thu, 13 Aug 2020 at 07:51, Laurent Vivier wrote:
The following changes since commit
On 27.8.20. 09:04, Laurent Vivier wrote:
in 32 bit mode, drop the padding in tv_nsec. If host is 64bit and target
is 32bit, the padding bytes will be copied from the target and as the
kernel checks the value, the syscall exits with EINVAL.
Signed-off-by: Laurent Vivier
---
, a separate printing
function was defined in file 'strace.c' that is called instead of
'thunk_print()' to print the contents of the third argument.
Signed-off-by: Filip Bozuta
Based-on: <20200811164553.27713-2-filip.boz...@syrmia.com>
Based-on: <20200723210233.349690-4-
eter CONFIG_BTRFS which is defined in 'configure' if the
header file is present.
Signed-off-by: Filip Bozuta
---
configure | 9 +
linux-user/ioctls.h| 15 +++
linux-user/syscall.c | 3 +++
linux-user/syscall_defs.h | 8 +++
.
Implementation notes:
Ioctl BTRFS_IOC_GET_SUBVOL_ROOTREF uses the above mentioned structure
type as third argument. That is the reason why a aproppriate thunk
structure definition is added in file 'syscall_types.h'.
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h| 7
-user/syscall_types.h'.
Since the thunk type for 'struct ioc_vol_args' was already added in a
previous patch, the rest of the implementation was straightforward.
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h| 24
linux-user/syscall_defs.h | 6 ++
and treeid of the
subvolume.
Implementation notes:
All of the ioctls in this patch use structure types as third arguments.
That is the reason why aproppriate thunk definitions were added in file
'syscall_types.h'.
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h| 20
in file 'syscall_types.h'.
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h| 11 +++
linux-user/syscall_defs.h | 3 +++
linux-user/syscall_types.h | 29 +
3 files changed, 43 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
for
the file descriptor and path of the subvolume for which the snapshot is to
be deleted.
Implementation notes:
Since the thunk type 'struct btrfs_ioctl_vol_args' is defined in the
previous patch, the implementation for these ioctls was straightforward.
Signed-off-by: Filip Bozuta
---
linux
represent flags that can be safely clearead.
Implementation notes:
All of the implemented ioctls use 'struct btrfs_ioctl_feature_flags' as
third argument. That is the reason why a corresponding defintion was added
in file 'linux-user/syscall_types.h'.
Signed-off-by: Filip Bozuta
---
thunk definitions were added in file
'syscall_types.h'.
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h| 27 +++
linux-user/syscall_defs.h | 7 +++
linux-user/syscall_types.h | 29 +
3 files changed, 63 insertions(+)
diff
()' and
'host_to_target_timespec64()' were used to convert values
of 'struct timespec' between host and target.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user/syscall.c | 53
1 file changed, 53 insertions(+)
diff --git a/linux-user
unnecesary pointer to timex structure 'phtx'
Filip Bozuta (2):
linux-user: Add support for 'clock_nanosleep_time64()' and
'clock_adjtime64()'
linux-user: Add support for 'rt_sigtimedwait_time64()' and
'sched_rr_get_interval_time64()'
linux-user/syscall.c | 190
'copy_from_user_timveal64()' was added in this patch and
used to convert the 'time' field from target to host.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 137 +-
linux-user/syscall_defs.h | 31 +
2 files changed, 166 insertions(+), 2 deletions
on values which are defined in 'btrfs.h'.
Filip Bozuta (8):
linux-user: Add support for a group of btrfs ioctls used for
subvolumes
linux-user: Add support for a group of btrfs ioctls used for snapshots
linux-user: Add support for btrfs ioctls used to manipulate with
devices
linux-user
argument: 'TARGET_ABI_BITS == 64'.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user/syscall.c | 60
1 file changed, 50 insertions(+), 10 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index fc6a6e32e4
was tested
using tests from the LTP test suite which was built inside
a chroot.
v2:
-Moved code of 'ppoll()' and 'pselect6()' to a separate
function
-Changed 'time64' from 'int' to 'bool'
Filip Bozuta (2):
linux-user: Add support for ppoll_time64() and pselect6_time64()
linux-user
time64' from which a right 'struct timespec' converting
function is called.
(target_to_host/host_to_target_timespec() for regular and
target_to_host/host_to_target_timespec64() for time64 variants)
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 462
'mq_timedsend()' and 'mq_timedreceive' except that
functions 'target_to_host_timespec64()' and
'host_to_target_timespec64()' were used to convert
values of 'struct timespec' between host and target.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user/syscall.c
:
The implementation of the implemented syscalls was tested
using recently added time64 test in the LTP test suite.
v3:
-Added an error check before converting back the value
of 'struct timespec/timespec64' from host to target
Filip Bozuta (2):
linux-user: Fix 'mq_timedsend
: mq_timedsend() failed expectedly: EFAULT (14)
mq_timedreceive01.c:180: PASS: mq_timedreceive() failed expectedly: EFAULT (14)
(Patch with this new test case will be sent to LTP mailing list soon)
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 16
1 file changed, 12 insertions(+), 4
as added for 'SEMOPM' as to be sure
in case the value is not available for some targets.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 12 ++--
linux-user/syscall_defs.h | 2 ++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-
From: Filip Bozuta
This patch implements strace argument printing functionality for syscalls:
*chown, lchown - change ownership of a file
int chown(const char *pathname, uid_t owner, gid_t group)
int lchown(const char *pathname, uid_t owner, gid_t group)
man page
From: Filip Bozuta
This patch implements strace argument printing functionality for following
syscall:
*fallocate - manipulate file space
int fallocate(int fd, int mode, off_t offset, off_t len)
man page: https://www.man7.org/linux/man-pages/man2/fallocate.2.html
On 2.6.20. 10:52, Aleksandar Markovic wrote:
> Filip Buzuta wants to use his new email address for his future
> work in QEMU.
>
> CC: Filip Bozuta
> Signed-off-by: Aleksandar Markovic
Reviewed-by: Filip Bozuta
> ---
> .mailmap | 1 +
> 1 file changed, 1 insertion(+)
&
From: Filip Bozuta
This patch implements strace argument printing functionality for following
syscalls:
*getxattr, lgetxattr, fgetxattr - retrieve an extended attribute value
ssize_t getxattr(const char *path, const char *name, void *value,
size_t size)
ssize_t lgetxattr
From: Filip Bozuta
This patch implements strace argument printing functionality for syscall:
*lseek - reposition read/write file offset
off_t lseek(int fd, off_t offset, int whence)
man page: https://www.man7.org/linux/man-pages/man2/lseek.2.html
Implementation notes
From: Filip Bozuta
This series covers strace support for printing arguments of following syscalls:
*acct() *lgetxattr()*lseek()
*fsync()*fgetxattr()*chown()
*fdatasync()*listxattr()*lchown()
*listen() *llistxattr
From: Filip Bozuta
This patch implements strace argument printing functionality for following
syscalls:
*acct - switch process accounting on or off
int acct(const char *filename)
man page: https://www.man7.org/linux/man-pages/man2/acct.2.html
*fsync, fdatasync
to 'host_to_target_itimerspec()' and
'target_to_host_itimerspec()'
the only difference being that 'target_to_host_timespec64()' and
'host_to_target_timespec64()' were used.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 132 ++-
1 file changed, 131
to be implemented using already existing functions that convert 'struct
timespec':
'target_to_host_timespec()' and 'host_to_target_timespec()'. This makes the
code of 'target_to_host_itimerspec()' and 'host_to_target_itimerspec()' more
clean and readable.
Signed-off-by: Filip Bozuta
---
linux-user
of the implemented syscalls was tested
using already existing tests from LTP test suite which
was built inside chroot.
Filip Bozuta (2):
linux-user: Modify 'target_to_host/host_to_target_itimerspec()'
linux-user: Add support for a group of 2038 safe syscalls
linux-user/syscall.c | 166
for
the file descriptor and path of the subvolume for which the snapshot is to
be deleted.
Implementation notes:
Since the thunk type 'struct btrfs_ioctl_vol_args' is defined in the
previous patch, the implementation for these ioctls was straightforward.
Signed-off-by: Filip Bozuta
Reviewed
-user/syscall_types.h'.
Since the thunk type for 'struct ioc_vol_args' was already added in a
previous patch, the rest of the implementation was straightforward.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user/ioctls.h| 24
linux-user/
eter CONFIG_BTRFS which is defined in 'configure' if the
header file is present.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
configure | 9 +
linux-user/ioctls.h| 15 +++
linux-user/syscall.c | 3 +++
linux-user/syscall
through QEMU
and the results obtained were the same ones gotten for native
execution.
v2:
* Merged two series in one 8 patch series
* Changed target ioctl definitions from IOR/IOW/IOWR to IORU/IOWU/IOWRU
* Fixed some thunk struct definitions
Filip Bozuta (8):
linux-user: Add
in file 'syscall_types.h'.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user/ioctls.h| 11 +++
linux-user/syscall_defs.h | 3 +++
linux-user/syscall_types.h | 27 +++
3 files changed, 41 insertions(+)
diff --git a/linux-user
thunk definitions were added in file
'syscall_types.h'.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user/ioctls.h| 27 +++
linux-user/syscall_defs.h | 7 +++
linux-user/syscall_types.h | 29 +
3 files
.
Implementation notes:
Ioctl BTRFS_IOC_GET_SUBVOL_ROOTREF uses the above mentioned structure
type as third argument. That is the reason why a aproppriate thunk
structure definition is added in file 'syscall_types.h'.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user
and treeid of the
subvolume.
Implementation notes:
All of the ioctls in this patch use structure types as third arguments.
That is the reason why aproppriate thunk definitions were added in file
'syscall_types.h'.
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h| 20
represent flags that can be safely clearead.
Implementation notes:
All of the implemented ioctls use 'struct btrfs_ioctl_feature_flags' as
third argument. That is the reason why a corresponding defintion was added
in file 'linux-user/syscall_types.h'.
Signed-off-by: Filip Bozuta
with enumerated values to
use this new api.
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user/strace.c | 31 +++
1 file changed, 31 insertions(+)
diff --git a/linux-user/strace.c b/linux-user/strace.c
index 40f863c6e2..def92c4d73 100644
--- a/linux
nction "regpairs_aligned()" was cut & pasted from "syscall.c" to "qemu.h"
as it is used by functions "print_truncate64()" and "print_ftruncate64()"
to print the offset arguments of "truncate64()" and "ftruncate64()".
the new 'print_syscall_err()'
v4:
* modified 'print_itimerval()' function in 'syscall.c'
Filip Bozuta (5):
linux-user: Make cpu_env accessible in strace.c
linux-user: Add strace support for printing arguments of
truncate()/ftruncate() and getsid()
linux-user: Add strace support f
o, all defined "print_*" and "print_syscall_ret*" functions
in "strace.c" were changed to have the new "void *cpu_env".
This was done to not cause build errors (even though none of
these functions use this argument).
Signed-off-by: Filip Bozuta
ypes, so the
rest of the implementation was handled by stating an appropriate
printing format in file "strace.list". Syscall mlock2() is not implemented
in
"syscall.c" and thus it's argument printing is not implemented in this
patch.
Signed-off-by: Filip Bozuta
ed a little so that it
prints the field names beside the values.
Syscalls "clock_getres()" and "clock_gettime()" have the same number
and types of arguments and thus their print functions "print_clock_getres"
and "print_clock_gettime" shar
EMOPM' as to be sure
in case the value is not available for some targets.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 1211e759c2..4743a5bef2 100644
--- a/linux-
argument: 'TARGET_ABI_BITS == 64'.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 55
1 file changed, 46 insertions(+), 9 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8f63a46f58..44a13c5ec2 100644
--- a/linux
timespec' between target and host.
(target_to_host/host_to_target_timespec() for regular and
target_to_host/host_to_target_timespec64() for time64 variants)
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 101 ---
1 file changed, 86 insertions
was tested
using tests from the LTP test suite which was built inside
a chroot.
Filip Bozuta (2):
linux-user: Add support for ppoll_time64() and pselect6_time64()
linux-user: Add support for utimensat_time64() and semtimedop_time64()
linux-user/syscall.c | 154
On 30.7.20. 04:55, Leif N Huhn wrote:
This patch implements functionalities of following ioctls:
SG_GET_VERSION_NUM - Returns SG driver version number
The sg version numbers are of the form "x.y.z" and the single number given
by the SG_GET_VERSION_NUM ioctl() is calculated by
Hello Leif,
On 30.7.20. 04:55, Leif N Huhn wrote:
Hi. This is my first time trying to contribute to qemu. This patch
works correctly for architectures with the same bit-width, for example
32bit arm host and i386 user binary. Here is an example with the sg_simple2
executable from
. This argument is only passed
in case of 'TARGET_NR_recvmmsg' and for 'TARGENT_NR_sendmmsg' 0 is
passed. Function 'do_sendrecvmmsg()' was also updated accordingly in
'do_socketcall()' for 'TARGET_SYS_recvmmsg' and 'TARGET_SYS_sendmmsg'.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 22
if 'TARGET_ABI_BITS == 32'
and 1 otherwise).
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 25 ++---
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 420d7e7334..ed9c2cb7ab 100644
--- a/linux-user/syscall.c
.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 243 ---
1 file changed, 159 insertions(+), 84 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 05f03919ff..8cbefdb561 100644
--- a/linux-user/syscall.c
+++ b/linux-user
suite
where a timeout test case was added for 'recvmmsg()'. This
modified test suite can be found at:
https://github.com/bozutaf/ltp
(A patch with this fix will be sent to LTP mailing list soon)
Filip Bozuta (3):
linux-user: Modify 'sendmmsg()' and 'recvmmsg()' implementation
for all test cases.
Signed-off-by: Filip Bozuta
---
linux-user/syscall.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 05f03919ff..920656191b 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -11722,8
ot;
which returns a "," or an empty string "" based on its argument (0 for ","
and
other for "").
Signed-off-by: Filip Bozuta
Reviewed-by: Laurent Vivier
---
linux-user/strace.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff -
represent flags that can be safely clearead.
Implementation notes:
All of the implemented ioctls use 'struct btrfs_ioctl_feature_flags' as
third argument. That is the reason why a corresponding defintion was added
in file 'linux-user/syscall_types.h'.
Signed-off-by: Filip Bozuta
---
for
the file descriptor and path of the subvolume for which the snapshot is to
be deleted.
Implementation notes:
Since the thunk type 'struct btrfs_ioctl_vol_args' is defined in the
previous patch, the implementation for these ioctls was straightforward.
Signed-off-by: Filip Bozuta
---
linux
.
All applicable compiled programs were in turn executed through QEMU
and the results obtained were the same ones gotten for native
execution.
Filip Bozuta (4):
linux-user: Add support for a group of btrfs ioctls used for
subvolumes
linux-user: Add support for a group of btrfs
eter CONFIG_BTRFS which is defined in 'configure' if the
header file is present.
Signed-off-by: Filip Bozuta
---
configure | 9 +
linux-user/ioctls.h| 15 +++
linux-user/syscall.c | 3 +++
linux-user/syscall_defs.h | 10 +
-user/syscall_types.h'.
Since the thunk type for 'struct ioc_vol_args' was already added in a
previous patch, the rest of the implementation was straightforward.
Signed-off-by: Filip Bozuta
---
linux-user/ioctls.h| 24
linux-user/syscall_defs.h | 12 +
o, all defined "print_*" and "print_syscall_ret*" functions
in "strace.c" were changed to have the new "void *cpu_env".
This was done to not cause build errors (even though none of
these functions use this argument).
Signed-off-by: Filip Bozut
nction "regpairs_aligned()" was cut & pasted from "syscall.c" to "qemu.h"
as it is used by functions "print_truncate64()" and "print_ftruncate64()"
to print the offset arguments of "truncate64()" and "ftruncate6
ypes, so the
rest of the implementation was handled by stating an appropriate
printing format in file "strace.list". Syscall mlock2() is not implemented
in
"syscall.c" and thus it's argument printing is not implemented in this
patch.
Signed-off-by: Filip Bozuta
---
linux-
s()"
and "clocK_gettime()" have the same number and types of arguments and
thus their print functions "print_clock_getres" and "print_clock_gettime"
shate a common definition in file "strace.c".
Signed-off-by: Filip Bozuta
---
linux-user/strace.c
* added a function 'print_itimer_type' that prints the interval timer
type
Filip Bozuta (4):
linux-user: Make cpu_env accessible in strace.c
linux-user: Add strace support for printing arguments of
truncate()/ftruncate() and getsid()
linux-user: Add strace support for printing argume
qemu_log("-1 errno=%d", (int)-ret);
errstr = target_strerror(-ret);
if (errstr) {
qemu_log(" (%s)", errstr);
Reviewed-by: Filip Bozuta
quot;void print(void *arg)" was added in this structure as a
special print function. Also, function "thunk_print()" was changed
a little so that it uses this special print function in case
it is defined. This printing function was instantiated with the
defined "p
Function "print_fdset()" in "strace.c" is used to print the file descriptor
values in "print__newselect()" which prints arguments of syscall _newselect().
Until changes from this patch, this function was printing "," even after the
last value of the fd_set argument. This was changed in this patch
From: Filip Bozuta
This patch implements strace argument printing functionality for following
syscalls:
*getxattr, lgetxattr, fgetxattr - retrieve an extended attribute value
ssize_t getxattr(const char *path, const char *name, void *value,
size_t size)
ssize_t lgetxattr
From: Filip Bozuta
This patch implements strace argument printing functionality for following
syscalls:
*acct - switch process accounting on or off
int acct(const char *filename)
man page: https://www.man7.org/linux/man-pages/man2/acct.2.html
*fsync, fdatasync
From: Filip Bozuta
Structure "struct syscallname" in file "strace.c" is used for "-strace"
to print arguments and return values of syscalls. The last field of
this structure "result" represents the calling function that prints the
From: Filip Bozuta
This patch implements strace argument printing functionality for syscall:
*lseek - reposition read/write file offset
off_t lseek(int fd, off_t offset, int whence)
man page: https://www.man7.org/linux/man-pages/man2/lseek.2.html
Implementation notes
From: Filip Bozuta
This patch implements strace argument printing functionality for following
syscall:
*fallocate - manipulate file space
int fallocate(int fd, int mode, off_t offset, off_t len)
man page: https://www.man7.org/linux/man-pages/man2/fallocate.2.html
From: Filip Bozuta
This patch implements strace argument printing functionality for syscalls:
*chown, lchown - change ownership of a file
int chown(const char *pathname, uid_t owner, gid_t group)
int lchown(const char *pathname, uid_t owner, gid_t group)
man page
From: Filip Bozuta
This series covers strace support for printing arguments of following syscalls:
*acct() *lgetxattr() *removexattr() *lchown()
*fsync() *fgetxattr() *lremovexattr() *fallocate()
*fdatasync() *listxattr
From: Filip Bozuta
Socket ioctls SIOCGSTAMP and SIOCGSTAMPNS, used for timestamping the socket
connection, are defined in file "ioctls.h" differently from other ioctls.
The reason for this difference is explained in the comments above their
definition.
These ioctls didn't have def
From: Filip Bozuta
This series introduces the functionality in strace to print arguments for
ioctls. This is gonna be a useful adittion as it indroduces a good debugging
and diagnostic mechanism for user programs cross compiled for different
architectures.
The first patch in the series
From: Filip Bozuta
This patch implements functionality for strace argument printing for ioctls.
When running ioctls through qemu with "-strace", they get printed in format:
"ioctl(fd_num,0x*,0x*) = ret_value"
where the request code an the ioctl's third
() *clock_settime()
Filip Bozuta (3):
linux-user: Add strace support for printing arguments of
truncate()/ftruncate() and getsid()
linux-user: Add strace support for printing arguments of syscalls used
to lock and unlock memory
linux-user: Add strace support for printing arguments of some
ting format in file "strace.list". Syscall mlock2() is not implemented
in
"syscall.c" and thus it's argument printing is not implemented in this
patch.
Signed-off-by: Filip Bozuta
---
linux-user/strace.c| 21 +
linux-user/strace.list | 8
2 files changed
s, so the rest of the
implementation was handled by stating an appropriate printing format in file
"strace.list".
Signed-off-by: Filip Bozuta
---
linux-user/strace.c| 14 ++
linux-user/strace.list | 10 +-
2 files changed, 19 insertions(+), 5 deletions(-)
diff
int_timeval()" was changed a little so
that it prints the field names beside the values. Syscalls "clock_getres()"
and "clocK_gettime()" have the same number and types of arguments and
thus their print functions "print_clock_ge
From: Filip Bozuta
This patch implements strace argument printing functionality for following
syscall:
*fallocate - manipulate file space
int fallocate(int fd, int mode, off_t offset, off_t len)
man page: https://www.man7.org/linux/man-pages/man2/fallocate.2.html
101 - 200 of 262 matches
Mail list logo