diff options
author | Philip P. Moltmann <moltmann@vmware.com> | 2015-08-06 15:18:00 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 12:59:11 +0100 |
commit | b36e89da86022c04fa5e7c32f0d55c1ba23c1ab8 (patch) | |
tree | 6fcc63f677e2f2fee750f3a58d9a39361392928b /drivers/misc | |
parent | 4670de4d7fe9532c8c7c7fe2d0c297b319086854 (diff) | |
download | op-kernel-dev-b36e89da86022c04fa5e7c32f0d55c1ba23c1ab8.zip op-kernel-dev-b36e89da86022c04fa5e7c32f0d55c1ba23c1ab8.tar.gz |
VMware balloon: Show capabilities of balloon and resulting capabilities in the debug-fs node.
This helps with debugging vmw_balloon behavior, as it is clear what
functionality is enabled.
Acked-by: Andy King <acking@vmware.com>
Signed-off-by: Xavier Deguillard <xdeguillard@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/vmw_balloon.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c index 0b5aa93..f0beb65 100644 --- a/drivers/misc/vmw_balloon.c +++ b/drivers/misc/vmw_balloon.c @@ -47,7 +47,7 @@ MODULE_AUTHOR("VMware, Inc."); MODULE_DESCRIPTION("VMware Memory Control (Balloon) Driver"); -MODULE_VERSION("1.3.2.0-k"); +MODULE_VERSION("1.3.3.0-k"); MODULE_ALIAS("dmi:*:svnVMware*:*"); MODULE_ALIAS("vmware_vmmemctl"); MODULE_LICENSE("GPL"); @@ -979,6 +979,12 @@ static int vmballoon_debug_show(struct seq_file *f, void *offset) struct vmballoon *b = f->private; struct vmballoon_stats *stats = &b->stats; + /* format capabilities info */ + seq_printf(f, + "balloon capabilities: %#4x\n" + "used capabilities: %#4lx\n", + VMW_BALLOON_CAPABILITIES, b->capabilities); + /* format size info */ seq_printf(f, "target: %8d pages\n" |