yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
0a122b
From 04f210211997117a226e6deef0b3c062058fa5d6 Mon Sep 17 00:00:00 2001
0a122b
Message-Id: <04f210211997117a226e6deef0b3c062058fa5d6.1389014116.git.minovotn@redhat.com>
0a122b
In-Reply-To: <c8cc35838d42aa286242772d97e3a9be7bb786ba.1389014116.git.minovotn@redhat.com>
0a122b
References: <c8cc35838d42aa286242772d97e3a9be7bb786ba.1389014116.git.minovotn@redhat.com>
0a122b
From: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Date: Mon, 9 Dec 2013 14:09:13 +0100
0a122b
Subject: [PATCH 25/50] block: add flags argument to bdrv_co_write_zeroes
0a122b
 tracepoint
0a122b
0a122b
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Message-id: <1386598178-11845-28-git-send-email-pbonzini@redhat.com>
0a122b
Patchwork-id: 56064
0a122b
O-Subject: [RHEL 7.0 qemu-kvm PATCH 27/52] block: add flags argument to bdrv_co_write_zeroes tracepoint
0a122b
Bugzilla: 1007815
0a122b
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
0a122b
RH-Acked-by: Fam Zheng <famz@redhat.com>
0a122b
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
0a122b
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Reviewed-by: Peter Lieven <pl@kamp.de>
0a122b
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
(cherry picked from commit 94d6ff21f48c8c98e6e9eef58cc6f6346c9dd851)
0a122b
---
0a122b
 block.c      | 2 +-
0a122b
 trace-events | 2 +-
0a122b
 2 files changed, 2 insertions(+), 2 deletions(-)
0a122b
0a122b
Signed-off-by: Michal Novotny <minovotn@redhat.com>
0a122b
---
0a122b
 block.c      | 2 +-
0a122b
 trace-events | 2 +-
0a122b
 2 files changed, 2 insertions(+), 2 deletions(-)
0a122b
0a122b
diff --git a/block.c b/block.c
0a122b
index 1f70913..c6cad55 100644
0a122b
--- a/block.c
0a122b
+++ b/block.c
0a122b
@@ -2896,7 +2896,7 @@ int coroutine_fn bdrv_co_write_zeroes(BlockDriverState *bs,
0a122b
                                       int64_t sector_num, int nb_sectors,
0a122b
                                       BdrvRequestFlags flags)
0a122b
 {
0a122b
-    trace_bdrv_co_write_zeroes(bs, sector_num, nb_sectors);
0a122b
+    trace_bdrv_co_write_zeroes(bs, sector_num, nb_sectors, flags);
0a122b
 
0a122b
     if (!(bs->open_flags & BDRV_O_UNMAP)) {
0a122b
         flags &= ~BDRV_REQ_MAY_UNMAP;
0a122b
diff --git a/trace-events b/trace-events
0a122b
index b72a72f..fa5a65c 100644
0a122b
--- a/trace-events
0a122b
+++ b/trace-events
0a122b
@@ -64,7 +64,7 @@ bdrv_lock_medium(void *bs, bool locked) "bs %p locked %d"
0a122b
 bdrv_co_readv(void *bs, int64_t sector_num, int nb_sector) "bs %p sector_num %"PRId64" nb_sectors %d"
0a122b
 bdrv_co_copy_on_readv(void *bs, int64_t sector_num, int nb_sector) "bs %p sector_num %"PRId64" nb_sectors %d"
0a122b
 bdrv_co_writev(void *bs, int64_t sector_num, int nb_sector) "bs %p sector_num %"PRId64" nb_sectors %d"
0a122b
-bdrv_co_write_zeroes(void *bs, int64_t sector_num, int nb_sector) "bs %p sector_num %"PRId64" nb_sectors %d"
0a122b
+bdrv_co_write_zeroes(void *bs, int64_t sector_num, int nb_sector, int flags) "bs %p sector_num %"PRId64" nb_sectors %d flags %#x"
0a122b
 bdrv_co_io_em(void *bs, int64_t sector_num, int nb_sectors, int is_write, void *acb) "bs %p sector_num %"PRId64" nb_sectors %d is_write %d acb %p"
0a122b
 bdrv_co_do_copy_on_readv(void *bs, int64_t sector_num, int nb_sectors, int64_t cluster_sector_num, int cluster_nb_sectors) "bs %p sector_num %"PRId64" nb_sectors %d cluster_sector_num %"PRId64" cluster_nb_sectors %d"
0a122b
 
0a122b
-- 
0a122b
1.7.11.7
0a122b