From: dv Date: Mon, 7 Jun 2021 12:55:19 +0000 (+0000) Subject: btrace(8): add "cpu" to long conversion X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=db788fbbbc4754f927b4bc8d5a58e69cd5f80489;p=openbsd btrace(8): add "cpu" to long conversion Special values need to be translated to longs for use with functions like hist/lhist. Add "cpu" to conversion list. ok mpi@ --- diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index 9720e0ec511..15c67aba085 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $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 @@ -1180,6 +1180,9 @@ ba2long(struct bt_arg *ba, struct dt_evt *dtev) 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;