[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backen
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backend |
Date: |
Thu, 12 Aug 2010 20:31:30 +0100 |
On Thu, Aug 12, 2010 at 6:56 PM, Blue Swirl <address@hidden> wrote:
> On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi
>> +static bool write_header(FILE *fp)
>> +{
>> + TraceRecord header = {
>
> This should be 'static const'.
Okay.
>> diff --git a/simpletrace.h b/simpletrace.h
>> new file mode 100644
>> index 0000000..e4e9759
>> --- /dev/null
>> +++ b/simpletrace.h
>> @@ -0,0 +1,26 @@
>> +/*
>> + * Simple trace backend
>> + *
>> + * Copyright IBM, Corp. 2010
>> + *
>> + * This work is licensed under the terms of the GNU GPL, version 2. See
>> + * the COPYING file in the top-level directory.
>> + *
>> + */
>> +
>> +#ifndef SIMPLETRACE_H
>> +#define SIMPLETRACE_H
>> +
>> +#include <stdbool.h>
>
> Why?
The stdbool.h header is not needed here. This is an artifact of
rebasing the tracing branch to squash and order commits logically.
The header is only needed starting in "[PATCH 08/14] trace: Support
for dynamically enabling/disabling trace events".
Will fix in v2.
Stefan
- [Qemu-devel] [PATCH 00/14] trace: Add static tracing to QEMU, Stefan Hajnoczi, 2010/08/12
- [Qemu-devel] [PATCH 13/14] trace: Add LTTng Userspace Tracer backend, Stefan Hajnoczi, 2010/08/12
- [Qemu-devel] [PATCH 12/14] trace: Add trace file name command-line option, Stefan Hajnoczi, 2010/08/12
- [Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backend, Stefan Hajnoczi, 2010/08/12
- [Qemu-devel] [PATCH 14/14] trace: Add user documentation, Stefan Hajnoczi, 2010/08/12
- [Qemu-devel] [PATCH 03/14] trace: Trace virtio-blk, multiwrite, and paio_submit, Stefan Hajnoczi, 2010/08/12
- [Qemu-devel] [PATCH 08/14] trace: Support for dynamically enabling/disabling trace events., Stefan Hajnoczi, 2010/08/12
- [Qemu-devel] [PATCH 11/14] trace: Add trace-file command to open/close/flush trace file, Stefan Hajnoczi, 2010/08/12
- [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events, Stefan Hajnoczi, 2010/08/12