×

Performing call stack sampling by setting affinity of target thread to a current process to prevent target thread migration

  • US 8,843,684 B2
  • Filed: 06/11/2010
  • Issued: 09/23/2014
  • Est. Priority Date: 06/11/2010
  • Status: Active Grant
First Claim
Patent Images

1. A computer program product comprising a computer useable medium having a computer readable program, wherein the computer readable program when executed on a computer causes the computer to:

  • generate an interrupt based on an event;

    capture information, with an interrupt handler, for an interrupted thread on a current processor from among a plurality of processors;

    set an affinity of the interrupted thread such that the interrupted thread runs only on the current processor without being able to migrate to a different processor from among the plurality of processors;

    retrieve, with a profiler thread that runs on the current processor, a call stack associated with the interrupted thread after the affinity of the interrupted thread has been set to the current processor; and

    restore the affinity of the interrupted thread after the call stack has been retrieved.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×