[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87zjpo4ppl.fsf@sejong.aot.lge.com>
Date: Fri, 01 Nov 2013 15:10:30 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Stanislav Fomichev <stfomichev@...dex-team.ru>
Cc: a.p.zijlstra@...llo.nl, paulus@...ba.org, mingo@...hat.com,
acme@...stprotocols.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/6] perf timechart: add support for displaying only tasks related data
On Tue, 29 Oct 2013 13:33:29 +0400, Stanislav Fomichev wrote:
>> Hmm.. double negation is always confusing to me. :-/ How about making
>> it a boolean option that sets "task_only" variable?
> Ok.
>
>> Also need to update the doc. And what if user gives -P and -T options
>> at the same time?
> Is something like this is enough (or you'd like some printout with error
> details)?
>
> if (!proc_num && task_only)
> usage_with_options(timechart_usage, options);
It'd be better if we have:
if (power_only && task_only) {
pr_err("-P and -T options cannot be used at the same time.\n");
return -1;
}
Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists