Commit 2afb7d5e authored by Brendan Gregg's avatar Brendan Gregg

switch some tools to use args

parent 6e4ff5a0
...@@ -20,8 +20,7 @@ BEGIN ...@@ -20,8 +20,7 @@ BEGIN
tracepoint:block:block_rq_issue tracepoint:block:block_rq_issue
{ {
$b = *(ctx+28) & 0x3ffff; @[comm] = hist(args->bytes);
@[comm] = hist($b);
} }
END END
......
...@@ -22,10 +22,9 @@ BEGIN ...@@ -22,10 +22,9 @@ BEGIN
tracepoint:syscalls:sys_enter_execve tracepoint:syscalls:sys_enter_execve
{ {
$argv = ctx + 24; // workaround until #32
$now = nsecs; $now = nsecs;
printf("%-10u %-5d ", ($now - @epoch) / 1000000, pid); printf("%-10u %-5d ", ($now - @epoch) / 1000000, pid);
join(*$argv); join(args->argv);
} }
END END
......
...@@ -22,14 +22,13 @@ BEGIN ...@@ -22,14 +22,13 @@ BEGIN
tracepoint:syscalls:sys_enter_open tracepoint:syscalls:sys_enter_open
{ {
$file = *(ctx + 16); @filename[tid] = args->filename;
@filename[tid] = $file;
} }
tracepoint:syscalls:sys_exit_open tracepoint:syscalls:sys_exit_open
/@filename[tid]/ /@filename[tid]/
{ {
$ret = *(ctx + 16); $ret = args->ret;
$fd = $ret > 0 ? $ret : -1; $fd = $ret > 0 ? $ret : -1;
$errno = $ret > 0 ? 0 : - $ret; $errno = $ret > 0 ? 0 : - $ret;
......
...@@ -20,8 +20,7 @@ BEGIN ...@@ -20,8 +20,7 @@ BEGIN
tracepoint:raw_syscalls:sys_enter tracepoint:raw_syscalls:sys_enter
{ {
$id = *(ctx + 8); // workaround until #32 @syscall[args->id] = count();
@syscall[$id] = count();
@process[comm] = count(); @process[comm] = count();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment