diff options
author | Nayden Markatchev <nayden@cvs.openbsd.org> | 2017-08-11 15:14:24 +0000 |
---|---|---|
committer | Nayden Markatchev <nayden@cvs.openbsd.org> | 2017-08-11 15:14:24 +0000 |
commit | 71632d479c39fff8e0f12af981ec7f2c975268e7 (patch) | |
tree | 1dc67f5e2009b6a9bf287703eaf9b2b524924521 | |
parent | 98911d96f82a03ca52f0fa2accaa9f38010311f2 (diff) |
Kernel compilation with DDBPROF enabled fails as db_sym_t is no longer
defined (removed in "Kill db_sym_t." from 2017-05-30 11:39 mpi). This
change fixes the problem.
OK mpi@
-rw-r--r-- | sys/ddb/db_prof.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ddb/db_prof.c b/sys/ddb/db_prof.c index 12c90d79207..7d8190f41bc 100644 --- a/sys/ddb/db_prof.c +++ b/sys/ddb/db_prof.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_prof.c,v 1.3 2017/02/08 04:30:45 guenther Exp $ */ +/* $OpenBSD: db_prof.c,v 1.4 2017/08/11 15:14:23 nayden Exp $ */ /* * Copyright (c) 2016 Martin Pieuchot @@ -78,7 +78,7 @@ int db_prof_on; /* Profiling state On/Off */ vaddr_t db_get_pc(struct trapframe *); vaddr_t db_get_probe_addr(struct trapframe *); -void db_prof_forall(db_sym_t, char *, char *, int, void *); +void db_prof_forall(Elf_Sym *, char *, char *, int, void *); void db_prof_count(unsigned long, unsigned long); void @@ -95,9 +95,9 @@ db_prof_init(void) } void -db_prof_forall(db_sym_t sym, char *name, char *suff, int pre, void *xarg) +db_prof_forall(Elf_Sym *sym, char *name, char *suff, int pre, void *xarg) { - Elf_Sym *symb = (Elf_Sym *)sym; + Elf_Sym *symb = sym; unsigned long *nentries = xarg; struct prof_probe *pp; vaddr_t inst; |