aboutsummaryrefslogtreecommitdiffstats
path: root/sctrace.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-01 21:15:49 +0200
committerMattias Andrée <maandree@kth.se>2020-06-01 21:15:49 +0200
commit06edb533f8f3d36a59baf87a31ff65afdd0f4222 (patch)
tree251f35be355e292905d753e9e5d934520c5c9f20 /sctrace.c
parentAdd a todo (diff)
downloadsctrace-06edb533f8f3d36a59baf87a31ff65afdd0f4222.tar.gz
sctrace-06edb533f8f3d36a59baf87a31ff65afdd0f4222.tar.bz2
sctrace-06edb533f8f3d36a59baf87a31ff65afdd0f4222.tar.xz
Fix typo and add rational for why the -a option (truncate arguments/outputs) is useful
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'sctrace.c')
-rw-r--r--sctrace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sctrace.c b/sctrace.c
index 50f417b..2f3b5a8 100644
--- a/sctrace.c
+++ b/sctrace.c
@@ -21,7 +21,7 @@ handle_syscall(struct process *proc)
switch ((int)proc->state) {
default:
- /* Get systemcall arguments */
+ /* Get system call arguments */
if (ptrace(PTRACE_GETREGS, proc->pid, NULL, &regs))
eprintf("ptrace PTRACE_GETREGS %ju NULL <buffer>:", (uintmax_t)proc->pid);
proc->scall = regs.orig_rax;
@@ -183,7 +183,8 @@ main(int argc, char **argv)
sigset_t sm;
/* TODO add option to trace signals with siginfo (-s) */
- /* TODO add option to truncate long syscall arguments and outputs (-a) */
+ /* TODO add option to truncate long syscall arguments and outputs (-a)
+ * This should be useful if your program does a lot of I/O */
ARGBEGIN {
case '0':
with_argv0 = 1;