lkml.org 
[lkml]   [2018]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v11 1/3]: perf util: map data buffer for preserving collected data
From
Date
Hi,

On 08.10.2018 13:51, Jiri Olsa wrote:
> On Mon, Oct 08, 2018 at 09:14:29AM +0300, Alexey Budankov wrote:
<SNIP>
>
> could you please separate those in struct, maybe anonymous like:
>
> ...
> struct {
> void *data;
> struct aiocb cblock;
> int nr_cblocks;
> } aio;
> ...
>

Accepted.

>
>> };
>>
>> /*
>> @@ -59,6 +67,9 @@ enum bkw_mmap_state {
>> struct mmap_params {
>> int prot, mask;
>> struct auxtrace_mmap_params auxtrace_mp;
>> +#ifdef HAVE_AIO_SUPPORT
>> + int nr_cblocks;
>> +#endif
>
> I dont think we need the ifdef here.. IMO one extra int is not
> worth of the ifdef endif confusion

Accepted.

Thanks,
Alexey

>
> jirka
>

\
 
 \ /
  Last update: 2018-10-08 14:06    [W:0.091 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site