All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/xcutils: Free xlt loggers after use
@ 2014-03-10 17:06 Andrew Cooper
  2014-03-10 17:19 ` Ian Jackson
  2014-03-11 13:25 ` Ian Campbell
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Cooper @ 2014-03-10 17:06 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, Ian Jackson, Ian Campbell

While not much of a functional change, this prevents irritating warnings from
valgrind when trying to analyse xc_domain_{save,restore}() themselves.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 tools/xcutils/xc_restore.c |    1 +
 tools/xcutils/xc_save.c    |    1 +
 2 files changed, 2 insertions(+)

diff --git a/tools/xcutils/xc_restore.c b/tools/xcutils/xc_restore.c
index 4ea261b..616bd42 100644
--- a/tools/xcutils/xc_restore.c
+++ b/tools/xcutils/xc_restore.c
@@ -67,6 +67,7 @@ main(int argc, char **argv)
     }
 
     xc_interface_close(xch);
+    xtl_logger_destroy(l);
 
     return ret;
 }
diff --git a/tools/xcutils/xc_save.c b/tools/xcutils/xc_save.c
index e34bd2c..45ad0ce 100644
--- a/tools/xcutils/xc_save.c
+++ b/tools/xcutils/xc_save.c
@@ -222,6 +222,7 @@ main(int argc, char **argv)
         xc_evtchn_close(si.xce);
 
     xc_interface_close(si.xch);
+    xtl_logger_destroy(l);
 
     return ret;
 }
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] tools/xcutils: Free xlt loggers after use
  2014-03-10 17:06 [PATCH] tools/xcutils: Free xlt loggers after use Andrew Cooper
@ 2014-03-10 17:19 ` Ian Jackson
  2014-03-10 17:21   ` Andrew Cooper
  2014-03-11 13:25 ` Ian Campbell
  1 sibling, 1 reply; 6+ messages in thread
From: Ian Jackson @ 2014-03-10 17:19 UTC (permalink / raw)
  To: Andrew Cooper; +Cc: Ian Campbell, Xen-devel

Andrew Cooper writes ("[PATCH] tools/xcutils: Free xlt loggers after use"):
> While not much of a functional change, this prevents irritating warnings from
> valgrind when trying to analyse xc_domain_{save,restore}() themselves.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> CC: Ian Campbell <Ian.Campbell@citrix.com>

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>

(and fixed the subject line typo in the actual commit)

Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] tools/xcutils: Free xlt loggers after use
  2014-03-10 17:19 ` Ian Jackson
@ 2014-03-10 17:21   ` Andrew Cooper
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Cooper @ 2014-03-10 17:21 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Ian Campbell, Xen-devel

On 10/03/14 17:19, Ian Jackson wrote:
> Andrew Cooper writes ("[PATCH] tools/xcutils: Free xlt loggers after use"):
>> While not much of a functional change, this prevents irritating warnings from
>> valgrind when trying to analyse xc_domain_{save,restore}() themselves.
>>
>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
>> CC: Ian Campbell <Ian.Campbell@citrix.com>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> (and fixed the subject line typo in the actual commit)
>
> Ian.

Ah thanks - I hadn't noticed the typo.

That must be record timing from writing the patch to getting committed -
about 15 mins :)

~Andrew

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] tools/xcutils: Free xlt loggers after use
  2014-03-10 17:06 [PATCH] tools/xcutils: Free xlt loggers after use Andrew Cooper
  2014-03-10 17:19 ` Ian Jackson
@ 2014-03-11 13:25 ` Ian Campbell
  2014-03-11 13:51   ` Andrew Cooper
  1 sibling, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2014-03-11 13:25 UTC (permalink / raw)
  To: Andrew Cooper; +Cc: Ian Jackson, Xen-devel

On Mon, 2014-03-10 at 17:06 +0000, Andrew Cooper wrote:
> While not much of a functional change, this prevents irritating warnings from
> valgrind when trying to analyse xc_domain_{save,restore}() themselves.

Are you trying to valgrind xend or something? (I thought these were
exclusively used by xend).
>  tools/xcutils/xc_restore.c |    1 +
>  tools/xcutils/xc_save.c    |    1 +
>  2 files changed, 2 insertions(+)

Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] tools/xcutils: Free xlt loggers after use
  2014-03-11 13:25 ` Ian Campbell
@ 2014-03-11 13:51   ` Andrew Cooper
  2014-03-11 14:06     ` Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cooper @ 2014-03-11 13:51 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Ian Jackson, Xen-devel

On 11/03/14 13:25, Ian Campbell wrote:
> On Mon, 2014-03-10 at 17:06 +0000, Andrew Cooper wrote:
>> While not much of a functional change, this prevents irritating warnings from
>> valgrind when trying to analyse xc_domain_{save,restore}() themselves.
> Are you trying to valgrind xend or something? (I thought these were
> exclusively used by xend).
>>  tools/xcutils/xc_restore.c |    1 +
>>  tools/xcutils/xc_save.c    |    1 +
>>  2 files changed, 2 insertions(+)
> Ian.
>
>

I am developing the migration stream v2, and using xc_save/restore as
thin wrappers around xc_domain_save/restore(), where I can dump the
intermediate stream to a file and verify it for correctness.

~Andrew

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] tools/xcutils: Free xlt loggers after use
  2014-03-11 13:51   ` Andrew Cooper
@ 2014-03-11 14:06     ` Ian Campbell
  0 siblings, 0 replies; 6+ messages in thread
From: Ian Campbell @ 2014-03-11 14:06 UTC (permalink / raw)
  To: Andrew Cooper; +Cc: Ian Jackson, Xen-devel

On Tue, 2014-03-11 at 13:51 +0000, Andrew Cooper wrote:
> On 11/03/14 13:25, Ian Campbell wrote:
> > On Mon, 2014-03-10 at 17:06 +0000, Andrew Cooper wrote:
> >> While not much of a functional change, this prevents irritating warnings from
> >> valgrind when trying to analyse xc_domain_{save,restore}() themselves.
> > Are you trying to valgrind xend or something? (I thought these were
> > exclusively used by xend).
> >>  tools/xcutils/xc_restore.c |    1 +
> >>  tools/xcutils/xc_save.c    |    1 +
> >>  2 files changed, 2 insertions(+)
> > Ian.
> >
> >
> 
> I am developing the migration stream v2, and using xc_save/restore as
> thin wrappers around xc_domain_save/restore(), where I can dump the
> intermediate stream to a file and verify it for correctness.

Ah, useful!

I suspect you could also achieve this by providing xl migrate with a
custom -s command which involved a tee as well as a ssh, but you may as
well stick with what you've got.

Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-11 14:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10 17:06 [PATCH] tools/xcutils: Free xlt loggers after use Andrew Cooper
2014-03-10 17:19 ` Ian Jackson
2014-03-10 17:21   ` Andrew Cooper
2014-03-11 13:25 ` Ian Campbell
2014-03-11 13:51   ` Andrew Cooper
2014-03-11 14:06     ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.