Re: [PATCH v11 3/3]: perf record: extend trace writing to multi AIO

Alexey Budankov
2018-10-08T15:22:10Z

Hi,

On 08.10.2018 15:45, Jiri Olsa wrote:
<SNIP>
>
> 'perf record --aio-cblocks=N' could imply '--aio',
>
> I'd like to have simple/intuitive way to enable that,
> without studing the meaning of the cblocks argument
>
> # perf record --aio ...
>
> means that I'm storing data via async writes,
> and using some reasonable default for cblocks

Semantically, --aio is equal to --aio-cblocks=default, as you said.
So, options duplication could be avoided by having some parsing
callback using OPT_CALLBACK().

>
> and later on we'd add 'perf record --threads'
> allowing threads based writers ;-)

Oh, I see. Cool.

Thanks,
Alexey

>
> jirka
>