perf: get rid of pointless virPerfGetEventAttr() method
perf: get rid of pointless virPerfGetEventAttr() method

The virPerfGetEventAttr method contains a totally pointless
loop. Remove it, verify the array size statically, and then
just use an array index to access the perf event.

Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

eskultety/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,eskultety/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,zippy2/libvirt,jfehlig/libvirt,jfehlig/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,datto/libvirt,libvirt/libvirt,nertpinx/libvirt,crobinso/libvirt,jardasgit/libvirt,jardasgit/libvirt,zippy2/libvirt,olafhering/libvirt,jfehlig/libvirt,libvirt/libvirt,nertpinx/libvirt,eskultety/libvirt,olafhering/libvirt,andreabolognani/libvirt,jardasgit/libvirt,datto/libvirt,andreabolognani/libvirt,datto/libvirt,jardasgit/libvirt,crobinso/libvirt,nertpinx/libvirt,nertpinx/libvirt,eskultety/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,datto/libvirt,libvirt/libvirt,crobinso/libvirt,jfehlig/libvirt,zippy2/libvirt,libvirt/libvirt,crobinso/libvirt,andreabolognani/libvirt,eskultety/libvirt,zippy2/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,olafhering/libvirt,datto/libvirt,jardasgit/libvirt,olafhering/libvirt