summaryrefslogtreecommitdiffstats
path: root/usr.sbin/btrace/btrace.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Extend binary operators support, required for more filter features.mpi2021-02-081-1/+2
| | | | Improve debugging of filters and print operator names in debug output.
* Improve documentation.mpi2020-08-131-2/+2
|
* Do not hardcode the key length.mpi2020-08-071-1/+3
|
* Implement linear and power-of-two histograms: hist() and lhist() keywords.mpi2020-07-111-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is built on top of maps which are currently built on top of RB-trees. Improvements are welcome! For example the use of a hashing table as pointed by espie@. The following one-liner produce an histogram of power-of-two values returned by the read(2) syscall: btrace 'syscall:read:return { @bytes = hist(retval); }' ^C @bytes: [0] 19 |@@@@@@@@@@@@@@@@@@@@@@@@@@ | [1] 26 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | [1, 2) 1 |@ | [2, 4) 13 |@@@@@@@@@@@@@@@@@@ | [4, 8) 4 |@@@@@ | [8, 16) 3 |@@@@ | [16, 32) 1 |@ | [32, 64) 8 |@@@@@@@@@@@ | [64, 128) 14 |@@@@@@@@@@@@@@@@@@@ | [128, 256) 7 |@@@@@@@@@ | [256, 512) 37 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@| [512, 1K) 1 |@ | [1K, 2K) 10 |@@@@@@@@@@@@@@ | [2K, 4K) 11 |@@@@@@@@@@@@@@@ | [8K, 16K) 1 |@ |
* Print the correct register for syscall return value.mpi2020-07-041-3/+3
| | | | While here make it possible to store syscall return values in maps.
* Make map functions accept a "struct map *" instead of a "struct bt_var *".mpi2020-04-151-7/+8
| | | | This is a step towards reducing the type casting crazyness.
* Implement map functions min(), max() and sum().mpi2020-01-281-1/+2
| | | | For the moment map values are currently limited to integers.
* Implement delete() and @map[key] access.mpi2020-01-281-1/+2
|
* Import a bug tracer, companion of dt(4), that speaks the bt(5) language.mpi2020-01-211-0/+54
ok kettenis@, visa@, jasper@, deraadt@