[Qemu-devel] [PATCH v4 0/2] block latency histogram

Vladimir Sementsov-Ogievskiy posted 2 patches 6 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180309153347.62552-1-vsementsov@virtuozzo.com
Test checkpatch passed
Test docker-build@min-glib passed
Test docker-mingw@fedora passed
Test docker-quick@centos6 passed
There is a newer version of this series
qapi/block-core.json       | 111 ++++++++++++++++++++++++++++++++++++++++++++-
include/block/accounting.h |  32 +++++++++++++
block/accounting.c         |  59 ++++++++++++++++++++++++
block/qapi.c               |  41 +++++++++++++++++
blockdev.c                 |  76 +++++++++++++++++++++++++++++++
5 files changed, 318 insertions(+), 1 deletion(-)
[Qemu-devel] [PATCH v4 0/2] block latency histogram
Posted by Vladimir Sementsov-Ogievskiy 6 years, 1 month ago
v4:

Move block_latency_histogram_set from block/accounting.c to
blockdev.c, as it uses qapi type uint64List and this fact breaks
build.


v3:

- semantics, naming and wording changed a lot
- x prefixes added to new qapi names
- bug fixed about calculation of new_size (new_nbins now)
- drop g_renew
- in _clear() set nbinst to zero too

v2:

01: add block_latency_histogram_clear()
02: fix spelling (sorry =()
    some rewordings
    remove histogram if latency parameter unspecified

Vladimir Sementsov-Ogievskiy (2):
  block/accounting: introduce latency histogram
  qapi: add block latency histogram interface

 qapi/block-core.json       | 111 ++++++++++++++++++++++++++++++++++++++++++++-
 include/block/accounting.h |  32 +++++++++++++
 block/accounting.c         |  59 ++++++++++++++++++++++++
 block/qapi.c               |  41 +++++++++++++++++
 blockdev.c                 |  76 +++++++++++++++++++++++++++++++
 5 files changed, 318 insertions(+), 1 deletion(-)

-- 
2.11.1


Re: [Qemu-devel] [PATCH v4 0/2] block latency histogram
Posted by Eric Blake 6 years, 1 month ago
On 03/09/2018 09:33 AM, Vladimir Sementsov-Ogievskiy wrote:
> v4:
> 
> Move block_latency_histogram_set from block/accounting.c to
> blockdev.c, as it uses qapi type uint64List and this fact breaks
> build.

Was the cross file motion necessary, or could you just fix the #includes 
according to the recent qapi header refactoring?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Re: [Qemu-devel] [PATCH v4 0/2] block latency histogram
Posted by Vladimir Sementsov-Ogievskiy 6 years, 1 month ago
09.03.2018 18:40, Eric Blake wrote:
> On 03/09/2018 09:33 AM, Vladimir Sementsov-Ogievskiy wrote:
>> v4:
>>
>> Move block_latency_histogram_set from block/accounting.c to
>> blockdev.c, as it uses qapi type uint64List and this fact breaks
>> build.
>
> Was the cross file motion necessary, or could you just fix the 
> #includes according to the recent qapi header refactoring?
>

Looks like it's not as simple..

/tmp/qemu-test/src/include/block/accounting.h:30:10: fatal error: qapi-types.h: No such file or directory
  #include "qapi-types.h


what to do now? Looks like qapi-types are not generated for some builds. So, this version (v4) should take place.

-- 
Best regards,
Vladimir


Re: [Qemu-devel] [PATCH v4 0/2] block latency histogram
Posted by Eric Blake 6 years, 1 month ago
On 03/09/2018 10:31 AM, Vladimir Sementsov-Ogievskiy wrote:
> 09.03.2018 18:40, Eric Blake wrote:
>> On 03/09/2018 09:33 AM, Vladimir Sementsov-Ogievskiy wrote:
>>> v4:
>>>
>>> Move block_latency_histogram_set from block/accounting.c to
>>> blockdev.c, as it uses qapi type uint64List and this fact breaks
>>> build.
>>
>> Was the cross file motion necessary, or could you just fix the 
>> #includes according to the recent qapi header refactoring?
>>
> 
> Looks like it's not as simple..
> 
> /tmp/qemu-test/src/include/block/accounting.h:30:10: fatal error: 
> qapi-types.h: No such file or directory
>   #include "qapi-types.h
> 
> 
> what to do now? Looks like qapi-types are not generated for some builds. 
> So, this version (v4) should take place.

top-level qapi-types.h was replaced by lots of qapi/qapi*.h modular 
headers.  Unfortunately, incremental builds don't delete the stale 
qapi-types.h that was left in tree from the point prior to the qapi 
header refactoring.

To get uint64List, use qapi/qapi-builtin-types.h.  To get any type 
defined in a qapi/MODULE.json file, use qapi/qapi-MODULE-types.h.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Re: [Qemu-devel] [PATCH v4 0/2] block latency histogram
Posted by Vladimir Sementsov-Ogievskiy 6 years, 1 month ago
09.03.2018 19:37, Eric Blake wrote:
> On 03/09/2018 10:31 AM, Vladimir Sementsov-Ogievskiy wrote:
>> 09.03.2018 18:40, Eric Blake wrote:
>>> On 03/09/2018 09:33 AM, Vladimir Sementsov-Ogievskiy wrote:
>>>> v4:
>>>>
>>>> Move block_latency_histogram_set from block/accounting.c to
>>>> blockdev.c, as it uses qapi type uint64List and this fact breaks
>>>> build.
>>>
>>> Was the cross file motion necessary, or could you just fix the 
>>> #includes according to the recent qapi header refactoring?
>>>
>>
>> Looks like it's not as simple..
>>
>> /tmp/qemu-test/src/include/block/accounting.h:30:10: fatal error: 
>> qapi-types.h: No such file or directory
>>   #include "qapi-types.h
>>
>>
>> what to do now? Looks like qapi-types are not generated for some 
>> builds. So, this version (v4) should take place.
>
> top-level qapi-types.h was replaced by lots of qapi/qapi*.h modular 
> headers.  Unfortunately, incremental builds don't delete the stale 
> qapi-types.h that was left in tree from the point prior to the qapi 
> header refactoring.
>
> To get uint64List, use qapi/qapi-builtin-types.h.  To get any type 
> defined in a qapi/MODULE.json file, use qapi/qapi-MODULE-types.h.
>

thanks, now it works, after git clean..

-- 
Best regards,
Vladimir