Re: [BUG] perf stat: explicit grouping yields unexpected results
From: Andi Kleen
Date: Tue Dec 03 2013 - 18:44:49 EST
Stephane Eranian <eranian@xxxxxxxxxx> writes:
>>
> I don't understand why this need to be so complicated.
> Maybe just change the error code in case of group
> overcommitment? That way, the tool could distinguish
> and report the appropriate error message.
The existing errno is an ABI.
Also that would handle this case, but there are a bazillion other
failure cases in perf. And we can't invent new errnos for all of them.
A string error interface would cover it all.
Usually when something strange like this happens in perf I have to apply
this patch
https://lkml.org/lkml/2013/3/8/432
and use ftrace to trace it down.
-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
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/