Reputation: 305
I am trying to find some library for accessing performance counter in ubuntu. But I am not able to find it. In linux website I have found about pmc.h library. But I am not able to find it in my system. Can someone help me to find some library to retrieve performance counters data?
I am using ubuntu 11 and i386 processor. Another strange thing I observed in my ubuntu is, I am not able to find /usr/include/sys directory. This is required for me to use socket.h :(
Upvotes: 4
Views: 860
Reputation: 28454
I'm not aware about pmc (seems like it exists only for Darwin?), but consider using libpfm:
sudo apt-cache search libpfm
/usr/include/socket.h
belongs to libc6-dev:
dpkg -L libc6-dev | grep socket.h
Install libc6-dev via:
sudo apt-get install libc6-dev
Upvotes: 4