summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/dt/dt_dev.c18
-rw-r--r--sys/dev/dt/dtvar.h24
2 files changed, 21 insertions, 21 deletions
diff --git a/sys/dev/dt/dt_dev.c b/sys/dev/dt/dt_dev.c
index 0c6a34cdfb8..19b37f83063 100644
--- a/sys/dev/dt/dt_dev.c
+++ b/sys/dev/dt/dt_dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dt_dev.c,v 1.7 2020/06/27 07:22:09 bket Exp $ */
+/* $OpenBSD: dt_dev.c,v 1.8 2020/07/04 08:06:07 anton Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
@@ -74,19 +74,19 @@
*
* Locks used to protect struct members in this file:
* m per-softc mutex
- * k kernel lock
+ * K kernel lock
*/
struct dt_softc {
- SLIST_ENTRY(dt_softc) ds_next; /* [k] descriptor list */
+ SLIST_ENTRY(dt_softc) ds_next; /* [K] descriptor list */
int ds_unit; /* [I] D_CLONE unique unit */
pid_t ds_pid; /* [I] PID of tracing program */
struct mutex ds_mtx;
- struct dt_pcb_list ds_pcbs; /* [k] list of enabled PCBs */
- struct dt_evt *ds_bufqueue; /* [k] copy evts to userland */
- size_t ds_bufqlen; /* [k] length of the queue */
- int ds_recording; /* [k] currently recording? */
+ struct dt_pcb_list ds_pcbs; /* [K] list of enabled PCBs */
+ struct dt_evt *ds_bufqueue; /* [K] copy evts to userland */
+ size_t ds_bufqlen; /* [K] length of the queue */
+ int ds_recording; /* [K] currently recording? */
int ds_evtcnt; /* [m] # of readable evts */
/* Counters */
@@ -94,7 +94,7 @@ struct dt_softc {
uint64_t ds_dropevt; /* [m] # of events dropped */
};
-SLIST_HEAD(, dt_softc) dtdev_list; /* [k] list of open /dev/dt nodes */
+SLIST_HEAD(, dt_softc) dtdev_list; /* [K] list of open /dev/dt nodes */
/*
* Probes are created during dt_attach() and never modified/freed during
@@ -104,7 +104,7 @@ unsigned int dt_nprobes; /* [I] # of probes available */
SIMPLEQ_HEAD(, dt_probe) dt_probe_list; /* [I] list of probes */
struct rwlock dt_lock = RWLOCK_INITIALIZER("dtlk");
-volatile uint32_t dt_tracing = 0; /* [k] # of processes tracing */
+volatile uint32_t dt_tracing = 0; /* [K] # of processes tracing */
void dtattach(struct device *, struct device *, void *);
int dtopen(dev_t, int, int, struct proc *);
diff --git a/sys/dev/dt/dtvar.h b/sys/dev/dt/dtvar.h
index 9db1276a3fe..65a89122a14 100644
--- a/sys/dev/dt/dtvar.h
+++ b/sys/dev/dt/dtvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dtvar.h,v 1.3 2020/03/28 15:42:25 mpi Exp $ */
+/* $OpenBSD: dtvar.h,v 1.4 2020/07/04 08:06:07 anton Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
@@ -159,14 +159,14 @@ int dtioc_req_isvalid(struct dtioc_req *);
*
* Locks used to protect struct members in this file:
* I immutable after creation
- * k kernel lock
- * k,s kernel lock for writting and SMR for reading
+ * K kernel lock
+ * K,S kernel lock for writting and SMR for reading
* m per-pcb mutex
* c owned (read & modified) by a single CPU
*/
struct dt_pcb {
- SMR_SLIST_ENTRY(dt_pcb) dp_pnext; /* [k,s] next PCB per probe */
- TAILQ_ENTRY(dt_pcb) dp_snext; /* [k] next PCB per softc */
+ SMR_SLIST_ENTRY(dt_pcb) dp_pnext; /* [K,S] next PCB per probe */
+ TAILQ_ENTRY(dt_pcb) dp_snext; /* [K] next PCB per softc */
/* Event states ring */
unsigned int dp_prod; /* [m] read index */
@@ -203,18 +203,18 @@ void dt_pcb_ring_consume(struct dt_pcb *, struct dt_evt *);
*
* Locks used to protect struct members in this file:
* I immutable after creation
- * k kernel lock
- * d dt_lock
- * d,s dt_lock for writting and SMR for reading
+ * K kernel lock
+ * D dt_lock
+ * D,S dt_lock for writting and SMR for reading
*/
struct dt_probe {
- SIMPLEQ_ENTRY(dt_probe) dtp_next; /* [k] global list of probes */
- SMR_SLIST_HEAD(, dt_pcb) dtp_pcbs; /* [d,s] list of enabled PCBs */
+ SIMPLEQ_ENTRY(dt_probe) dtp_next; /* [K] global list of probes */
+ SMR_SLIST_HEAD(, dt_pcb) dtp_pcbs; /* [D,S] list of enabled PCBs */
struct dt_provider *dtp_prov; /* [I] its to provider */
const char *dtp_func; /* [I] probe function */
const char *dtp_name; /* [I] probe name */
uint32_t dtp_pbn; /* [I] unique ID */
- volatile uint32_t dtp_recording; /* [d] is it recording? */
+ volatile uint32_t dtp_recording; /* [D] is it recording? */
uint8_t dtp_nargs; /* [I] # of arguments */
/* Provider specific fields. */
@@ -228,7 +228,7 @@ struct dt_probe {
*/
struct dt_provider {
const char *dtpv_name; /* [I] provider name */
- volatile uint32_t dtpv_recording;/* [d] # of recording PCBs */
+ volatile uint32_t dtpv_recording;/* [D] # of recording PCBs */
int (*dtpv_alloc)(struct dt_probe *, struct dt_softc *,
struct dt_pcb_list *, struct dtioc_req *);