diff options
author | Mattias Andrée <maandree@kth.se> | 2020-05-27 20:27:26 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-05-27 20:27:26 +0200 |
commit | 725cb7ed846f51fae82d9a8678d59d2838d0b3e7 (patch) | |
tree | 36e55cd3ecf5a2224a6571ea7cbf8d54a2fcf8a7 | |
parent | Fix Makefile: rebuild if arg.h is updated (diff) | |
download | sctrace-725cb7ed846f51fae82d9a8678d59d2838d0b3e7.tar.gz sctrace-725cb7ed846f51fae82d9a8678d59d2838d0b3e7.tar.bz2 sctrace-725cb7ed846f51fae82d9a8678d59d2838d0b3e7.tar.xz |
Add an optimisation todo
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | sctrace.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -59,6 +59,8 @@ usage(void) static char * get_string_or_memory(pid_t pid, unsigned long int addr, size_t m, int string, const char **errorp) { + /* TODO use process_vm_readv if supported */ + size_t orig_addr = (size_t)addr; size_t off; char *ret = NULL; |