Commit 04a6b214 authored by williangaspar's avatar williangaspar
parent 62e712a5
......@@ -449,6 +449,22 @@ Attaching 1 probe...
@reads: 80
```
## 7. `unroll () {...}
Example:
```
# bpftrace -e 'kprobe:do_nanosleep { $i = 1; unroll(5) { printf("i: %d\n", $i); $i = $i + 1; } }'
Attaching 1 probe...
i: 1
i: 2
i: 3
i: 4
i: 5
^C
```
# Probes
- `kprobe` - kernel function start
......
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