diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-25 11:20:12 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-25 11:20:12 +0200 |
commit | 14f803accad2225b28dc9612a35b1ecdf0f9d8df (patch) | |
tree | 1d32c2bf975461b04fa0dea3bfe3f5ad76b378b3 /common.h | |
parent | Add new system calss and fix faccessat (diff) | |
download | sctrace-14f803accad2225b28dc9612a35b1ecdf0f9d8df.tar.gz sctrace-14f803accad2225b28dc9612a35b1ecdf0f9d8df.tar.bz2 sctrace-14f803accad2225b28dc9612a35b1ecdf0f9d8df.tar.xz |
Add more system call formattings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | common.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -94,6 +94,7 @@ struct process { /* Syscall data */ unsigned long long int scall; unsigned long long int args[6]; + unsigned long long int save[6]; unsigned long long int ret; enum type ret_type; struct output outputs[6]; @@ -117,7 +118,7 @@ const char *get_signum_name(int sig); char *get_string(pid_t pid, unsigned long int addr, size_t *lenp, const char **errorp); int get_struct(pid_t pid, unsigned long int addr, void *out, size_t size, const char **errorp); char *get_memory(pid_t pid, unsigned long int addr, size_t n, const char **errorp); -char *escape_memory(char *str, size_t m); +char *escape_memory(const char *str, size_t m); char *get_escaped_string(pid_t pid, unsigned long int addr, size_t *lenp, const char **errorp); char *get_escaped_memory(pid_t pid, unsigned long int addr, size_t n, const char **errorp); |