[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH v1 1/4] qemu-log: Allow checking of the curr
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [RFC PATCH v1 1/4] qemu-log: Allow checking of the current mask |
Date: |
Sun, 3 Mar 2013 10:32:14 +0000 |
On 3 March 2013 06:13, Peter Crosthwaite <address@hidden> wrote:
> Useful for heavy users of qemu_log_mask that want to avoid executing expensive
> logic that sets up a qemu_log_mask when that mask is disabled. E.G.
>
> if (qemu_log_get_mask() && LOG_GUEST_ERROR) {
> /* do my expensive logging data query */
> }
> qemu_log_mask(LOG_GUEST_ERROR, ...)
Why can't you use the existing
if (qemu_loglevel_mask(LOG_GUEST_ERROR) {
/* expensive thing */
}
?
-- PMM
- [Qemu-devel] [RFC PATCH v1 0/4] Data Driven device registers & Zynq DEVCFG, Peter Crosthwaite, 2013/03/03
- [Qemu-devel] [RFC PATCH v1 1/4] qemu-log: Allow checking of the current mask, Peter Crosthwaite, 2013/03/03
- Re: [Qemu-devel] [RFC PATCH v1 1/4] qemu-log: Allow checking of the current mask,
Peter Maydell <=
- [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions, Peter Crosthwaite, 2013/03/03
- Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions, Blue Swirl, 2013/03/03
- Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions, Michael S. Tsirkin, 2013/03/04
- Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions, Blue Swirl, 2013/03/04
- Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions, Michael S. Tsirkin, 2013/03/05
- Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions, Gerd Hoffmann, 2013/03/05
- Re: [Qemu-devel] [RFC PATCH v1 2/4] bitops: Add UInt32StateInfo and helper functions, Michael S. Tsirkin, 2013/03/05