diff options
author | mpi <mpi@openbsd.org> | 2020-01-28 12:13:49 +0000 |
---|---|---|
committer | mpi <mpi@openbsd.org> | 2020-01-28 12:13:49 +0000 |
commit | 88be68db3fba5dfeefe339107566897dd7d709bd (patch) | |
tree | 681cfb15870adc3c8ccb6187e00a5d4dfc0d0000 /usr.sbin/btrace/bt_parser.h | |
parent | Rename *_concat() into *_append() to match reality. (diff) | |
download | wireguard-openbsd-88be68db3fba5dfeefe339107566897dd7d709bd.tar.xz wireguard-openbsd-88be68db3fba5dfeefe339107566897dd7d709bd.zip |
Implement delete() and @map[key] access.
Diffstat (limited to 'usr.sbin/btrace/bt_parser.h')
-rw-r--r-- | usr.sbin/btrace/bt_parser.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/btrace/bt_parser.h b/usr.sbin/btrace/bt_parser.h index 4083faddbc6..392331576ed 100644 --- a/usr.sbin/btrace/bt_parser.h +++ b/usr.sbin/btrace/bt_parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bt_parser.h,v 1.2 2020/01/27 14:15:25 mpi Exp $ */ +/* $OpenBSD: bt_parser.h,v 1.3 2020/01/28 12:13:49 mpi Exp $ */ /* * Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org> @@ -98,10 +98,12 @@ struct bt_var { struct bt_arg { SLIST_ENTRY(bt_arg) ba_next; void *ba_value; + struct bt_arg *ba_key; /* key for maps */ enum bt_argtype { B_AT_STR = 1, /* C-style string */ B_AT_LONG, /* Number (integer) */ B_AT_VAR, /* global variable (@var) */ + B_AT_MAP, /* global map (@map[]) */ B_AT_BI_PID, B_AT_BI_TID, |