Add rr & libpfm.

This include the previous patch which landed on the release branch instead of landing on the master branch, and this pull request also include a patch to bump rr version to the version 2.0.0
Should be `stdenv.lib.licenses.gpl2`.