首页> 外国专利> Performing call stack sampling by setting affinity of target thread to a current process to prevent target thread migration

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

机译:通过设置目标线程与当前进程的亲和力来执行调用堆栈采样,以防止目标线程迁移

摘要

A sample is generated based on an event. Further, an interrupt handler captures information for an interrupted thread on a current processor. In addition, an affinity of the interrupted thread is set such that the interrupted thread runs only on the current processor without being able to migrate to a different processor. A sampler thread that runs on the current processor retrieves a call stack associated with the interrupted thread after the affinity of the interrupted thread has been set to the current processor. The affinity of the interrupted thread is restored after the call stack has been retrieved.
机译:根据事件生成样本。此外,中断处理程序捕获当前处理器上被中断线程的信息。另外,设置被中断线程的亲和力,以使被中断线程仅在当前处理器上运行,而不能迁移到其他处理器。在已中断线程与当前处理器的亲和性设置好之后,在当前处理器上运行的采样器线程将检索与该中断线程关联的调用堆栈。检索到调用堆栈后,将恢复被中断线程的亲和力。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号