summaryrefslogtreecommitdiff
path: root/Userland/Utilities/strace.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2023-03-03 15:47:39 +0200
committerJelle Raaijmakers <jelle@gmta.nl>2023-03-15 20:10:48 +0100
commitd16d805d96d08685e7259569b4ea8875a8124488 (patch)
tree9a4cdba045e8400dd1f55a01284749390368a561 /Userland/Utilities/strace.cpp
parent1e36d5449304226b097a4929a90f846c0ddf1d76 (diff)
downloadserenity-d16d805d96d08685e7259569b4ea8875a8124488.zip
Kernel: Merge {get,set}_process_name syscalls to the prctl syscall
It makes much more sense to have these actions being performed via the prctl syscall, as they both require 2 plain arguments to be passed to the syscall layer, and in contrast to most syscalls, we don't get in these removed syscalls an automatic representation of Userspace<T>, but two FlatPtr(s) to perform casting on them in the prctl syscall which is suited to what has been done in the removed syscalls. Also, it makes sense to have these actions in the prctl syscall, because they are strongly related to the process control concept of the prctl syscall.
Diffstat (limited to 'Userland/Utilities/strace.cpp')
-rw-r--r--Userland/Utilities/strace.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/Userland/Utilities/strace.cpp b/Userland/Utilities/strace.cpp
index b026cac11b..a51e903599 100644
--- a/Userland/Utilities/strace.cpp
+++ b/Userland/Utilities/strace.cpp
@@ -690,11 +690,6 @@ static void format_dbgputstr(FormattedSyscallBuilder& builder, char* characters,
builder.add_argument(StringArgument { { characters, size }, "\0\n"sv });
}
-static void format_get_process_name(FormattedSyscallBuilder& builder, char* buffer, size_t buffer_size)
-{
- builder.add_argument(StringArgument { { buffer, buffer_size }, "\0"sv });
-}
-
static ErrorOr<void> format_syscall(FormattedSyscallBuilder& builder, Syscall::Function syscall_function, syscall_arg_t arg1, syscall_arg_t arg2, syscall_arg_t arg3, syscall_arg_t res)
{
enum ResultType {
@@ -730,9 +725,6 @@ static ErrorOr<void> format_syscall(FormattedSyscallBuilder& builder, Syscall::F
format_chdir(builder, (char const*)arg1, (size_t)arg2);
result_type = Int;
break;
- case SC_get_process_name:
- format_get_process_name(builder, (char*)arg1, (size_t)arg2);
- break;
case SC_getrandom:
format_getrandom(builder, (void*)arg1, (size_t)arg2, (unsigned)arg3);
break;