Implement tuples, needed to export per-CPU scheduling data.
authormpi <mpi@openbsd.org>
Mon, 11 Sep 2023 19:01:26 +0000 (19:01 +0000)
committermpi <mpi@openbsd.org>
Mon, 11 Sep 2023 19:01:26 +0000 (19:01 +0000)
commit66f34ae4e8b19fd4adc84791ec8c4653b2cef115
tree1b50460afd32cdc6753583d94c170ec8be9cab5c
parente2cc78c9aae9db11f34a0a429049578af4a57f80
Implement tuples, needed to export per-CPU scheduling data.

It is now possible to save and print immutable arrays as below:

..$t = (1, 42, "something");
..printf("%d %s\n", $t.1, $t.2);

Also add support for evaluating builtin in order to save them in variables
(required by tuples)
usr.sbin/btrace/bt_parse.y
usr.sbin/btrace/bt_parser.h
usr.sbin/btrace/btrace.c
usr.sbin/btrace/btrace.h
usr.sbin/btrace/map.c