CN102947803A - 对指令执行次数进行计数的方法、系统及处理器 - Google Patents

对指令执行次数进行计数的方法、系统及处理器 Download PDF

Info

Publication number
CN102947803A
CN102947803A CN2010800042767A CN201080004276A CN102947803A CN 102947803 A CN102947803 A CN 102947803A CN 2010800042767 A CN2010800042767 A CN 2010800042767A CN 201080004276 A CN201080004276 A CN 201080004276A CN 102947803 A CN102947803 A CN 102947803A
Authority
CN
China
Prior art keywords
instruction
counted
module
designated order
counting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010800042767A
Other languages
English (en)
Other versions
CN102947803B (zh
Inventor
韩冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhitong World Technology Service Co. Ltd.
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102947803A publication Critical patent/CN102947803A/zh
Application granted granted Critical
Publication of CN102947803B publication Critical patent/CN102947803B/zh
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/88Monitoring involving counting

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明实施例公开了一种对指令执行次数进行计数的方法、系统及处理器,属于计算机领域。所述方法包括:在指定指令上添加计数信息;在处理器内部设置计数模块,当所述处理器执行所述指定指令时,所述计数模块根据所述正在执行的指定指令的计数信息,在对应的寄存器中对所述正在执行的指定指令的执行次数进行计数。所述系统包括:预定处理器和存储计数装置。所述处理器包括:添加模块、第二执行模块、第二计数模块和寄存器。本发明实施例通过在处理器内设置计数模块,当处理器执行指令时,该计数模块对正在执行的指令的执行次数进行计数,而不在软件系统中写用来计数的指令,因此大大提高了软件系统的性能。

Description

PCT国内申请,说明书已公开。

Claims (1)

  1. PCT国内申请,权利要求书已公开。
CN201080004276.7A 2010-03-29 2010-03-29 对指令执行次数进行计数的方法、系统及处理器 Expired - Fee Related CN102947803B (zh)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2010/071391 WO2011120216A1 (zh) 2010-03-29 2010-03-29 对指令执行次数进行计数的方法、系统及处理器

Publications (2)

Publication Number Publication Date
CN102947803A true CN102947803A (zh) 2013-02-27
CN102947803B CN102947803B (zh) 2016-06-08

Family

ID=44711299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201080004276.7A Expired - Fee Related CN102947803B (zh) 2010-03-29 2010-03-29 对指令执行次数进行计数的方法、系统及处理器

Country Status (2)

Country Link
CN (1) CN102947803B (zh)
WO (1) WO2011120216A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199159A (zh) * 2020-10-16 2021-01-08 常熟理工学院 对操作数栈和变量表的读写方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5797019A (en) * 1995-10-02 1998-08-18 International Business Machines Corporation Method and system for performance monitoring time lengths of disabled interrupts in a processing system
CN1604044A (zh) * 2003-09-30 2005-04-06 国际商业机器公司 用于指令和数据访问的选择性计数的方法和装置
CN1834940A (zh) * 2005-12-22 2006-09-20 苏州超锐微电子有限公司 一种通过在指令中嵌入计数器实现断点调试功能的方法
US20090157945A1 (en) * 2002-12-05 2009-06-18 Ravi Kumar Arimilli Enhanced Processor Virtualization Mechanism Via Saving and Restoring Soft Processor/System States
US20090259830A1 (en) * 2008-04-09 2009-10-15 Venkat Rajeev Indukuru Quantifying Completion Stalls Using Instruction Sampling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5797019A (en) * 1995-10-02 1998-08-18 International Business Machines Corporation Method and system for performance monitoring time lengths of disabled interrupts in a processing system
US20090157945A1 (en) * 2002-12-05 2009-06-18 Ravi Kumar Arimilli Enhanced Processor Virtualization Mechanism Via Saving and Restoring Soft Processor/System States
CN1604044A (zh) * 2003-09-30 2005-04-06 国际商业机器公司 用于指令和数据访问的选择性计数的方法和装置
CN1834940A (zh) * 2005-12-22 2006-09-20 苏州超锐微电子有限公司 一种通过在指令中嵌入计数器实现断点调试功能的方法
US20090259830A1 (en) * 2008-04-09 2009-10-15 Venkat Rajeev Indukuru Quantifying Completion Stalls Using Instruction Sampling

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199159A (zh) * 2020-10-16 2021-01-08 常熟理工学院 对操作数栈和变量表的读写方法、装置、设备及存储介质

Also Published As

Publication number Publication date
WO2011120216A1 (zh) 2011-10-06
CN102947803B (zh) 2016-06-08

Similar Documents

Publication Publication Date Title
US8898642B2 (en) Profiling and sequencing operators executable in an emulated computing system
CN102662690A (zh) 应用程序启动方法和装置
CN102955737B (zh) 异构处理器体系的程序调试方法和系统
CN104778116B (zh) 一种多断点的软件调试装置和方法
CN105741883A (zh) 测试方法和装置
CN103577310A (zh) 记录软件调试日志的方法以及装置
CN105373338A (zh) 一种flash的控制方法和控制器
CN104834504A (zh) 基于mcu和dsp主从协同工作的soc双核架构及其工作方法
CN103207830A (zh) 带有软件断点的仿真器
CN103473185A (zh) 缓存写入的方法、缓存装置和存储系统
CN102662799B (zh) 数据备份的方法、服务器及热备份系统
CN109117297A (zh) 一种固态硬盘的故障定位方法及装置
CN103093005A (zh) 一种遥信数据处理方法和装置
CN102609484A (zh) 一种通用系统日志管理方法
CN103092759A (zh) 一种嵌入式环境下的代码动态性能剖析器
CN105389268A (zh) 资料储存系统及其运作方法
CN102331961B (zh) 并行模拟多个处理器的方法及系统、调度器
CN102629212A (zh) 一种基于j-link间接烧写程序到nandflash的方法
CN102947803A (zh) 对指令执行次数进行计数的方法、系统及处理器
CN105677233A (zh) 即时数据的储存方法及储存装置
CN103389893A (zh) 一种配置寄存器读写方法及装置
CN103914318A (zh) 程序启动的方法和装置
CN110532535A (zh) 一种政务智能表单交互系统
CN100485637C (zh) 一种基于嵌入式应用系统实现硬件寄存器的方法
CN106095631B (zh) 一种基于有限状态机实现的多周期非流水线cpu动态调试方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170817

Address after: 201, room 1, building A, No. 518053, front Bay Road, Qianhai, Shenzhen Shenzhen cooperation zone, Guangdong, China

Patentee after: Shenzhen Zhitong World Technology Service Co. Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20130227

Assignee: Shenzhen Vimicro Tech Co. Ltd.

Assignor: Shenzhen Zhitong World Technology Service Co. Ltd.

Contract record no.: 2017440020097

Denomination of invention: Method, system and processor for performing count of instruction execution times

Granted publication date: 20160608

License type: Common License

Record date: 20171211

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160608

Termination date: 20200329