From: Thomas Huth <thuth@redhat.com>
To: Konstantin Kostiuk <kkostiuk@redhat.com>, qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Michael Roth" <michael.roth@amd.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: Re: [PATCH v4 4/4] QGA VSS: Add log in functions begin/end
Date: Mon, 10 Jul 2023 10:10:59 +0200 [thread overview]
Message-ID: <5dddf780-5758-2e30-41f7-0de86b9de89a@redhat.com> (raw)
In-Reply-To: <20230710074639.996030-5-kkostiuk@redhat.com>
On 10/07/2023 09.46, Konstantin Kostiuk wrote:
> Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
> ---
> qga/vss-win32/install.cpp | 33 +++++++++++++++++++++++++++++++++
> qga/vss-win32/provider.cpp | 3 +++
> qga/vss-win32/requester.cpp | 34 ++++++++++++++++++++++++++++++++++
> 3 files changed, 70 insertions(+)
>
> diff --git a/qga/vss-win32/install.cpp b/qga/vss-win32/install.cpp
> index 9bd2c52b70..6865c04d8a 100644
> --- a/qga/vss-win32/install.cpp
> +++ b/qga/vss-win32/install.cpp
...
> @@ -175,6 +181,8 @@ out:
> static HRESULT QGAProviderFind(
> HRESULT (*found)(ICatalogCollection *, int, void *), void *arg)
> {
> + qga_debug_begin;
> +
> HRESULT hr;
> COMInitializer initializer;
> COMPointer<IUnknown> pUnknown;
> @@ -205,12 +213,15 @@ static HRESULT QGAProviderFind(
> chk(pColl->SaveChanges(&n));
>
> out:
> + qga_debug_end;
> return hr;
> }
>
> /* Count QGA VSS provider in COM+ Application Catalog */
> static HRESULT QGAProviderCount(ICatalogCollection *coll, int i, void *arg)
> {
> + qga_debug_begin;
> +
> (*(int *)arg)++;
> return S_OK;
> }
Missing gqa_debug_end here?
...
> @@ -277,6 +298,8 @@ VSS_BACKUP_TYPE get_vss_backup_type(
>
> void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset)
> {
> + qga_debug_begin;
> +
> COMPointer<IVssAsync> pAsync;
> HANDLE volume;
> HRESULT hr;
> @@ -292,6 +315,7 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset)
>
> if (vss_ctx.pVssbc) { /* already frozen */
> *num_vols = 0;
> + qga_debug("finished, already frozen");
> return;
> }
>
> @@ -449,6 +473,7 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset)
> }
> }
>
> + qga_debug("preparing for backup");
> hr = vss_ctx.pVssbc->PrepareForBackup(pAsync.replace());
> if (SUCCEEDED(hr)) {
> hr = WaitForAsync(pAsync);
> @@ -472,6 +497,7 @@ void requester_freeze(int *num_vols, void *mountpoints, ErrorSet *errset)
> * CQGAVssProvider::CommitSnapshots will kick vss_ctx.hEventFrozen
> * after the applications and filesystems are frozen.
> */
> + qga_debug("do snapshot set");
> hr = vss_ctx.pVssbc->DoSnapshotSet(&vss_ctx.pAsyncSnapshot);
> if (FAILED(hr)) {
> err_set(errset, hr, "failed to do snapshot set");
You should maybe mention these qga_debug() statements in the commit description.
Thomas
prev parent reply other threads:[~2023-07-10 8:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 7:46 [PATCH v4 0/4] QGA VSS Logging Konstantin Kostiuk
2023-07-10 7:46 ` [PATCH v4 1/4] QGA VSS: Add wrapper to send log to debugger and stderr Konstantin Kostiuk
2023-07-10 7:46 ` [PATCH v4 2/4] QGA VSS: Replace 'fprintf(stderr' with PRINT_DEBUG Konstantin Kostiuk
2023-07-10 8:00 ` Thomas Huth
2023-07-10 8:03 ` Konstantin Kostiuk
2023-07-10 7:46 ` [PATCH v4 3/4] QGA VSS: Print error in err_set Konstantin Kostiuk
2023-07-10 8:07 ` Thomas Huth
2023-07-10 7:46 ` [PATCH v4 4/4] QGA VSS: Add log in functions begin/end Konstantin Kostiuk
2023-07-10 8:10 ` Thomas Huth [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5dddf780-5758-2e30-41f7-0de86b9de89a@redhat.com \
--to=thuth@redhat.com \
--cc=kkostiuk@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=michael.roth@amd.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).