Stop using os::system to validate perf event names.
Stop using os::system to validate perf event names.

Review: https://reviews.apache.org/r/55241/

neilconway/mesos,kaysoky/mesos,verizonlabs/mesos,asamerh4/mesos,andschwa/mesos,Gilbert88/mesos,jpeach/mesos,asamerh4/mesos,reneploetz/mesos,craimbert/mesos,yuquanshan/customizedMesos,abudnik/mesos,chhsia0/mesos,Gilbert88/mesos,abudnik/mesos,chhsia0/mesos,reneploetz/mesos,craimbert/mesos,jpeach/mesos,jpeach/mesos,abudnik/mesos,craimbert/mesos,Gilbert88/mesos,andschwa/mesos,zmalik/mesos,verizonlabs/mesos,craimbert/mesos,chhsia0/mesos,chhsia0/mesos,asamerh4/mesos,neilconway/mesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,Gilbert88/mesos,andschwa/mesos,dforsyth/mesos,verizonlabs/mesos,asamerh4/mesos,neilconway/mesos,kaysoky/mesos,abudnik/mesos,abudnik/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,kaysoky/mesos,verizonlabs/mesos,dforsyth/mesos,neilconway/mesos,andschwa/mesos,chhsia0/mesos,neilconway/mesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,kaysoky/mesos,zmalik/mesos,neilconway/mesos,dforsyth/mesos,craimbert/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,verizonlabs/mesos,reneploetz/mesos,Aman-Jain-14/customizedMesos,jpeach/mesos,dforsyth/mesos,gsantovena/mesos,dforsyth/mesos,andschwa/mesos,kaysoky/mesos,zmalik/mesos,reneploetz/mesos,craimbert/mesos,yuquanshan/customizedMesos,yuquanshan/customizedMesos,craimbert/mesos,yuquanshan/customizedMesos,kaysoky/mesos,andschwa/mesos,dforsyth/mesos,andschwa/mesos,zmalik/mesos,yuquanshan/customizedMesos,reneploetz/mesos,gsantovena/mesos,abudnik/mesos,chhsia0/mesos,kaysoky/mesos,Gilbert88/mesos,gsantovena/mesos,abudnik/mesos,gsantovena/mesos,jpeach/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,yuquanshan/customizedMesos,reneploetz/mesos,dforsyth/mesos,jpeach/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,asamerh4/mesos,verizonlabs/mesos,verizonlabs/mesos,jpeach/mesos,gsantovena/mesos,chhsia0/mesos,yuquanshan/customizedMesos,zmalik/mesos,zmalik/mesos,neilconway/mesos