Make it possible to associate multiple probes to a single rule.
authormpi <mpi@openbsd.org>
Thu, 9 Sep 2021 09:53:11 +0000 (09:53 +0000)
committermpi <mpi@openbsd.org>
Thu, 9 Sep 2021 09:53:11 +0000 (09:53 +0000)
commit1694fc3472e6c86b7e40c27bf82eab6973fceb6b
tree5d37687816f2f4e1d0d6f3834ea7e51b4650f89c
parent5dead9d93fa67df4e031115b65c320a5725dbca6
Make it possible to associate multiple probes to a single rule.

The following syntax, reducing duplication, is now allowed:

END,
interval:hz:2
{
...
}

Rule descriptors are now linked to a list of probe descriptors instead of
a single one.  Enabled kernel probes are now linked to btrace(8) probe
descriptors.

While here stop parsing filter and probe if debug is not enabled.
usr.sbin/btrace/bt_parse.y
usr.sbin/btrace/bt_parser.h
usr.sbin/btrace/btrace.c