Let builtin process names be stored in maps as string.
authormpi <mpi@openbsd.org>
Sun, 3 Sep 2023 10:26:35 +0000 (10:26 +0000)
committermpi <mpi@openbsd.org>
Sun, 3 Sep 2023 10:26:35 +0000 (10:26 +0000)
ok dv@

usr.sbin/btrace/map.c

index ab773db..0de1563 100644 (file)
@@ -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 <mpi@openbsd.org>
@@ -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);