summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-02-29 09:14:55 +0000
committersephe <sephe@FreeBSD.org>2016-02-29 09:14:55 +0000
commit62517cc3146261ea135285ef32ce74057c20648a (patch)
tree1a0d0b6587acfbec2adf453cd6bf8a710fbfbe5e
parente6e9e0871bcff3f6ba412aa099d12b4864107af4 (diff)
downloadFreeBSD-src-62517cc3146261ea135285ef32ce74057c20648a.zip
FreeBSD-src-62517cc3146261ea135285ef32ce74057c20648a.tar.gz
hyperv/channel: Add sysctl node for channel owner cpu
And add sysctl node for sub-channel's channel id. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5489
-rw-r--r--sys/dev/hyperv/vmbus/hv_channel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/hyperv/vmbus/hv_channel.c b/sys/dev/hyperv/vmbus/hv_channel.c
index fa37bd5..71209bd 100644
--- a/sys/dev/hyperv/vmbus/hv_channel.c
+++ b/sys/dev/hyperv/vmbus/hv_channel.c
@@ -122,8 +122,14 @@ hv_vmbus_channel_stat(hv_vmbus_channel* channel)
devch_id_sysctl = SYSCTL_ADD_NODE(ctx,
SYSCTL_CHILDREN(devch_sub_sysctl),
OID_AUTO, name, CTLFLAG_RD, 0, "");
+
+ SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(devch_id_sysctl),
+ OID_AUTO, "chanid", CTLFLAG_RD,
+ &channel->offer_msg.child_rel_id, 0, "channel id");
}
-
+ SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(devch_id_sysctl), OID_AUTO,
+ "cpu", CTLFLAG_RD, &channel->target_cpu, 0, "owner CPU id");
+
devch_id_in_sysctl = SYSCTL_ADD_NODE(ctx,
SYSCTL_CHILDREN(devch_id_sysctl),
OID_AUTO,
OpenPOWER on IntegriCloud