From 290abf9ca5b64a29491d2e9a0403639b90b51896 Mon Sep 17 00:00:00 2001 From: mpi Date: Sun, 3 Sep 2023 10:26:35 +0000 Subject: [PATCH] Let builtin process names be stored in maps as string. ok dv@ --- usr.sbin/btrace/map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1