Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pmcstudy(1) [freebsd man page]

PMC_COUNTER_STUDY(1)					    BSD General Commands Manual 				      PMC_COUNTER_STUDY(1)

NAME
pmc_counter_study -- Perform various study's on a systems overall PMC's. SYNOPSIS
pmc_counter_study DESCRIPTION
The pmc_counter_study The pmc_counter_study program is designed to run various tests against your systems performance. There are roughly 20-22 canned tests that setup specific PMC's and then run various formulas on the output information. These formulas can be found in Intel documentation "Using Intel Vtune amplifier xe on NNN Generation Intel Core Processors". The NNN is either 2nd, 3rd or 4th generation i.e. Sandy Bridge, Ivy Bridge and Haswell. Currently the program only works on these three Intel processor types. You can see the complete list of formula's by running the program with the -H option. If you know a formula name you can run it by typing -e name. If you know a name and want what the formula is you can run the program with -e name -h and the program will not run but it will tell you what that name will do (if known). The -T option can be used to test all PMC's that are known to your system. When running a test you will want to specify -m N where N is the number of 1 second samples to collect and analize (it bounds the time the test runs). Finally for those that have there own ideas on what formulas that you want to run you can type your own formula in with -E "formula". The formula can declare directly the PMC's by name or you can use an abbreviation %NNN. To find out the abbreviations on your system you may run pmc_counter_study -L and it will tell you each PMC name and the abbreviation you can use. An example of a formula of your own might be -E "FP_ASSIST.ANY / INST_RETIRED.ANY_P" <or short hand on Haswell> -E " %176 / %150". You must have spaces between each entry and you may use paraenthisis to prioritize the operators. Add (+), Sub- tract (-1), Divide (/) and Multiplication (*) is supported. You may also introduce constant numbers as well. So for example you can do a standard efficency test like -E "UOPS_RETIRED.RETIRE_SLOTS / (4 * CPU_CLK_UNHALTED.THREAD_P)". BSD
Dec 2, 2014 BSD

Check Out this Related Man Page

PMC_READ(3)						   BSD Library Functions Manual 					       PMC_READ(3)

NAME
pmc_read, pmc_rw, pmc_write, -- read and write hardware performance counters LIBRARY
Performance Counters Library (libpmc, -lpmc) SYNOPSIS
#include <pmc.h> int pmc_read(pmc_id_t pmc, pmc_value_t *value); int pmc_rw(pmc_id_t pmc, pmc_value_t newvalue, pmc_value_t *oldvaluep); int pmc_write(pmc_id_t pmc, pmc_value_t value); DESCRIPTION
These functions read and write the current value of a PMC. Function pmc_read() will read the current value of the PMC specified by argument pmc and write it to the location specified by argument value. Function pmc_write() will set the current value of the PMC specified by argument pmc to the value specified by argument value. Function pmc_rw() combines a read and a write into a single atomic operation. For write operations the PMC should be a quiescent state. RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
A call to these functions may fail with the following errors: [EBUSY] A write operation specified a currently running PMC. [EINVAL] Argument pmc specified a PMC not in a readable state. [EINVAL] The PMC specified by argument pmc was not owned by the current process. SEE ALSO
pmc(3), hwpmc(4) BSD
November 25, 2007 BSD
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

BSD Sys 5????

Since I failed a test that I didn't have the chance to study for, my wonderful instructor told me to write a paper about BSD sys 5. I can't find anything...does it even exist yet??? If you have any input, I would love you forever if you can enlighten me ASAP. (2 Replies)
Discussion started by: Toughgirl27
2 Replies

2. Shell Programming and Scripting

Number to Text

Please help me find a formula to convert the following numbers to text, such as 25.00 would be 0002500 25.50 would be 0002550 25.55 would be 0002555 I was thinking of divison by 100 or using MOD function. (2 Replies)
Discussion started by: Mastermind
2 Replies

3. Shell Programming and Scripting

Extracting values from files

Im trying to create a utility that can do unit conversions using a seperate formula file(one which i can add conversions to at a later date). however i'm stuck when it comes to pulling the formulas out of the formula file for use in the script. heres a rundown of what the script does. The... (4 Replies)
Discussion started by: Master Error
4 Replies

4. Programming

running a parallel program

hi , i need to run a parallel program . for example; program1 { array=" the second program should called here : program 2" the execution should continue } the 2nd program should recieve an array of information as argument and it should... (4 Replies)
Discussion started by: bankpro
4 Replies

5. Shell Programming and Scripting

Collecting specific portion from a file

I have a file which contains data like a b x col1:data1 formula:data3 this is for 2 a c col1:@bkw formula:dontad ad asd as per a \ i want the data from col1 and formula to keep the col1 data in left side of excel and col2 data in right side of it (1 Reply)
Discussion started by: bmrout007
1 Replies

6. Shell Programming and Scripting

Pull specific lines from long file based on formula

For people who want to pull a number of lines from a long file using a specific formula n (number of iterations in a loop) a (offset number) b (stretch factor) example with n {1..100} for (( n=1; n<101; n++ )); do awk -v n=$n 'NR==a+(b*n)' a=0 b=1 inputfile >>outputfile (2 Replies)
Discussion started by: sgruenwald
2 Replies

7. Shell Programming and Scripting

script to arrange file in specific format

Hi All, I am new to forum, I am looking to arrange a file in specific format but unable to get the formula to do it, already googled for the same, but didnt find the answer :(. hope to get help here :o:o:o:o:o I have to files : $ cat Dev_List2 0685 0686 0687 0688 0689 068A 068B 068C... (2 Replies)
Discussion started by: prasan_Aix
2 Replies

8. Shell Programming and Scripting

Can expr deal with decimals?

Hello, Im trying to work on a small script for a formula converting temperatures, Celsius to fahrenheit. I have a formula, and it works.... it works every way I try it. But it keeps giving me the wrong results every time with expr. The formula for C to F would be: divide by 5, multiply by... (12 Replies)
Discussion started by: hxdrummerxc
12 Replies

9. Shell Programming and Scripting

Calculate Mean absolute Deviation

Hi, I am trying to use an statistical formula. I tried in excel, but I get different values when I use calculator. The formula is (1/n) ∑|x - mean| n=no. of observations x=each individual expression value mean is median of all observations I have a file with 1000 rows.. So it needs... (1 Reply)
Discussion started by: Diya123
1 Replies

10. Shell Programming and Scripting

A strange formula

Dear Masters, Kindly need your helps for this issue.. I face a formula as a picture... the input file is A DEPT Vp Vs rho VPperVS ------------------------ ------------ ------------ ------------ 700 151.9218 121.9269 ... (11 Replies)
Discussion started by: ipatah
11 Replies