WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Added bindings and documentation for host

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Added bindings and documentation for host.send_debug_keys and host.get_log.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Apr 2007 14:00:42 -0700
Delivery-date: Tue, 10 Apr 2007 14:00:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1176115167 -3600
# Node ID 51678fab4b0fb73faa141fef19dbe69207961573
# Parent  d1860a7c30fd42680793d49eba9c87800bbee597
Added bindings and documentation for host.send_debug_keys and host.get_log.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 docs/xen-api/xenapi-datamodel.tex |   66 ++++++++++++++++++++++++++++++++++++++
 tools/libxen/include/xen_host.h   |   14 ++++++++
 tools/libxen/src/xen_host.c       |   33 +++++++++++++++++++
 3 files changed, 113 insertions(+)

diff -r d1860a7c30fd -r 51678fab4b0f docs/xen-api/xenapi-datamodel.tex
--- a/docs/xen-api/xenapi-datamodel.tex Sun Apr 08 23:03:16 2007 +0100
+++ b/docs/xen-api/xenapi-datamodel.tex Mon Apr 09 11:39:27 2007 +0100
@@ -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 -r d1860a7c30fd -r 51678fab4b0f tools/libxen/include/xen_host.h
--- a/tools/libxen/include/xen_host.h   Sun Apr 08 23:03:16 2007 +0100
+++ b/tools/libxen/include/xen_host.h   Mon Apr 09 11:39:27 2007 +0100
@@ -443,6 +443,20 @@ xen_host_dmesg_clear(xen_session *sessio
 
 
 /**
+ * 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 -r d1860a7c30fd -r 51678fab4b0f tools/libxen/src/xen_host.c
--- a/tools/libxen/src/xen_host.c       Sun Apr 08 23:03:16 2007 +0100
+++ b/tools/libxen/src/xen_host.c       Mon Apr 09 11:39:27 2007 +0100
@@ -757,6 +757,39 @@ xen_host_dmesg_clear(xen_session *sessio
 
 
 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)
 {
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Added bindings and documentation for host.send_debug_keys and host.get_log., Xen patchbot-unstable <=