From: Phil Carmody Date: Wed, 28 Apr 2010 17:09:16 +0000 (-0500) Subject: oprofile: protect from not being in an IRQ context X-Git-Tag: v2.6.35-rc1~523^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9414e99672271adcc661f3c160a30b374179b92f;p=pandora-kernel.git oprofile: protect from not being in an IRQ context http://lkml.org/lkml/2010/4/27/285 Protect against dereferencing regs when it's NULL, and force a magic number into pc to prevent too deep processing. This approach permits the dropped samples to be tallied as invalid Instruction Pointer events. e.g. output from about 15mins at 10kHz sample rate: Nr. samples received: 2565380 Nr. samples lost invalid pc: 4 Signed-off-by: Phil Carmody Signed-off-by: Robert Richter --- Reading git-diff-tree failed