Commit 21bc520c authored by williangaspar's avatar williangaspar Committed by Alastair Robertson
parent 613f19a2
...@@ -175,7 +175,7 @@ It can also be made executable to run stand-alone. Start by adding an interprete ...@@ -175,7 +175,7 @@ It can also be made executable to run stand-alone. Start by adding an interprete
``` ```
1 #!/usr/local/bin/bpftrace 1 #!/usr/local/bin/bpftrace
1 #!/usr/bin/env bpftrace 1 #!/usr/bin/env bpftrace
2 2
3 tracepoint:syscalls:sys_enter_nanosleep 3 tracepoint:syscalls:sys_enter_nanosleep
4 { 4 {
5 printf("%s is sleeping.\n", comm); 5 printf("%s is sleeping.\n", comm);
...@@ -884,7 +884,7 @@ That would fire once for every 1000000 cache misses. This usually indicates the ...@@ -884,7 +884,7 @@ That would fire once for every 1000000 cache misses. This usually indicates the
- `arg0`, `arg1`, ..., `argN`. - Arguments to the traced function - `arg0`, `arg1`, ..., `argN`. - Arguments to the traced function
- `retval` - Return value from traced function - `retval` - Return value from traced function
- `func` - Name of the traced function - `func` - Name of the traced function
- `name` - Full name of the probe - `probe` - Full name of the probe
- `curtask` - Current task struct as a u64 - `curtask` - Current task struct as a u64
- `rand` - Random number as a u32 - `rand` - Random number as a u32
- `cgroup` - Cgroup ID of the current process - `cgroup` - Cgroup ID of the current process
......
...@@ -29,5 +29,5 @@ tracepoint:syscalls:sys_enter_sync_file_range, ...@@ -29,5 +29,5 @@ tracepoint:syscalls:sys_enter_sync_file_range,
tracepoint:syscalls:sys_enter_msync tracepoint:syscalls:sys_enter_msync
{ {
time("%H:%M:%S "); time("%H:%M:%S ");
printf("%-6d %-16s %s\n", pid, comm, name); printf("%-6d %-16s %s\n", pid, comm, probe);
} }
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