aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-04-09 11:39:27 +0100
committerEwan Mellor <ewan@xensource.com>2007-04-09 11:39:27 +0100
commit1a2d0aa9027d6023f3240abd23e0027a2ce25925 (patch)
tree684069b85de0b335b122b8d4a37968bd5a7b9ba3
parent0e20ef60f83697cf5c9e6e696e601622984db7ad (diff)
downloadxen-1a2d0aa9027d6023f3240abd23e0027a2ce25925.tar.gz
xen-1a2d0aa9027d6023f3240abd23e0027a2ce25925.tar.bz2
xen-1a2d0aa9027d6023f3240abd23e0027a2ce25925.zip
Added bindings and documentation for host.send_debug_keys and host.get_log.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
-rw-r--r--docs/xen-api/xenapi-datamodel.tex66
-rw-r--r--tools/libxen/include/xen_host.h14
-rw-r--r--tools/libxen/src/xen_host.c33
3 files changed, 113 insertions, 0 deletions
diff --git a/docs/xen-api/xenapi-datamodel.tex b/docs/xen-api/xenapi-datamodel.tex
index 2ed8ab1350..3c38727c50 100644
--- a/docs/xen-api/xenapi-datamodel.tex
+++ b/docs/xen-api/xenapi-datamodel.tex
@@ -4951,6 +4951,72 @@ dmesg string
\vspace{0.3cm}
\vspace{0.3cm}
\vspace{0.3cm}
+\subsubsection{RPC name:~get\_log}
+
+{\bf Overview:}
+Get the host's log file.
+
+ \noindent {\bf Signature:}
+\begin{verbatim} string get_log (session_id s, host ref host)\end{verbatim}
+
+
+\noindent{\bf Arguments:}
+
+
+\vspace{0.3cm}
+\begin{tabular}{|c|c|p{7cm}|}
+ \hline
+{\bf type} & {\bf name} & {\bf description} \\ \hline
+{\tt host ref } & host & The Host to query \\ \hline
+
+\end{tabular}
+
+\vspace{0.3cm}
+
+ \noindent {\bf Return Type:}
+{\tt
+string
+}
+
+
+The contents of the host's primary log file
+\vspace{0.3cm}
+\vspace{0.3cm}
+\vspace{0.3cm}
+\subsubsection{RPC name:~send\_debug\_keys}
+
+{\bf Overview:}
+Inject the given string as debugging keys into Xen.
+
+ \noindent {\bf Signature:}
+\begin{verbatim} void send_debug_keys (session_id s, host ref host, string keys)\end{verbatim}
+
+
+\noindent{\bf Arguments:}
+
+
+\vspace{0.3cm}
+\begin{tabular}{|c|c|p{7cm}|}
+ \hline
+{\bf type} & {\bf name} & {\bf description} \\ \hline
+{\tt host ref } & host & The host \\ \hline
+
+{\tt string } & keys & The keys to send \\ \hline
+
+\end{tabular}
+
+\vspace{0.3cm}
+
+ \noindent {\bf Return Type:}
+{\tt
+void
+}
+
+
+
+\vspace{0.3cm}
+\vspace{0.3cm}
+\vspace{0.3cm}
\subsubsection{RPC name:~list\_methods}
{\bf Overview:}
diff --git a/tools/libxen/include/xen_host.h b/tools/libxen/include/xen_host.h
index a27c875687..f380f989d0 100644
--- a/tools/libxen/include/xen_host.h
+++ b/tools/libxen/include/xen_host.h
@@ -443,6 +443,20 @@ xen_host_dmesg_clear(xen_session *session, char **result, xen_host host);
/**
+ * Get the host's log file.
+ */
+extern bool
+xen_host_get_log(xen_session *session, char **result, xen_host host);
+
+
+/**
+ * Inject the given string as debugging keys into Xen.
+ */
+extern bool
+xen_host_send_debug_keys(xen_session *session, xen_host host, char *keys);
+
+
+/**
* List all supported methods.
*/
extern bool
diff --git a/tools/libxen/src/xen_host.c b/tools/libxen/src/xen_host.c
index 2ae37fefe4..a55b91e0af 100644
--- a/tools/libxen/src/xen_host.c
+++ b/tools/libxen/src/xen_host.c
@@ -757,6 +757,39 @@ xen_host_dmesg_clear(xen_session *session, char **result, xen_host host)
bool
+xen_host_get_log(xen_session *session, char **result, xen_host host)
+{
+ abstract_value param_values[] =
+ {
+ { .type = &abstract_type_string,
+ .u.string_val = host }
+ };
+
+ abstract_type result_type = abstract_type_string;
+
+ *result = NULL;
+ XEN_CALL_("host.get_log");
+ return session->ok;
+}
+
+
+bool
+xen_host_send_debug_keys(xen_session *session, xen_host host, char *keys)
+{
+ abstract_value param_values[] =
+ {
+ { .type = &abstract_type_string,
+ .u.string_val = host },
+ { .type = &abstract_type_string,
+ .u.string_val = keys }
+ };
+
+ xen_call_(session, "host.send_debug_keys", param_values, 2, NULL, NULL);
+ return session->ok;
+}
+
+
+bool
xen_host_list_methods(xen_session *session, struct xen_string_set **result)
{