qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 3/3] trace: instrument and trace tcg tb flush


From: Alex Bennée
Subject: Re: [Qemu-devel] [PATCH v2 3/3] trace: instrument and trace tcg tb flush activity
Date: Tue, 15 Jul 2014 14:10:47 +0100

Peter Maydell writes:

> On 15 July 2014 12:42, Alex Bennée <address@hidden> wrote:
>> +#ifndef CONFIG_TRACE_NOP
>> +static inline void trace_inc_counter(int *counter) {
>> +    int cnt = *counter;
>> +    cnt++;
>> +    *counter = cnt;
>> +}
>
> ...why isn't this just "*counter++;"  ?

You of course mean:

    (*counter)++;

I'll fix that up for the next iteration...

-- 
Alex Bennée



reply via email to

[Prev in Thread] Current Thread [Next in Thread]