summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-04-23 14:39:31 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-04-23 14:39:31 +0100
commit8f9f02d483b87c787d089cf9329f5f1b81d3a77e (patch)
treeee1c0403092e9dd296c43706a0c7c2d14d5a5c19 /perl
parent713283f4a67b3a1960ca96ce6608d046fc202d2d (diff)
downloadlibguestfs-8f9f02d483b87c787d089cf9329f5f1b81d3a77e.tar.gz
libguestfs-8f9f02d483b87c787d089cf9329f5f1b81d3a77e.tar.xz
libguestfs-8f9f02d483b87c787d089cf9329f5f1b81d3a77e.zip
Generated code for debug command.
Diffstat (limited to 'perl')
-rw-r--r--perl/Guestfs.xs17
-rw-r--r--perl/lib/Sys/Guestfs.pm10
2 files changed, 27 insertions, 0 deletions
diff --git a/perl/Guestfs.xs b/perl/Guestfs.xs
index fe2c81c9..be13fcde 100644
--- a/perl/Guestfs.xs
+++ b/perl/Guestfs.xs
@@ -1468,3 +1468,20 @@ PREINIT:
if (r == -1)
croak ("mount_vfs: %s", guestfs_last_error (g));
+SV *
+debug (g, subcmd, extraargs)
+ guestfs_h *g;
+ char *subcmd;
+ char **extraargs;
+PREINIT:
+ char *result;
+ CODE:
+ result = guestfs_debug (g, subcmd, extraargs);
+ free (extraargs);
+ if (result == NULL)
+ croak ("debug: %s", guestfs_last_error (g));
+ RETVAL = newSVpv (result, 0);
+ free (result);
+ OUTPUT:
+ RETVAL
+
diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm
index ea826592..3d1493b5 100644
--- a/perl/lib/Sys/Guestfs.pm
+++ b/perl/lib/Sys/Guestfs.pm
@@ -432,6 +432,16 @@ The first character of C<param> string must be a C<-> (dash).
C<value> can be NULL.
+=item $result = $h->debug ($subcmd, \@extraargs);
+
+The C<$h-E<gt>debug> command exposes some internals of
+C<guestfsd> (the guestfs daemon) that runs inside the
+qemu subprocess.
+
+There is no comprehensive help for this command. You have
+to look at the file C<daemon/debug.c> in the libguestfs source
+to find out what you can do.
+
=item $h->download ($remotefilename, $filename);
Download file C<remotefilename> and save it as C<filename>