Skip to content
Commit 9414e996 authored by Phil Carmody's avatar Phil Carmody Committed by Robert Richter
Browse files

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: default avatarPhil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
parent b971f061
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment