summaryrefslogtreecommitdiffstats
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-10-29 14:33:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-31 08:40:29 -0400
commit6981fbf3780366093858c5d2dcdaadcd1fbb04be (patch)
treed67f014f536afb83a2b87957a44e5265965dad82 /include/linux/hyperv.h
parent6fbf248a20d362a92de60beee9474faca0b54eee (diff)
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 'include/linux/hyperv.h')
-rw-r--r--include/linux/hyperv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index ea6b5586ad77..f3e97c5f94c9 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -719,6 +719,10 @@ struct vmbus_channel {
719 719
720 struct vmbus_close_msg close_msg; 720 struct vmbus_close_msg close_msg;
721 721
722 /* Statistics */
723 u64 interrupts; /* Host to Guest interrupts */
724 u64 sig_events; /* Guest to Host events */
725
722 /* Channel callback's invoked in softirq context */ 726 /* Channel callback's invoked in softirq context */
723 struct tasklet_struct callback_event; 727 struct tasklet_struct callback_event;
724 void (*onchannel_callback)(void *context); 728 void (*onchannel_callback)(void *context);