History log of /haiku/src/bin/debug/strace/NetworkTypes.cpp
Revision Date Author Comments
# a2cb4665 05-Jun-2023 Trung Nguyen <trungnt282910@gmail.com>

strace: Improvements

- Added some utility functions to the `Context` class.
- Updated the `sockaddr` handler to retrieve the next sibling
rather than the sibling at index 2. This allows the handler to
work for syscalls where the `socklen_t` argument is not the third
one, for example, `_kern_recvfrom`.
- Added the ability to print the `flatArgs` for `_kern_exec` and
`_kern_load_image`.

Change-Id: Ia4cf0a30a5cf972274820bbf068101450db52189
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6498
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 17d9a20c 05-Jun-2023 Trung Nguyen <trungnt282910@gmail.com>

strace: Add support for struct sockaddr

- Updated old `sockaddr *` formatting code to work with current
`strace` structure.
- Add support for `AF_UNIX` family address.

Change-Id: I13f7b0a3eb913ab188bea68f8ea84e928b753154
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6497
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 840faa40 23-May-2023 Jérôme Duval <jerome.duval@gmail.com>

strace: add network definitions

move select/poll to network.cpp

Change-Id: Ie70b2f5ae890b69db633ea5f45d2e8f0a2441a13
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6468
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 8af65cc4 03-Jun-2022 Augustin Cavalier <waddlesplash@gmail.com>

strace: Fix and enable tracing of msghdr structures.

Useful for sendmsg/recvmsg. However at present it only works for recvmsg,
as sendmsg's parameter is const, and this is not automatically matched.


# 1d2cf139 26-Apr-2022 Jérôme Duval <jerome.duval@gmail.com>

strace: trace fcntl and wait_for_child syscalls parameters

Change-Id: I774e8343139a2bdb3c2f60f37cab3a7207739c7c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5251
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 101dc0ba 17-Dec-2021 Jérôme Duval <jerome.duval@gmail.com>

strace: fix revents output for poll syscall

each poll_fd struct should be checked, valid when not -1 and revents not zero.

Change-Id: Ia624ad1369ad1a6066c9970a47cfac63fa773702
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4821
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 39782e55 04-Dec-2021 Jérôme Duval <jerome.duval@gmail.com>

strace: support trace for poll() and select()

in the case of poll(), the events should be printed before the actual syscall,
and the revents after, while taking in account the return value.
thus B_DEBUGGER_MESSAGE_PRE_SYSCALL needs to be enabled and handled.
the attribute "preSyscall" is added to identify such syscalls, and the parameters
are identified with the attribute "inOut".

Change-Id: I390643ea176c720738c5ec4fc75a3a4c7125a3cd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4763
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# aa2c061c 22-Apr-2018 Fredrik Holmqvist <fredrik.holmqvist@gmail.com>

cppcheck: Shifting 32-bit value by 63 bits is undefined.


# 8df6a8db 15-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Moved strace sourced to src/bin/debug/.
* Factored a few functions out of strace that can be reused.
* Added the beginnings of a "profile" command. It is very much work in
progress, though it is already able to profile the main thread of a
program.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27533 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8df6a8dbf579280f55b61d725e470dee5d504e83 15-Sep-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Moved strace sourced to src/bin/debug/.
* Factored a few functions out of strace that can be reused.
* Added the beginnings of a "profile" command. It is very much work in
progress, though it is already able to profile the main thread of a
program.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27533 a95241bf-73f2-0310-859d-f6bbb57e9c96