diff options
author | 2020-04-15 15:00:04 +0000 | |
---|---|---|
committer | 2020-04-15 15:00:04 +0000 | |
commit | baafb2b7cfff390e13beb0dda605414ba6c00b5a (patch) | |
tree | 38afc41fabcf6c93160541a4d4b5f8b541d722b8 | |
parent | Crank key size to 256 to avoid conflicts when storing stack traces in maps. (diff) | |
download | wireguard-openbsd-baafb2b7cfff390e13beb0dda605414ba6c00b5a.tar.xz wireguard-openbsd-baafb2b7cfff390e13beb0dda605414ba6c00b5a.zip |
Document filters: one type of predicates checked in kernel.
By default a PID filter is set by dt(4) to not record events for the tracing
program.
The other type of predicates, which are checked in userland, is coming soon!
-rw-r--r-- | usr.sbin/btrace/bt_parser.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/btrace/bt_parser.h b/usr.sbin/btrace/bt_parser.h index 9b87673fcf5..f495063cf7f 100644 --- a/usr.sbin/btrace/bt_parser.h +++ b/usr.sbin/btrace/bt_parser.h @@ -1,7 +1,7 @@ -/* $OpenBSD: bt_parser.h,v 1.5 2020/03/19 15:52:30 mpi Exp $ */ +/* $OpenBSD: bt_parser.h,v 1.6 2020/04/15 15:00:04 mpi Exp $ */ /* - * Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org> + * Copyright (c) 2019-2020 Martin Pieuchot <mpi@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -39,7 +39,10 @@ struct bt_probe { }; /* - * Representation of a filter (aka predicate). + * Filters correspond to predicates performed in kernel. + * + * When a probe fires the check is performed, if it isn't true no event + * is recorded. */ struct bt_filter { enum bt_operand { |