diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-09-20 10:27:15 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-09-20 10:27:15 +0000 |
commit | 21806d54b0dc035ffa04770323f906a8d107d824 (patch) | |
tree | 885999cb85e8df99c508dae7aba491b5e3466bdc /sys/dev/pv/hyperv.c | |
parent | a302dc9ce364aaf2bdebbee4ea889b7a9c8b2b48 (diff) |
Add an API to hook up event counters
Diffstat (limited to 'sys/dev/pv/hyperv.c')
-rw-r--r-- | sys/dev/pv/hyperv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c index a34ca0fb50c..0a737e8ff0c 100644 --- a/sys/dev/pv/hyperv.c +++ b/sys/dev/pv/hyperv.c @@ -1918,3 +1918,11 @@ hv_attach_devices(struct hv_softc *sc) } return (0); } + +void +hv_evcount_attach(struct hv_channel *ch, const char *name) +{ + struct hv_softc *sc = ch->ch_sc; + + evcount_attach(&ch->ch_evcnt, name, &sc->sc_idtvec); +} |