-/* $OpenBSD: btrace.c,v 1.71 2023/06/27 14:17:00 claudio Exp $ */
+/* $OpenBSD: btrace.c,v 1.72 2023/08/13 09:52:47 mpi Exp $ */
/*
* Copyright (c) 2019 - 2021 Martin Pieuchot <mpi@openbsd.org>
bv->bv_value = ba;
bv->bv_type = B_VT_LONG;
break;
+ case B_AT_BI_PID:
+ bv->bv_value = ba_new((long)dtev->dtev_pid, B_AT_LONG);
+ bv->bv_type = B_VT_LONG;
+ break;
+ case B_AT_BI_TID:
+ bv->bv_value = ba_new((long)dtev->dtev_tid, B_AT_LONG);
+ bv->bv_type = B_VT_LONG;
+ break;
case B_AT_BI_NSECS:
bv->bv_value = ba_new(builtin_nsecs(dtev), B_AT_LONG);
bv->bv_type = B_VT_LONG;