libpfc
libpfc copied to clipboard
A small library and kernel module for easy access to x86 performance monitor counters under Linux.
when i use `meson .. -Dbuildtype=release --prefix=$HOME/.local` to build, it ouput below:  after build and install, i run the `sudo ./uarch-bench --timer=libpfc`, the ouput below: ```shell Welcome to uarch-bench...
It would be awesome to have a README or documentation on this tool. A lot what you've described [in this answer](http://stackoverflow.com/a/39936190/149138) could simply be copied over. Are you willing to...
Hello I am new to use the performance counter measurement and specially libpfc. I am using a 7th generation intel processor and I was wondering if I can use libpfc...
I finally figured out why `l1d_pend_miss` counters weren't working with libpfc. It's due to this code: ``` if((evtNum == 0x48) || /* l1d_pend_miss */ (evtNum == 0xA3 && (umask ==...
I'm using the fixed UNHALTED_CYCLES event in uarch-bench but it is counting only user-cycles, not kernel cycles. To fix https://github.com/travisdowns/uarch-bench/issues/34 I'd like it to count both. Do you know if...
Some counters have more complex programming requirements, e.g., setting two different MSRs. Unfortunately, this includes pretty interesting counters such as the `L1I_MISS` counters. See [here for a concrete example](https://github.com/travisdowns/uarch-bench/issues/35) and...
Currently the `PFC_START`/`END` macros have a fixed behavior of reading exactly the first 7 counters (3 fixed, 4 programmable). Sometimes you only want to read 1 or 2 counters, or...
There is an existing [msr](http://man7.org/linux/man-pages/man4/msr.4.html) kernel module included in the kernel, which allows you to read and write msrs from userspace (permission dependent) at (for example) `/dev/cpu/0/msr`. I'm wondering if...