|
|
9119d9 |
From 986b2b102eb0ea4de849ef1a4f83eeb31a672ce0 Mon Sep 17 00:00:00 2001
|
|
|
9119d9 |
Message-Id: <986b2b102eb0ea4de849ef1a4f83eeb31a672ce0@dist-git>
|
|
|
9119d9 |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
|
9119d9 |
Date: Fri, 26 Sep 2014 12:43:56 +0200
|
|
|
9119d9 |
Subject: [PATCH] tunable_event: extend debug message and tweak limit for
|
|
|
9119d9 |
remote message
|
|
|
9119d9 |
|
|
|
9119d9 |
It would be nice to also print a params pointer and number of params in
|
|
|
9119d9 |
the debug message and the previous limit for number of params in the rpc
|
|
|
9119d9 |
message was too large. The 2048 params will be enough for future events.
|
|
|
9119d9 |
|
|
|
9119d9 |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
9119d9 |
(cherry picked from commit ceb7c90e6908096d52acc260fe22723f3f1fc137)
|
|
|
9119d9 |
|
|
|
9119d9 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1115898
|
|
|
9119d9 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
9119d9 |
---
|
|
|
9119d9 |
daemon/remote.c | 4 ++--
|
|
|
9119d9 |
src/remote/remote_protocol.x | 2 +-
|
|
|
9119d9 |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
9119d9 |
|
|
|
9119d9 |
diff --git a/daemon/remote.c b/daemon/remote.c
|
|
|
9119d9 |
index fc43c69..0112a32 100644
|
|
|
9119d9 |
--- a/daemon/remote.c
|
|
|
9119d9 |
+++ b/daemon/remote.c
|
|
|
9119d9 |
@@ -990,8 +990,8 @@ remoteRelayDomainEventTunable(virConnectPtr conn,
|
|
|
9119d9 |
!remoteRelayDomainEventCheckACL(callback->client, conn, dom))
|
|
|
9119d9 |
return -1;
|
|
|
9119d9 |
|
|
|
9119d9 |
- VIR_DEBUG("Relaying domain tunable event %s %d, callback %d",
|
|
|
9119d9 |
- dom->name, dom->id, callback->callbackID);
|
|
|
9119d9 |
+ VIR_DEBUG("Relaying domain tunable event %s %d, callback %d, params %p %d",
|
|
|
9119d9 |
+ dom->name, dom->id, callback->callbackID, params, nparams);
|
|
|
9119d9 |
|
|
|
9119d9 |
/* build return data */
|
|
|
9119d9 |
memset(&data, 0, sizeof(data));
|
|
|
9119d9 |
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
|
|
|
9119d9 |
index e7ee2e8..da724d1 100644
|
|
|
9119d9 |
--- a/src/remote/remote_protocol.x
|
|
|
9119d9 |
+++ b/src/remote/remote_protocol.x
|
|
|
9119d9 |
@@ -245,7 +245,7 @@ const REMOTE_NETWORK_DHCP_LEASES_MAX = 65536;
|
|
|
9119d9 |
const REMOTE_CONNECT_GET_ALL_DOMAIN_STATS_MAX = 4096;
|
|
|
9119d9 |
|
|
|
9119d9 |
/* Upper limit of message size for tunable event. */
|
|
|
9119d9 |
-const REMOTE_DOMAIN_EVENT_TUNABLE_MAX = 8388608;
|
|
|
9119d9 |
+const REMOTE_DOMAIN_EVENT_TUNABLE_MAX = 2048;
|
|
|
9119d9 |
|
|
|
9119d9 |
/* UUID. VIR_UUID_BUFLEN definition comes from libvirt.h */
|
|
|
9119d9 |
typedef opaque remote_uuid[VIR_UUID_BUFLEN];
|
|
|
9119d9 |
--
|
|
|
9119d9 |
2.1.1
|
|
|
9119d9 |
|