diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-10-29 11:33:40 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-31 13:40:29 +0100 |
commit | 6981fbf3780366093858c5d2dcdaadcd1fbb04be (patch) | |
tree | d67f014f536afb83a2b87957a44e5265965dad82 /drivers/hv/connection.c | |
parent | 6fbf248a20d362a92de60beee9474faca0b54eee (diff) | |
download | lwn-6981fbf3780366093858c5d2dcdaadcd1fbb04be.tar.gz lwn-6981fbf3780366093858c5d2dcdaadcd1fbb04be.zip |
Drivers: hv: vmbus: Expose per-channel interrupts and events counters
When investigating performance, it is useful to be able to look at
the number of host and guest events per-channel. This is equivalent
to per-device interrupt statistics.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/connection.c')
-rw-r--r-- | drivers/hv/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index f41901f80b64..b06a6b796819 100644 --- a/drivers/hv/connection.c +++ b/drivers/hv/connection.c @@ -409,6 +409,8 @@ void vmbus_set_event(struct vmbus_channel *channel) if (!channel->is_dedicated_interrupt) vmbus_send_interrupt(child_relid); + ++channel->sig_events; + hv_do_fast_hypercall8(HVCALL_SIGNAL_EVENT, channel->sig_event); } EXPORT_SYMBOL_GPL(vmbus_set_event); |