Re: [PATCH 5/7] perf top: Delay UI browser setup after initialization is done

From: Arnaldo Carvalho de Melo
Date: Thu Dec 10 2015 - 12:52:14 EST


Em Thu, Dec 10, 2015 at 02:43:32PM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Thu, Dec 10, 2015 at 12:00:57PM +0900, Namhyung Kim escreveu:
> > Move setup_browser after all necessary initialization is done. This
> > is to remove the browser dependency from usage_with_options() and
> > friends.
>
> So, please try:
>
> perf top -C 0 -p 1
>
> So that we get a command line validation error that will cause cmd_top
> to trip this:
>
> status = target__validate(target);
> if (status) {
> target__strerror(target, status, errbuf, BUFSIZ);
> ui__warning("%s\n", errbuf);
> }
>
> ui__warning() will emit the warning to stdio, and this message will be
> seen only after the user exits the tool:

So, this one should be enough, ack?