From: mpi Date: Sun, 3 Sep 2023 10:26:35 +0000 (+0000) Subject: Let builtin process names be stored in maps as string. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=290abf9ca5b64a29491d2e9a0403639b90b51896;p=openbsd Let builtin process names be stored in maps as string. ok dv@ --- diff --git a/usr.sbin/btrace/map.c b/usr.sbin/btrace/map.c index ab773dbd807..0de15630c2f 100644 --- a/usr.sbin/btrace/map.c +++ b/usr.sbin/btrace/map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: map.c,v 1.22 2023/08/13 09:48:27 mpi Exp $ */ +/* $OpenBSD: map.c,v 1.23 2023/09/03 10:26:35 mpi Exp $ */ /* * Copyright (c) 2020 Martin Pieuchot @@ -176,6 +176,7 @@ map_insert(struct map *map, const char *key, struct bt_arg *bval, val += ba2long(bval->ba_value, dtev); mep->mval->ba_value = (void *)val; break; + case B_AT_BI_COMM: case B_AT_BI_KSTACK: case B_AT_BI_USTACK: free(mep->mval);