aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-06-25 11:20:12 +0200
committerMattias Andrée <maandree@kth.se>2023-06-25 11:20:12 +0200
commit14f803accad2225b28dc9612a35b1ecdf0f9d8df (patch)
tree1d32c2bf975461b04fa0dea3bfe3f5ad76b378b3 /common.h
parentAdd new system calss and fix faccessat (diff)
downloadsctrace-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.h b/common.h
index 43edb74..0f478b7 100644
--- a/common.h
+++ b/common.h
@@ -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);