CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2021/02/01 04:26:29

Modified files:
        usr.sbin/btrace: bt_parse.y bt_parser.h btrace.c 

Log message:
Start implementing conditionals for filters.

Allows to check the existence of a variable in predicates, making it
possible to trace syscall latency, as follow:

syscall:select:entry
{
@start[pid] = nsecs;
}

syscall:select:return
/@start[pid]/
{
@usecs = hist((nsecs - @start[pid]) / 1000);
delete(@start[pid]);
}

Reply via email to