Home
Name Modified Size InfoDownloads / Week
Debug 2014-05-07
src 2014-05-07
README 2014-05-07 1.0 kB
_cproject 2014-05-07 31.3 kB
_project 2014-05-07 2.4 kB
example_is.c 2014-05-07 29.1 kB
Totals: 6 Items   63.8 kB 0
This program is used to generate function (subroutine call) dynamic power profile. 

There are general several things to notice in order to use the library.

1. The program relis on GCC compilier and -finstrument-function option. 

2. The version of your Linux kernel must be higher than 2.6.31 to  the system callses the system call "__NR_perf_counter_open"(in the latest version, the name is "__NR_perf_event_open") to stat the hardware events, such as L2 cache miss.

3. 

4. instrument directory contains source code to build the library. analysis directory generate the power profiling.

5. 


EXAMPLE: your source file example_is.c. The default compiler is GCC.

1. go to directory Debug/. 
   type "make". 
   it will generate a complied version of the IS benchmark from the NPB benchmark suite.

2. Use SPAN_initialize(),SPAN_start("full_verify"), and SPAN_stop("full_verify") to indicate profiling area.


3. run a.out

4. Output of the program is a sequence of power values with their process IDs (mulit-threaded application)


	 
Source: README, updated 2014-05-07