Special values need to be translated to longs for use with functions
like hist/lhist. Add "cpu" to conversion list.
ok mpi@
-/* $OpenBSD: btrace.c,v 1.35 2021/04/22 09:36:39 mpi Exp $ */
+/* $OpenBSD: btrace.c,v 1.36 2021/06/07 12:55:19 dv Exp $ */
/*
* Copyright (c) 2019 - 2020 Martin Pieuchot <mpi@openbsd.org>
case B_AT_BI_TID:
val = dtev->dtev_tid;
break;
+ case B_AT_BI_CPU:
+ val = dtev->dtev_cpu;
+ break;
case B_AT_BI_NSECS:
val = builtin_nsecs(dtev);
break;