From: Mathieu Desnoyers Date: Wed, 9 Feb 2011 19:09:11 +0000 (-0500) Subject: Add getcpu error validation X-Git-Tag: v1.9.1~487 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=8f09cb9340387a52b483752c5d2d6c36035b26bc;hp=8f09cb9340387a52b483752c5d2d6c36035b26bc;p=lttng-ust.git Add getcpu error validation This check is important for the case where getcpu(2) is not implemented by the Kernel. So, the CPU 0 is the fallback. Reported-by: David Goulet Signed-off-by: Mathieu Desnoyers ---