Skip to content

Commit

Permalink
VMware balloon: Show capabilities of balloon and resulting capabiliti…
Browse files Browse the repository at this point in the history
…es 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>
  • Loading branch information
Philip P. Moltmann authored and Greg Kroah-Hartman committed Oct 4, 2015
1 parent 4670de4 commit b36e89d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/misc/vmw_balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b36e89d

Please sign in to comment.