Dear friends,

I'm new to libpfm. Please answer the following questions:

1- how to use libpfm for gathering a special event in a certain interval?
2- how to use libpfm for counters of just one processor core or system overall?
3- whats the relation between outcomes of libpfm and "perf stat" in overall system results?
to be specific, I used "perf stat -C 0 -e cycles sleep 1" for gathering the counters for cycles event in 1 second interval, but when i use "./syst -c 0 -e cycles" i get different results!

I appreciate you in advance.


Iman Hasanzade.