KR100869953B1 - Power measurement system using etm interface and method thereof - Google Patents

Power measurement system using etm interface and method thereof Download PDF

Info

Publication number
KR100869953B1
KR100869953B1 KR1020070052592A KR20070052592A KR100869953B1 KR 100869953 B1 KR100869953 B1 KR 100869953B1 KR 1020070052592 A KR1020070052592 A KR 1020070052592A KR 20070052592 A KR20070052592 A KR 20070052592A KR 100869953 B1 KR100869953 B1 KR 100869953B1
Authority
KR
South Korea
Prior art keywords
power consumption
information
target hardware
cpu
etm
Prior art date
Application number
KR1020070052592A
Other languages
Korean (ko)
Inventor
김성률
서대화
이종열
Original Assignee
경북대학교 산학협력단
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 경북대학교 산학협력단 filed Critical 경북대학교 산학협력단
Priority to KR1020070052592A priority Critical patent/KR100869953B1/en
Application granted granted Critical
Publication of KR100869953B1 publication Critical patent/KR100869953B1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R21/00Arrangements for measuring electric power or power factor
    • G01R21/06Arrangements for measuring electric power or power factor by measuring current and voltage
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R21/00Arrangements for measuring electric power or power factor
    • G01R21/133Arrangements for measuring electric power or power factor by using digital technique
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the preceding groups
    • G01R35/005Calibrating; Standards or reference devices, e.g. voltage or resistance standards, "golden" references
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 – G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring

Abstract

The present invention relates to a power measurement system using an ETM interface. The power measurement system, when a specific function or process is executed in the CPU of the target hardware, measures the current in the device to be measured of the target hardware, collects CPU information of the target hardware using the ETM debugger and Obtain PC information. The power measurement system detects information on a function or a process executed in the CPU using the PC information and a previously prepared symbol table. Using the detected function or process information and the measured current value, power consumption at the device to be measured by the execution of the function or process is calculated.

Description

Power measurement system using ETM interface and method thereof

1 is a block diagram schematically illustrating a configuration of a power measurement system using an ETM interface according to a preferred embodiment of the present invention.

2 is a flowchart sequentially illustrating an operation of a power consumption analyzer of a power measurement system according to an exemplary embodiment of the present invention.

3 is a screen configuration diagram exemplarily illustrating a power consumption pattern displayed on a display unit by a power measurement system according to an exemplary embodiment of the present invention.

<Explanation of symbols for the main parts of the drawings>

10: power measurement system

100: current detector

110: current data logging unit

120: clock correction circuit

130: ETM Debugger

150: CPU information logging unit

160: power consumption analysis unit

170: display unit

180: data storage unit

20: target hardware

200: central processing unit (CPU)

210: clock generator

220: ETM interface unit

230: measurement terminal

The present invention relates to a power measurement system using an ETM interface, and more particularly, to a power measurement system capable of measuring power consumption or power consumption patterns for application software executed on target hardware such as an embedded system.

The embedded system is an electronic control system embedded in the electronic product in order to make an electronic product having a specific function. The embedded system is a combination of hardware and software for performing a predetermined specific function. The above-described embedded system includes a TV, a refrigerator, a mobile phone, a set-top box, a DTV, and the like. A computer system having a general purpose of performing various functions such as a personal computer is not included in the embedded system.

Developing an embedded system requires a variety of components, such as the host computer and target hardware equipment. Here, the host computer refers to a computer for developing an embedded system, and the target hardware equipment refers to hardware to be developed on which an actual embedded system is installed. The host computer can be used for remote debugging through a development tool for development, a target simulator for temporarily executing the developed application, uploading an image to the target hardware in connection with the target hardware, or a debug agent responding to the target hardware. There is a target server installed to enable this.

Recently, various types of embedded systems are provided, and various types of applications executed in each embedded system are provided. In general, in developing an embedded system or application, many restrictions are placed on hardware and software in order to lower the price or power consumption of the entire system.

In particular, when the embedded system is a portable terminal or a mobile terminal, the amount of power consumed by an application program executed in the embedded system is emerging as an important issue.

The Embedded Trace Macrocell (ETM) interface, on the other hand, is a logical block embedded in hardware that connects to the processor's address, data and status signals. ETM broadcasts branch addresses, data, and status information through trace ports in a compressed protocol. The ETM contains resources used to trigger and filter the trace output.

The paradigm of debugging techniques and interface methods is also changing. Existing JTAG-based emulators debug while the system is stopped, whereas embedded trace macrocell (ETM) debuggers can be debugged in real time.

Meanwhile, in the mid 70's, we tested the target hardware PCB by directly contacting the PCB (Printed Circuit Board) using a technique called "bed-of nails". However, as the distance between the terminals of the PCB, the target hardware to be tested, has narrowed, the test using the direct contact method has become very difficult. In addition, as PCBs having a multi-layer strucure have appeared, not only has the test using the above-described conventional methods been impossible, but as the target hardware becomes more precise, the test may cause damage to the target hardware or become expensive. Various problems have arisen, such as the cost of the.

Therefore, the present invention is to propose a method for measuring the power consumption for the application program running in the embedded system using the above-described ETM interface.

SUMMARY OF THE INVENTION An object of the present invention for solving the above problems is to provide a power measurement system capable of measuring the power consumed by execution of a specific function or process using an ETM interface.

A feature of the present invention for achieving the above-described technical problem relates to a power measurement system for measuring the power consumption of the measurement target device constituting the target hardware, the power specifying system,

A data storage unit;

A current detector for measuring a current supplied to a measurement target device of the target hardware;

A current data logging unit receiving current data from the current detection unit and storing the current data with the synchronization information in the data storage unit;

An ETM debugger connected to an ETM interface of the target hardware to receive CPU information of the target hardware;

A CPU information logging unit periodically receiving CPU information from the ETM debugger and storing the CPU information along with synchronization information in the data storage unit;

A power consumption analyzer configured to receive CPU information and current data from the data storage unit together with synchronization information and detect power consumption of the measurement target device using the CPU information and current data;

A clock that synchronizes an internal clock with a clock of the target hardware and synchronizes the current data detected by the current detector with the CPU information collected by the ETM debugger by providing the internal clock to the current detector and the ETM debugger. Compensation circuitry may be provided to measure power or power consumption patterns consumed by functions or processes executed on the target hardware.

Preferably, the CPU information collected by the power measurement system having the above-described characteristics is information stored in a program counter.

The power consumption analysis unit of the power measurement system having the above-described characteristics

A symbol table for application software executed in the CPU of the target hardware is provided in advance, and a function or process executed in the CPU of the target hardware by matching program counter information with the symbol table among the collected CPU information. And reading the current value in the device under measurement when performing the function or process through the current data logging unit, and analyzing the current consumption in the function or process using the read current value. desirable.

The power measurement system having the above-mentioned characteristics further includes a display unit, and preferably displays the power consumption or power consumption pattern detected by the power consumption analysis unit on the display unit.

Hereinafter, with reference to the accompanying drawings will be described in detail the configuration and operation of the power measurement system using the ETM interface in accordance with a preferred embodiment of the present invention. The measurement target device to measure power consumption using the power measurement system according to the present invention is one component of target hardware, and the target hardware includes the measurement target device and the central processing unit (hereinafter referred to as 'CPU'). Consists of a number of devices, including. Accordingly, the power measurement system according to the present invention uses the information of the CPU of the target hardware to measure the power consumption and / or power consumption pattern of the measurement target device when a specific software or a specific process is executed.

1 is a block diagram of an overall power measurement system 10 according to a preferred embodiment of the present invention.

Referring to FIG. 1, the power measurement system 10 according to the present invention includes a current detector 100, a current data logging unit 110, a clock correction circuit unit 120, an ETM debugger 130, and a CPU information logging unit 150. ), A power consumption analyzer 160, a display unit 170, and a data storage unit 180.

Meanwhile, the target hardware 20 includes a measurement terminal unit 230 connected to a power supply terminal for a plurality of devices including the central processing unit 200, the clock generator 210, the ETM interface unit 220, and the measurement target device. ). The target hardware 20 is a general embedded system, and since the configuration is well known to those skilled in the art, a detailed description thereof will be omitted. On the other hand, since the voltage value applied through the regulator for the devices of the target hardware is always constant, the power measurement system according to the present invention is provided with the voltage value for each device in advance and stores.

The clock correction circuit unit 120 receives a clock from the clock generation unit 210 of the target hardware 20, corrects an internal clock, and synchronizes the clock of the received target hardware with the current detector 100 and the ETM. Provided to debugger 130. The clock correction circuit unit 120 synchronizes the current data detected by the current detector 100 with the information of the CPU of the target hardware collected by the ETM debugger 130.

The current detector 100 measures the current provided to the measurement target device of the target hardware according to a clock provided from the clock correction circuit unit 120. The current detector 100 may be configured as a digital multimeter capable of measuring a current or a voltage at an arbitrary terminal. The current detector 100 is electrically connected to the measurement terminal 230 of the target hardware 20 to measure a current value for the measurement target device.

The current data logging unit 110 receives the current data for the measurement target device from the current measuring unit and stores the current data in the data storage unit 180 together with the synchronization information. The synchronization information is generated according to an internal clock provided by the clock correction circuit unit 120.

The ETM debugger 130 receives CPU information of the target hardware by connecting to the ETM interface of the target hardware according to a clock provided from the clock correction circuit 120 to collect information about the CPU of the target hardware. The ETM debugger 130 is connected to the CPU information logging unit 150 to transmit the received CPU information to the CPU information logging unit 150.

The ETM debugger 130 may read CPU information of the target hardware in real time through the ETM interface of the target hardware.

Here, the CPU information scanned by the ETM debugger 130 through the ETM interface unit of the target hardware is information about a program counter (hereinafter, referred to as a 'PC'). The PC is also called the "instruction address register" and is the register holding the address of the next instruction to be executed. The program counter is automatically incremented after each instruction is fetched, indicating the address of the instruction that will follow soon. This register is not manipulated just like any other register, but provides special instructions to change the flow of control by writing new values to the program counter, such as JUMP, CALL, and RTS. Thus, by scanning the PC information, it is possible to know the address of the next function or instruction to be executed.

The CPU information logging unit 150 is connected to the ETM debugger 130 using a USB interface, receives CPU information of target hardware from the ETM debugger 130, and is connected to the power consumption analyzer 160. The received CPU information is stored together with the synchronization information in the data storage. The synchronization information is generated according to an internal clock.

The power consumption analyzer 160 receives current data and CPU information from the data storage unit 180 along with synchronization information, and measures power consumption using the received information. Receiving the current data and the CPU information, the power consumption analysis unit 160 finally measures the power consumption or the power consumption pattern by using the applied voltage value and the current data to the measurement target device of the target hardware stored in advance. Done. The power consumption pattern measures power consumption at regular intervals for a predetermined time period, and sequentially displays the measured power consumption in a graph form. Through this graph, it is possible to identify a time-shifting state of power consumption for a predetermined time period. do.

The power consumption analysis unit 160 analyzes how the current value of the measurement target device measured by the current detection unit 100 changes according to a function or a process executed in the CPU of the target hardware. In addition, the power consumption analyzer calculates an execution time and a frequency of a function or a process executed in a CPU of the target hardware using CPU information. The power consumption analyzer calculates power consumption for the function or process using current data measured at the time of execution of the function or process.

The power consumption analyzer 160 may provide a result of measuring a power consumption or a power consumption pattern of a specific device as a numerical value or provide it to the user through the display unit in the form of a graph when performing a specific function or process. Make sure

Therefore, the programmer can modify the software code by using the analysis result of the power consumption analysis unit, so that even a software that performs the same function can write software with low power consumption. As a result, the embedded system can be installed and run low-power consumption software, it is possible to extend the battery life of the embedded system.

Hereinafter, a process of analyzing the power consumption by the power consumption analyzer 160 will be described in detail with reference to FIG. 2.

The symbol table for the application is stored in advance (step 200). The symbol table is a table generated when compiling software, and means a memory map in which a compiler calculates memory required when a function or a method is called. In the symbol table, a name for each function and an address of a memory are included in the symbol table. It stores the error status, data area or command type and length. The PC stores an address for a command to be executed next.

Next, the program counter PC, which is the collected CPU information, and the symbol table are matched to find a function or process to be executed in the CPU of the target hardware (step 210). Therefore, by reading the address value for the instruction from the PC and matching the read address value with the symbol table, it is possible to grasp the function corresponding to the address value.

Meanwhile, the current data logging unit reads the current value in the measurement target device when performing the function or process (step 220).

Next, the current consumption value in the function or process is checked using the read current value (step 230).

In addition, using the CPU information collected periodically, the time at which the corresponding function or process is performed is detected (step 240). In addition, the CPU information collected periodically may be used to detect the frequency of calls to which the function or process is called (step 250).

Next, the power consumption and / or power consumption pattern by the corresponding function or process is detected using the detected execution time and the call frequency (step 260). The detected power consumption and / or power consumption pattern is displayed on the display unit (step 270).

Although the present invention has been described above with reference to preferred embodiments thereof, this is merely an example and is not intended to limit the present invention, and those skilled in the art do not depart from the essential characteristics of the present invention. It will be appreciated that various modifications and applications which are not illustrated above in the scope are possible. And differences relating to such modifications and applications should be construed as being included in the scope of the invention as defined in the appended claims.

According to the present invention, when a specific function or process is executed in the CPU of the target hardware, which is an embedded system, the power consumption or the current consumption pattern of the target device constituting the target hardware can be measured.

Figure 3 (a) is a graph measuring the current consumption pattern of the HDD (Hard Disk Driver) of the PMP manufactured by four different manufacturers using the power measurement system according to the present invention for 5 minutes. If a certain section (a 'a' region of FIG. 3a) is selected among the current consumption patterns displayed on the display unit, as shown in (b) of FIG. 3, data (eg, Name, execution time, execution frequency, etc.) of the performed function, or a call tree is displayed as shown in FIG. Also, if you click on a function name among the displayed function data, you will be redirected to the source code of the function. In this way, not only the power consumption section is easily identified through the graph, but also the function data for the specific section can be easily identified. In addition, by clicking on the function name to be moved to the source code, it is also possible to easily modify the source code for the power-consuming function.

On the other hand, by using the power measuring system according to the present invention to measure the power consumption of the standby state of the mobile phone, in hardware, it is also possible to measure the power consumed by each device of the mobile phone, by software for each function that is executed in the mobile phone Power consumption can also be measured. Therefore, the power measurement system according to the present invention can also be used for standby power debugging in an embedded system such as a mobile phone.

In addition, the power measurement system according to the present invention can be used for debugging power consumption according to the network use.

Claims (6)

  1. The power measurement system for measuring the power consumption at the measurement target device constituting the target hardware,
    A data storage unit;
    A current detector for measuring a current supplied to the measurement target device of the target hardware;
    A current data logging unit receiving current data from the current detector and storing the current data along with synchronization information in the data storage unit;
    An ETM debugger connected to the ETM interface of the target hardware to receive CPU information of the target hardware;
    A CPU information logging unit periodically receiving CPU information from the ETM debugger and storing the CPU information together with the synchronization information in the data storage unit;
    A power consumption analyzer configured to receive CPU information and current data from the data storage unit together with synchronization information and detect power consumption of the measurement target device using the CPU information and current data; And
    A clock correction circuit unit;
    The clock correction circuit unit synchronizes an internal clock with a clock of the target hardware and provides the internal clock to the current detector and the ETM debugger so that the current data detected by the current detector and the CPU information collected by the ETM debugger. Power measurement system, characterized in that the synchronization of the.
  2. delete
  3. The power measurement system of claim 1, wherein the CPU information is information stored in a program counter.
  4. The power measurement system for measuring the power consumption at the measurement target device constituting the target hardware,
    A data storage unit;
    A current detector for measuring a current supplied to the measurement target device of the target hardware;
    A current data logging unit receiving current data from the current detector and storing the current data along with synchronization information in the data storage unit;
    An ETM debugger connected to the ETM interface of the target hardware to receive CPU information of the target hardware;
    A CPU information logging unit periodically receiving CPU information from the ETM debugger and storing the CPU information together with the synchronization information in the data storage unit; And
    And a power consumption analyzer configured to receive CPU information and current data from the data storage unit together with synchronization information, and detect power consumption of the device to be measured using the CPU information and current data.
    The power consumption analysis unit
    It is previously provided with a symbol table (Symbol Table) for the application software running on the CPU of the target hardware,
    The program counter information and the symbol table of the collected CPU information is matched to find a function or process to be executed in the CPU of the target hardware.
    Read current data of the measurement target device when performing the function or process from the data storage,
    And use the read current data to analyze current consumption in the function or process.
  5. The method of claim 4, wherein the power consumption analysis unit
    Detecting the time or call frequency at which the corresponding function or process is executed using the CPU information collected periodically, and detecting power consumption or power consumption pattern by the corresponding function or process using the detected execution time or call frequency Power measurement system, characterized in that.
  6. The power measurement system according to claim 1, wherein the power measurement system further includes a display unit, and displays the power consumption or power consumption pattern detected by the power consumption analysis unit on the display unit.
KR1020070052592A 2007-05-30 2007-05-30 Power measurement system using etm interface and method thereof KR100869953B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070052592A KR100869953B1 (en) 2007-05-30 2007-05-30 Power measurement system using etm interface and method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020070052592A KR100869953B1 (en) 2007-05-30 2007-05-30 Power measurement system using etm interface and method thereof
PCT/KR2007/003964 WO2008146984A1 (en) 2007-05-30 2007-08-20 Power measurement system using etm interface and method thereof

Publications (1)

Publication Number Publication Date
KR100869953B1 true KR100869953B1 (en) 2008-11-24

Family

ID=40075195

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070052592A KR100869953B1 (en) 2007-05-30 2007-05-30 Power measurement system using etm interface and method thereof

Country Status (2)

Country Link
KR (1) KR100869953B1 (en)
WO (1) WO2008146984A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012516500A (en) * 2009-01-31 2012-07-19 ヒューレット−パッカード デベロップメント カンパニー エル.ピー.Hewlett‐Packard Development Company, L.P. Calculation of system energy
CN103018545B (en) * 2012-12-26 2015-04-08 北京百度网讯科技有限公司 Whole cabinet power consumption test method
CN104502690B (en) * 2014-12-30 2017-07-11 中科创达软件股份有限公司 A kind of CPU power consumption method of testing and system
JP2017054453A (en) * 2015-09-11 2017-03-16 富士通株式会社 Analysis program, analysis method, and analysis device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050002667A (en) * 2003-06-30 2005-01-10 마이크로소프트 코포레이션 Power profiling
KR20050122307A (en) * 2004-06-24 2005-12-29 삼성전자주식회사 Apparatus and method for measuring power consumption

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7444546B2 (en) * 2003-04-17 2008-10-28 Arm Limited On-board diagnostic circuit for an integrated circuit
US7278073B2 (en) * 2003-04-17 2007-10-02 Arm Limited Diagnostic data capture within an integrated circuit
KR100661851B1 (en) * 2004-12-08 2006-12-27 한국전자통신연구원 Power management method for platform and that platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050002667A (en) * 2003-06-30 2005-01-10 마이크로소프트 코포레이션 Power profiling
KR20050122307A (en) * 2004-06-24 2005-12-29 삼성전자주식회사 Apparatus and method for measuring power consumption

Also Published As

Publication number Publication date
WO2008146984A1 (en) 2008-12-04

Similar Documents

Publication Publication Date Title
Banerjee et al. Detecting energy bugs and hotspots in mobile apps
Li et al. An empirical study of the energy consumption of android applications
Hackenberg et al. Power measurement techniques on standard compute nodes: A quantitative comparison
US10268350B2 (en) Automatically capturing user interactions and evaluating user interfaces in software programs using field testing
JP3151808B2 (en) Integrated circuit device, circuit inspection device and method
Schirmeier et al. FAIL*: An open and versatile fault-injection framework for the assessment of software-implemented hardware fault tolerance
US20130117855A1 (en) Apparatus for automatically inspecting security of applications and method thereof
Hindle et al. Greenminer: A hardware based mining software repositories software energy consumption framework
Pathak et al. Where is the energy spent inside my app? Fine Grained Energy Accounting on Smartphones with Eprof
US7607123B2 (en) Systems and methods for validating debug information for optimized code
US8261130B2 (en) Program code trace signature
JP3942765B2 (en) Semiconductor device simulation apparatus and program debugging apparatus for semiconductor test using the same
CN101847123B (en) Construction method of airborne computer software testing general system
US6820222B2 (en) Apparatus and method for processor power measurement in a digital signal processor using trace data and simulation techniques
CN103577328B (en) The method for analyzing performance of a kind of application and device
DE112010006087T5 (en) Architecture for testing, validation and debugging
Cignetti et al. Energy estimation tools for the Palm
US7290246B2 (en) Power profiling system and method for correlating runtime information
US10007592B2 (en) Debugging non-deterministic embedded systems
US7337433B2 (en) System and method for power profiling of tasks
JP4138021B2 (en) Processor-based device, method for providing software performance profiling information, and software development system for generating and analyzing software performance profiling information
CN1701305B (en) Method, equipment and system for testing software with a plurality of data variates and function parameters
Harrold et al. An approach to analyzing and testing component-based systems
US7900198B2 (en) Method and system for parameter profile compiling
Noureddine et al. Runtime monitoring of software energy hotspots

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121101

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20131028

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20141028

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20160420

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee