beginning of the libpfm binding