summaryrefslogtreecommitdiff
path: root/sys/dev/dt
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-01-06 07:51:41 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-01-06 07:51:41 +0000
commitb6bcd75407b876980771ef9354c96c9525abbd61 (patch)
tree72a8dd60e2ae536c4850e27d7d4e81525288968e /sys/dev/dt
parentc3e3d02440ef958186af4ca571adaaf964ecc0f5 (diff)
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@
Diffstat (limited to 'sys/dev/dt')
-rw-r--r--sys/dev/dt/dt_prov_static.c6
1 files changed, 5 insertions, 1 deletions
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 <mpi@openbsd.org>
@@ -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),