diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-03-23 10:22:21 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-03-23 10:22:21 +0000 |
commit | a04c027eec71104e37c2e945b7e3929766b72bf4 (patch) | |
tree | 7f6e87096889a073004c24d286937f39d8ce10e8 | |
parent | a7a83acf2d607ae36a6fb0b78479a8ede996a423 (diff) |
Skip first frame when saving stacktraces, it's always witness_checkorder().
ok visa@
-rw-r--r-- | sys/kern/subr_witness.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index e23db1c4907..ad50f29e066 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_witness.c,v 1.46 2021/03/10 10:21:47 jsg Exp $ */ +/* $OpenBSD: subr_witness.c,v 1.47 2021/03/23 10:22:20 mpi Exp $ */ /*- * Copyright (c) 2008 Isilon Systems, Inc. @@ -764,7 +764,7 @@ witness_checkorder(struct lock_object *lock, int flags, if (witness_cold || witness_watch < 1 || panicstr != NULL || db_active) return; - + if ((lock->lo_flags & LO_INITIALIZED) == 0) { if (witness_uninitialized_report > 0) { witness_uninitialized_report--; @@ -2472,7 +2472,7 @@ witness_lock_order_add(struct witness *parent, struct witness *child) data->wlod_key = key; w_lohash.wloh_array[hash] = data; w_lohash.wloh_count++; - stacktrace_save(&data->wlod_stack); + stacktrace_save_at(&data->wlod_stack, 1); return (1); } |