Re: [PATCH 3/6] perf timechart: add support for displaying only tasks related data

From: Namhyung Kim
Date: Fri Nov 01 2013 - 02:10:37 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/