aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-05-27 20:27:26 +0200
committerMattias Andrée <maandree@kth.se>2020-05-27 20:27:26 +0200
commit725cb7ed846f51fae82d9a8678d59d2838d0b3e7 (patch)
tree36e55cd3ecf5a2224a6571ea7cbf8d54a2fcf8a7
parentFix Makefile: rebuild if arg.h is updated (diff)
downloadsctrace-725cb7ed846f51fae82d9a8678d59d2838d0b3e7.tar.gz
sctrace-725cb7ed846f51fae82d9a8678d59d2838d0b3e7.tar.bz2
sctrace-725cb7ed846f51fae82d9a8678d59d2838d0b3e7.tar.xz
Add an optimisation todo
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--sctrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sctrace.c b/sctrace.c
index 8f3fd46..17e8e76 100644
--- a/sctrace.c
+++ b/sctrace.c
@@ -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;