Re: [PATCH v12 2/3]: perf record: enable asynchronous trace writing

From: Alexey Budankov
Date: Thu Oct 11 2018 - 12:15:47 EST


On 11.10.2018 16:45, Jiri Olsa wrote:
> On Tue, Oct 09, 2018 at 11:58:53AM +0300, Alexey Budankov wrote:
>
> SNIP
>
>> @@ -1378,6 +1566,22 @@ static int parse_clockid(const struct option *opt, const char *str, int unset)
>> return -1;
>> }
>>
>> +#ifdef HAVE_AIO_SUPPORT
>> +static int record__aio_parse(const struct option *opt,
>> + const char *str __maybe_unused,
>> + int unset)
>> +{
>> + struct record_opts *opts = (struct record_opts *)opt->value;
>> +
>> + if (unset)
>> + opts->nr_cblocks = 0;
>> + else
>> + opts->nr_cblocks = 1;
>> +
>> + return 0;
>> +}
>> +#endif
>
> same, please move this up to have just one 'ifdef HAVE_AIO_SUPPORT' block

Accepted.

>
> thanks,
> jirka
>