From b6bcd75407b876980771ef9354c96c9525abbd61 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 6 Jan 2021 07:51:41 +0000 Subject: Add dt(4) TRACEPOINTs for pool_get() and pool_put(), this is simmilar to the ones added to malloc() and free(). Pass the struct pool pointer as argv1 since it is currently not possible to pass the pool name to btrace. OK mpi@ --- sys/dev/dt/dt_prov_static.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/dt') diff --git a/sys/dev/dt/dt_prov_static.c b/sys/dev/dt/dt_prov_static.c index d840443fa46..bfe92e5f09a 100644 --- a/sys/dev/dt/dt_prov_static.c +++ b/sys/dev/dt/dt_prov_static.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dt_prov_static.c,v 1.6 2020/12/31 11:04:35 claudio Exp $ */ +/* $OpenBSD: dt_prov_static.c,v 1.7 2021/01/06 07:51:40 claudio Exp $ */ /* * Copyright (c) 2019 Martin Pieuchot @@ -58,6 +58,8 @@ DT_STATIC_PROBE3(uvm, map_insert, "vaddr_t", "vaddr_t", "vm_prot_t"); DT_STATIC_PROBE3(uvm, map_remove, "vaddr_t", "vaddr_t", "vm_prot_t"); DT_STATIC_PROBE4(uvm, malloc, "int", "void *", "size_t", "int"); DT_STATIC_PROBE3(uvm, free, "int", "void *", "size_t"); +DT_STATIC_PROBE3(uvm, pool_get, "void *", "void *", "int"); +DT_STATIC_PROBE2(uvm, pool_put, "void *", "void *"); /* * VFS @@ -87,6 +89,8 @@ struct dt_probe *dtps_static[] = { &_DT_STATIC_P(uvm, map_remove), &_DT_STATIC_P(uvm, malloc), &_DT_STATIC_P(uvm, free), + &_DT_STATIC_P(uvm, pool_get), + &_DT_STATIC_P(uvm, pool_put), /* VFS */ &_DT_STATIC_P(vfs, bufcache_rel), &_DT_STATIC_P(vfs, bufcache_take), -- cgit v1.2.3